Package com.prineside.tdi2
Class Unit
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Unit
- All Implemented Interfaces:
 com.esotericsoftware.kryo.KryoSerializable
- Direct Known Subclasses:
 BallLightningUnit,DisorientedUnit,IceFieldUnit,MicrogunUnit,MineUnit,SnowballUnit
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatbooleancom.badlogic.gdx.math.Vector2intfloatcom.badlogic.gdx.math.Vector2intbooleanfloatbooleanintFields inherited from class com.prineside.tdi2.Registrable
S - 
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDrawInterpolation(float interpolatedTime) abstract voiddrawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) final floatgetPassedTilesDelta(float deltaTime) floatgetSize()voidvoidvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidupdate(float deltaTime) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Field Details
- 
id
public int id - 
position
public com.badlogic.gdx.math.Vector2 position - 
angle
public float angle - 
drawAngle
public float drawAngle - 
drawPosition
public com.badlogic.gdx.math.Vector2 drawPosition - 
type
public int type - 
speed
public float speed - 
startingTile
 - 
targetTile
 - 
staticPosition
public boolean staticPosition - 
drawOverEnemies
public boolean drawOverEnemies - 
sideShiftIndex
public int sideShiftIndex - 
passedTiles
public float passedTiles - 
graphPath
 - 
spawned
public boolean spawned 
 - 
 - 
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
 - 
getSize
public float getSize() - 
update
public void update(float deltaTime)  - 
applyDrawInterpolation
public void applyDrawInterpolation(float interpolatedTime)  - 
getPassedTilesDelta
public final float getPassedTilesDelta(float deltaTime)  - 
drawBatch
public abstract void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime)  - 
onSpawned
public void onSpawned() - 
onDespawned
public void onDespawned() 
 -