Package com.prineside.tdi2.abilities
Class BlizzardAbility
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Ability
com.prineside.tdi2.abilities.BlizzardAbility
- All Implemented Interfaces:
 KryoSerializable,Listener<EnemySpawn>
Blizzard ability implementation.
 Enum: AbilityType.BLIZZARD
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Ability
Ability.Factory<T extends Ability> - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields 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.voidhandleEvent(EnemySpawn event) Called each time an event is being triggeredbooleanisDone()Used to check if the ability has finished running.voidonDone()Called by theAbilitySystemonce it realizes that the abilityAbility.isDone()but before the ability gets unregistered.voidbooleanstart()Starts the ability.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, startEffectsMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Field Details
- 
ICE_FIELD_LIFETIME_MIN
public static final int ICE_FIELD_LIFETIME_MIN- See Also:
 
 - 
ICE_FIELD_LIFETIME_MAX
public static final int ICE_FIELD_LIFETIME_MAX- See Also:
 
 - 
ICE_FIELD_COUNT
public static final int ICE_FIELD_COUNT- See Also:
 
 - 
ICE_FIELD_MAX_TOUCHES
public static final int ICE_FIELD_MAX_TOUCHES- See Also:
 
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable- Overrides:
 writein classAbility
 - 
read
- Specified by:
 readin interfaceKryoSerializable- Overrides:
 readin classAbility
 - 
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. - 
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. - 
onDone
public void onDone()Description copied from class:AbilityCalled by theAbilitySystemonce 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:AbilityCalled byAbilitySystem.draw(Batch, float)each frame. Allows to update realtime graphics of the ability. - 
handleEvent
Description copied from interface:ListenerCalled each time an event is being triggered- Specified by:
 handleEventin interfaceListener<EnemySpawn>- Parameters:
 event- event object passed by someone. Some events can be stopped or cancelled
 
 -