Bandidos
|
Public Member Functions | |
void | trigger () |
int | getSizeX () |
int | getSizeY () |
boolean | canBeActive () |
void | refresh () |
This interface contains all the methods needed for a class to be a trap on a grid
boolean com.mygdx.game.traps.ITrap.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
Implemented in com.mygdx.game.traps.types.TrainBlockTrap, and com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.
int com.mygdx.game.traps.ITrap.getSizeX | ( | ) |
The amount of tiles this trap covers in the x axis starting from the left side
Implemented in com.mygdx.game.traps.types.TrainBlockTrap, and com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.
int com.mygdx.game.traps.ITrap.getSizeY | ( | ) |
The amount of tiles this trap covers in the y axis starting from the upper side
Implemented in com.mygdx.game.traps.types.TrainBlockTrap, and com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.
void com.mygdx.game.traps.ITrap.refresh | ( | ) |
Is called when the trap is requested to be available again.
Implemented in com.mygdx.game.traps.types.TrainBlockTrap, and com.mygdx.game.traps.types.ExplosiveBarrelDamageTrap.
void com.mygdx.game.traps.ITrap.trigger | ( | ) |
Here the effect will be triggered of the trap
Implemented in com.mygdx.game.traps.types.BaseTrap.