Package com.prineside.tdi2.systems
Class InventorySystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.InventorySystem
- All Implemented Interfaces:
Disposable
,KryoSerializable
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Convenience methodvoid
Convenience methodboolean
boolean
void
dispose()
Releases all resources of this object.getItemsBySubCategory
(ItemSubcategoryType category) void
initAddItem
(Item item, int count) Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic()void
initAddItems
(Array<ItemStack> items) Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic()boolean
Нужно ли учитывать время выполнения update() в Debugboolean
boolean
void
setStaticMode
(boolean staticMode) void
setup()
Произвести начальную настройку системы.Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Constructor Details
-
InventorySystem
public InventorySystem()
-
-
Method Details
-
setup
public void setup()Description copied from class:GameSystem
Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setup
in classGameSystem
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
getItemsBySubCategory
-
getAllItems
-
initAddItem
Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic() -
initAddItems
Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic() -
add
-
addTile
Convenience method -
addGate
Convenience method -
setStaticMode
public void setStaticMode(boolean staticMode) -
contains
-
remove
-
remove
-
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystem
Нужно ли учитывать время выполнения update() в Debug- Overrides:
profileUpdate
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classGameSystem
-