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 TypeMethodDescriptionvoidvoidConvenience methodvoidConvenience methodbooleanbooleanvoiddispose()Releases all resources of this object.getItemsBySubCategory(ItemSubcategoryType category) voidinitAddItem(Item item, int count) Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic()voidinitAddItems(Array<ItemStack> items) Used only by game mode / managers outside of map editor logic Ignores GM.isInventoryStatic()booleanShould the update() method be rendered on the debug overlaybooleanbooleanremoveMany(Item item, int count) voidsetStaticMode(boolean staticMode) voidsetup()Performs the initial configuration of the system.Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, updateMethods 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:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
 setupin classGameSystem
 - 
affectsGameState
public boolean affectsGameState()- Specified by:
 affectsGameStatein 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
 - 
removeMany
 - 
remove
 - 
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystemShould the update() method be rendered on the debug overlay- Overrides:
 profileUpdatein classGameSystem
 - 
getSystemName
- Specified by:
 getSystemNamein classGameSystem
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfaceDisposable- Overrides:
 disposein classGameSystem
 
 -