Bandidos
|
Public Member Functions | |
TrainBlockTrap (Grid grid, Direction direction) | |
int | getSizeX () |
int | getSizeY () |
void | onReceiveEvent (Event event) |
boolean | canBeActive () |
void | refresh () |
Public Member Functions inherited from com.mygdx.game.traps.types.BaseBlockTrap | |
BaseBlockTrap (Grid grid, TrapFactory.Direction direction) | |
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 () |
Static Public Attributes | |
static final float | DURATION = 4f |
static final float | COOLDOWN_TIME = DURATION + 8f |
static final float | SPEED = 8 |
Protected Member Functions | |
void | onCollisionEvent (CollisionEvent event) |
void | awake () |
void | updated (float dt) |
void | rendered (RenderComponents renderComponents) |
void | destroyed () |
void | doEffect () |
void | endOfEffect () |
Protected Member Functions inherited from com.mygdx.game.traps.types.BaseBlockTrap | |
void | doEffect () |
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 () |
Additional Inherited Members | |
Protected Attributes inherited from com.mygdx.game.traps.types.BaseBlockTrap | |
boolean | canBeTriggered = true |
This spawns a train track which will spawn a passing train when triggered. Which blocks the way and kills all in its path of fury <3
|
protected |
boolean com.mygdx.game.traps.types.TrainBlockTrap.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 |
|
protected |
After the train is gone, the train will be destroyed and the grid will be not occupied anymore.
int com.mygdx.game.traps.types.TrainBlockTrap.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.TrainBlockTrap.getSizeY | ( | ) |
The amount of tiles this trap covers in the y axis starting from the upper side
Implements com.mygdx.game.traps.ITrap.
|
protected |
void com.mygdx.game.traps.types.TrainBlockTrap.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.traps.types.TrainBlockTrap.refresh | ( | ) |
Is called when the trap is requested to be available again.
Implements com.mygdx.game.traps.ITrap.
|
protected |
|
protected |
|
static |
|
static |
|
static |