Package com.prineside.tdi2.abilities
Class NukeAbility
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Ability
com.prineside.tdi2.abilities.NukeAbility
- All Implemented Interfaces:
KryoSerializable
Nuke ability implementation.
Enum: AbilityType.NUKE
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Ability
Ability.Factory<T extends Ability> -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(int x, int y, double mdps) Configures ability before it can be started.voidCalled byAbilitySystem.draw(Batch, float)each frame.booleanisDone()Used to check if the ability has finished running.booleanvoidvoidsetKilledEnemyNotAffectsBonusSystem(boolean killedEnemyNotAffectsBonusSystem) booleanstart()Starts the ability.voidShows screen effects and UI particles.voidupdate(float deltaTime) Called by the AbilitySystem each frame to update the state of this ability.voidMethods inherited from class com.prineside.tdi2.Ability
drawBatchAdditive, getKilledEnemiesCoinMultiplier, getType, onDoneMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
damage
public float damage
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classAbility
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classAbility
-
isKilledEnemyNotAffectsBonusSystem
public boolean isKilledEnemyNotAffectsBonusSystem() -
setKilledEnemyNotAffectsBonusSystem
public void setKilledEnemyNotAffectsBonusSystem(boolean killedEnemyNotAffectsBonusSystem) -
configure
public void configure(int x, int y, double mdps) Description copied from class:AbilityConfigures 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:AbilityStarts the ability. Normally only called by theAbilitySystemand not manually. UseAbilitySystem.startAbility(Ability)to trigger the events and handle the ability properly. -
startEffects
public void startEffects()Description copied from class:AbilityShows 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:
startEffectsin classAbility
-
update
public void update(float deltaTime) Description copied from class:AbilityCalled by the AbilitySystem each frame to update the state of this ability. -
isDone
public boolean isDone()Description copied from class:AbilityUsed to check if the ability has finished running. Used by theAbilitySystemto finish the handling of the ability. -
draw
Description copied from class:AbilityCalled byAbilitySystem.draw(Batch, float)each frame. Allows to update realtime graphics of the ability.
-