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:
com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvenience methodConvenience methodboolean
void
dispose()
Releases all resources of this object.void
getItemsByCategory
(ItemSubcategoryType category, com.badlogic.gdx.utils.Array<ItemStack> out) boolean
Нужно ли учитывать время выполнения update() в Debugboolean
boolean
void
Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, setup, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Field Details
-
items
-
listeners
-
-
Constructor Details
-
InventorySystem
public InventorySystem()
-
-
Method Details
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
getItemsByCategory
public void getItemsByCategory(ItemSubcategoryType category, com.badlogic.gdx.utils.Array<ItemStack> out) -
setItems
-
add
-
addTile
Convenience method -
addGate
Convenience method -
remove
-
remove
-
listDebug
-
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 interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classGameSystem
-