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, typeFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidintvoidvoidvoidRemove the reference to the game state and mark this object as not registered.voidvoidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.Unit
applyDrawInterpolation, getPassedTilesDelta, getSize, onDespawnedMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classUnit
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classUnit
-
setup
-
getDrawLayer
public int getDrawLayer()- Overrides:
getDrawLayerin classUnit- Returns:
- Unit.LAYER_GROUNDED / LAYER_FLYING etc
-
onSpawned
public void onSpawned() -
setUnregistered
public void setUnregistered()Description copied from class:RegistrableRemove the reference to the game state and mark this object as not registered.- Overrides:
setUnregisteredin classRegistrable
-
drawBatch
-
update
public void update(float deltaTime)
-