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
,MicrogunUnit
,MineUnit
,SnowballUnit
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
float
boolean
com.badlogic.gdx.math.Vector2
int
float
com.badlogic.gdx.math.Vector2
boolean
int
boolean
float
boolean
int
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDrawInterpolation
(float interpolatedTime) abstract void
drawBatch
(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) float
getPassedTilesDelta
(float deltaTime) float
getSize()
void
void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
update
(float deltaTime) void
write
(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 -
setUpByUnitSystem
public boolean setUpByUnitSystem -
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:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classRegistrable
-
getSize
public float getSize() -
update
public void update(float deltaTime) -
applyDrawInterpolation
public void applyDrawInterpolation(float interpolatedTime) -
getPassedTilesDelta
public float getPassedTilesDelta(float deltaTime) -
drawBatch
public abstract void drawBatch(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime) -
onSpawned
public void onSpawned()
-