Bandidos
|
Public Member Functions | |
ExplosiveBarrelDamageTrap (Grid grid, Direction direction, float damage, float radius) | |
int | place (int x, int y) |
int | getSizeX () |
int | getSizeY () |
boolean | canBeActive () |
void | refresh () |
Public Member Functions inherited from com.mygdx.game.traps.types.BaseTrap | |
BaseTrap (Grid grid, TrapFactory.Direction direction) | |
int | place (int gridXPos, int gridYPos) |
TrapFactory.Direction | getDirection () |
void | trigger () |
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 | doEffect () |
void | awake () |
void | updated (float dt) |
void | rendered (RenderComponents renderComponents) |
void | destroyed () |
Protected Member Functions inherited from com.mygdx.game.traps.types.BaseTrap | |
void | destroyed () |
Grid | getGrid () |
GridUserComponent | getGridUserComponent () |
abstract void | doEffect () |
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 () |
Spawns 3 explosive barrels which all do 1/3 of the total damage given to this trap. They will all explode with a short delay of 0.2 seconds dealing the given damage in total.
com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.ExplosiveBarrelDamageTrap | ( | Grid | grid, |
Direction | direction, | ||
float | damage, | ||
float | radius | ||
) |
|
protected |
boolean com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.canBeActive | ( | ) |
Indicates whether this trap is allowed to be active. This can be false due to it still running or other reasons the trap gives it
Implements com.mygdx.game.traps.ITrap.
|
protected |
|
protected |
int com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.getSizeX | ( | ) |
The amount of tiles this trap covers in the x axis starting from the left side
Implements com.mygdx.game.traps.ITrap.
int com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.getSizeY | ( | ) |
The amount of tiles this trap covers in the y axis starting from the upper side
Implements com.mygdx.game.traps.ITrap.
int com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.place | ( | int | x, |
int | y | ||
) |
void com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.refresh | ( | ) |
Is called when the trap is requested to be available again.
Implements com.mygdx.game.traps.ITrap.
|
protected |
|
protected |