Bandidos
|
Public Member Functions | |
EnemyFreezeComponent (boolean removeComponentOnUnfreeze, int killTool) | |
void | awake () |
void | freeze (float duration) |
void | unFreeze () |
void | destroyIceBlock () |
void | onReceiveEvent (Event event) |
Public Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
EngineTween | startTweenOnComponent (Tween tween, TweenStartType tweenStartType) |
Timeline | startTimelineOnComponent (Timeline timeline, boolean updateInGameTime) |
EngineTween | doFloat (TweenableFloat floatToTween, float newValue, float duration, TweenStartType tweenStartType) |
void | stopAllComponentTweens () |
void | initialize (BaseEntity parentEntity) |
BaseEntity | getParentOfComponent () |
boolean | isActive () |
boolean | isDestroyed () |
void | setActiveState (boolean activeState) |
void | destroy () |
void | update (float deltaTime) |
abstract void | awake () |
Public Member Functions inherited from com.mygdx.game.engine.events.EventDispatcher | |
void | addEventListener (String type, IEventReceiver listeningClass) |
void | dispatchEvent (Event event) |
void | removeEventListener (String type, IEventReceiver listener) |
boolean | hasEventListener (String type) |
ArrayList< ListenerItem > | getAllListeners () |
void | destroyAllListeners () |
void | clean () |
Protected Member Functions | |
void | updated (float deltaTime) |
void | destroyed () |
void | activeStateChanged () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
abstract void | updated (float deltaTime) |
abstract void | destroyed () |
abstract void | activeStateChanged () |
This component start a freeze effect (including the ice cube) on the Enemy entity it is attached to when the 'freeze' method is called. This effect will stop when the effect duration has ended or when the 'unfreeze' method is called
com.mygdx.game.components.enemyEffects.EnemyFreezeComponent.EnemyFreezeComponent | ( | boolean | removeComponentOnUnfreeze, |
int | killTool | ||
) |
The constructor of the freeze component requires the following info
removeComponentOnUnfreeze | causes, when is set to true, that the component will be destroyed after the freeze effect has been done, else it will stay on the entity |
killTool | means when the enemy is killed while frozen, what KillTool it should represent to the HitRegistrationPoint |
|
protected |
void com.mygdx.game.components.enemyEffects.EnemyFreezeComponent.awake | ( | ) |
|
protected |
void com.mygdx.game.components.enemyEffects.EnemyFreezeComponent.destroyIceBlock | ( | ) |
Unfreezes the component and destroys the iceBlock effect with a quick effect instead of a melting effect.
void com.mygdx.game.components.enemyEffects.EnemyFreezeComponent.freeze | ( | float | duration | ) |
Freezes the Enemy Entity this component is attached to for the given duration or until the 'unfreeze' method is called
duration | to freeze the Enemy in game time |
void com.mygdx.game.components.enemyEffects.EnemyFreezeComponent.onReceiveEvent | ( | Event | event | ) |
This will be triggered when an event has been fired of type which this implementing class was listening to.
event | which has one of the event types which is listened to. |
Implements com.mygdx.game.engine.events.IEventReceiver.
void com.mygdx.game.components.enemyEffects.EnemyFreezeComponent.unFreeze | ( | ) |
Unfreezes the Enemy Entity this component is attached to and has called the freeze effect on. If this Enemy instance is not frozen by this component, this method does nothing
|
protected |