Package com.prineside.tdi2.abilities
Class FirestormAbility
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Ability
com.prineside.tdi2.abilities.FirestormAbility
- All Implemented Interfaces:
KryoSerializable
Firestorm ability implementation.
Enum: AbilityType.FIRESTORM
-
Nested Class Summary
Nested classes/interfaces inherited from class com.prineside.tdi2.Ability
Ability.Factory<T extends Ability>
-
Field Summary
Modifier and TypeFieldDescriptionfloat
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(int x, int y, double mdps) Configures ability before it can be started.void
Called byAbilitySystem.draw(Batch, float)
each frame.boolean
isDone()
Used to check if the ability has finished running.void
onDone()
Called by theAbilitySystem
once it realizes that the abilityAbility.isDone()
but before the ability gets unregistered.void
boolean
start()
Starts the ability.void
Shows screen effects and UI particles.void
update
(float deltaTime) Called by the AbilitySystem each frame to update the state of this ability.void
Methods inherited from class com.prineside.tdi2.Ability
drawBatchAdditive, getKilledEnemiesCoinMultiplier, getType
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
progressCoeff
public float progressCoeff -
buffsToAdd
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classAbility
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classAbility
-
configure
public void configure(int x, int y, double mdps) Description copied from class:Ability
Configures ability before it can be started. Sets the position on map where this ability will start - depending on ability type, it can apply an effect in that point. Some abilities can ignore the position completely. -
start
public boolean start()Description copied from class:Ability
Starts the ability. Normally only called by theAbilitySystem
and not manually. UseAbilitySystem.startAbility(Ability)
to trigger the events and handle the ability properly. -
startEffects
public void startEffects()Description copied from class:Ability
Shows screen effects and UI particles. It is suggested not to call this method if ability gets started frequently, as it may flash the screen too much.- Overrides:
startEffects
in classAbility
-
update
public void update(float deltaTime) Description copied from class:Ability
Called by the AbilitySystem each frame to update the state of this ability. -
isDone
public boolean isDone()Description copied from class:Ability
Used to check if the ability has finished running. Used by theAbilitySystem
to finish the handling of the ability. -
onDone
public void onDone()Description copied from class:Ability
Called by theAbilitySystem
once it realizes that the abilityAbility.isDone()
but before the ability gets unregistered. Usually used by the implementations of this class to remove particle effects and event listeners. -
draw
Description copied from class:Ability
Called byAbilitySystem.draw(Batch, float)
each frame. Allows to update realtime graphics of the ability.
-