Package com.prineside.tdi2.systems
Class UnitSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.UnitSystem
- All Implemented Interfaces:
Disposable
,KryoSerializable
-
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
drawFlying
(Batch batch, float deltaTime, float interpolatedTime) void
drawGrounded
(Batch batch, float deltaTime, float interpolatedTime) void
void
boolean
preparePathToRandomSpawn
(Unit unit, Tile startingTile) void
void
void
setup()
Произвести начальную настройку системы.void
update
(float deltaTime) void
Methods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, profileUpdate
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
spawnedSnowballs
public int spawnedSnowballs -
spawnedBallLightnings
public int spawnedBallLightnings
-
-
Constructor Details
-
UnitSystem
public UnitSystem()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classRegistrable
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
setup
public void setup()Description copied from class:GameSystem
Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setup
in classGameSystem
-
postStateRestore
public void postStateRestore()- Overrides:
postStateRestore
in classGameSystem
-
preparePathToRandomSpawn
-
register
-
killUnit
-
update
public void update(float deltaTime) - Overrides:
update
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
drawGrounded
-
drawFlying
-