Bandidos
|
Public Member Functions | |
ExplosiveComponent (String[] tagsToEffect, boolean endHitStreakOnMiss) | |
ExplosiveComponent (String tagToEffect, boolean endHitStreakOnMiss) | |
void | setEndHitStreakOnMiss (boolean value) |
Effect | triggerExplosion (EffectFactory.ExplosionType explosionType, float dmg, float radius, float scale, int hitTool) |
void | awake () |
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, when triggered, makes an explosion effect of the given type and damages all entities in radius with the 'HealthComponent' attached and if they are any of the given tags to effect
com.mygdx.game.components.ExplosiveComponent.ExplosiveComponent | ( | String [] | tagsToEffect, |
boolean | endHitStreakOnMiss | ||
) |
com.mygdx.game.components.ExplosiveComponent.ExplosiveComponent | ( | String | tagToEffect, |
boolean | endHitStreakOnMiss | ||
) |
|
protected |
void com.mygdx.game.components.ExplosiveComponent.awake | ( | ) |
|
protected |
void com.mygdx.game.components.ExplosiveComponent.setEndHitStreakOnMiss | ( | boolean | value | ) |
Effect com.mygdx.game.components.ExplosiveComponent.triggerExplosion | ( | EffectFactory.ExplosionType | explosionType, |
float | dmg, | ||
float | radius, | ||
float | scale, | ||
int | hitTool | ||
) |
This method triggers an explosion by this component on the location of the entity its attached to.
explosionType | is the type of explosion effect to spawn |
dmg | is the damage which should be caused to the hit entities holding an HealthComponent |
radius | is the radius in which the entities should stand from this entity in distance in order to be affected by the explosion. |
scale | is the scale of the explosion, this affects the explosion effect, damage and radius. |
|
protected |