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 TypeMethodDescriptionbooleanvoiddrawFlying(Batch batch, float deltaTime, float interpolatedTime) voiddrawGrounded(Batch batch, float deltaTime, float interpolatedTime) floatvoidvoidbooleanpreparePathToRandomSpawn(Unit unit, Tile startingTile) voidvoidvoidsetup()Performs the initial configuration of the system.voidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, profileUpdateMethods 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:
writein interfaceKryoSerializable- Overrides:
writein classRegistrable
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classRegistrable
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein classGameSystem
-
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
-
getBallLightningAccumulationTime
public float getBallLightningAccumulationTime() -
postStateRestore
public void postStateRestore()- Overrides:
postStateRestorein classGameSystem
-
preparePathToRandomSpawn
-
register
-
killUnit
-
update
public void update(float deltaTime) - Overrides:
updatein classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-
drawGrounded
-
drawFlying
-