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:
 com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable
- 
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddrawFlying(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float interpolatedTime) voiddrawGrounded(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float interpolatedTime) voidvoidbooleanpreparePathToRandomSpawn(Unit unit, Tile startingTile) voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidvoidsetup()Произвести начальную настройку системы.voidupdate(float deltaTime) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods 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
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
 writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
 writein classRegistrable
 - 
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
 readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
 readin classRegistrable
 - 
affectsGameState
public boolean affectsGameState()- Specified by:
 affectsGameStatein classGameSystem
 - 
setup
public void setup()Description copied from class:GameSystemПроизвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
 setupin classGameSystem
 - 
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
public void drawGrounded(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float interpolatedTime)  - 
drawFlying
public void drawFlying(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime, float interpolatedTime)  
 -