Package com.prineside.tdi2
Class Ability
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Ability
- All Implemented Interfaces:
KryoSerializable
- Direct Known Subclasses:
BallLightningAbility,BlizzardAbility,BulletWallAbility,FireballAbility,FirestormAbility,LoicAbility,MagnetAbility,NukeAbility,OverloadAbility,SmokeBombAbility,ThunderAbility,WindstormAbility
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
type
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classRegistrable
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classRegistrable
-
configure
public abstract void configure(int x, int y, double mdps) - Parameters:
x- position in pixelsy- position in pixelsmdps-
-
start
public boolean start()- Returns:
- true if started, false if can't start
-
startEffects
public void startEffects() -
update
public abstract void update(float deltaTime) -
isDone
public abstract boolean isDone() -
onDone
public void onDone() -
draw
-
drawBatchAdditive
-
getKilledEnemiesCoinMultiplier
public final float getKilledEnemiesCoinMultiplier()
-