Bandidos
|
Public Member Functions | |
ExplosiveBarrel (float dmg, float radius) | |
void | triggerBarrel () |
boolean | hasExploded () |
Public Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity | |
BaseEntity () | |
TransformComponent | getTransformComponent () |
boolean | hasInstanceOfComponent (BaseEntityComponent componentInstance) |
void | addTag (String tag) |
void | removeTag (String tag) |
boolean | hasTag (String tag) |
void | update (float dt) |
void | render (RenderComponents renderComponents) |
void | destroy () |
boolean | isDestroyed () |
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 | awake () |
void | updated (float dt) |
void | rendered (RenderComponents renderComponents) |
void | destroyed () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity | |
abstract void | awake () |
abstract void | updated (float dt) |
abstract void | rendered (RenderComponents renderComponents) |
abstract void | destroyed () |
This entity is an explosive barrel which can be triggered once to explode and will remove itself when it has been triggered after x amount of time The barrel will only damage enemies.
com.mygdx.game.traps.types.ExplosiveBarrel.ExplosiveBarrel | ( | float | dmg, |
float | radius | ||
) |
Creates an Explosive barrel with its stats in tact from the start
dmg | represents the damage this barrel will do to all enemies in his explosion radius |
radius | to check for enemies to damage with the given damage amount |
|
protected |
|
protected |
boolean com.mygdx.game.traps.types.ExplosiveBarrel.hasExploded | ( | ) |
Returns whether this barrel has exploded.
|
protected |
void com.mygdx.game.traps.types.ExplosiveBarrel.triggerBarrel | ( | ) |
Triggers the barrel to explode. Note: This can only be triggered once for each instance.
|
protected |