Package com.prineside.tdi2.units
Class SnowballUnit
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Unit
com.prineside.tdi2.units.SnowballUnit
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Unit
Unit.Factory<T extends Unit>
-
Field Summary
Fields inherited from class com.prineside.tdi2.Unit
angle, drawAngle, drawPosition, graphPath, id, LAYER_FLYING, LAYER_GROUNDED, LAYER_TILES, passedTiles, position, sideShiftIndex, spawned, speed, startingTile, staticPosition, targetTile, type
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
void
void
Remove the reference to the game state and mark this object as not registered.void
void
update
(float deltaTime) void
Methods inherited from class com.prineside.tdi2.Unit
applyDrawInterpolation, getPassedTilesDelta, getSize, onDespawned
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classUnit
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classUnit
-
setup
-
getDrawLayer
public int getDrawLayer()- Overrides:
getDrawLayer
in classUnit
- Returns:
- Unit.LAYER_GROUNDED / LAYER_FLYING etc
-
onSpawned
public void onSpawned() -
setUnregistered
public void setUnregistered()Description copied from class:Registrable
Remove the reference to the game state and mark this object as not registered.- Overrides:
setUnregistered
in classRegistrable
-
drawBatch
-
update
public void update(float deltaTime)
-