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
-
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.com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.DelayedRemovalArray<ItemStack>>
com.badlogic.gdx.utils.DelayedRemovalArray<ItemStack>
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
(com.badlogic.gdx.utils.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
public com.badlogic.gdx.utils.DelayedRemovalArray<ItemStack> getItemsBySubCategory(ItemSubcategoryType category) -
getAllItems
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.utils.DelayedRemovalArray<ItemStack>> 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 interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classGameSystem
-