Bandidos
|
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 is an entity which allows for interaction between projectiles and traps. When this entity is hit by a projectile, the linked trap will be triggered.
com.mygdx.game.traps.TrapActivator.TrapActivator | ( | ITrap | trapToLink | ) |
The trap activator needs to be linked to a trap in order to trigger it on activation.
trapToLink | Trap to link to the activator |
void com.mygdx.game.traps.TrapActivator.activateTrap | ( | ) |
Activates the trap activator. Making it able to be hit & triggered. If the trap is not able to be activated at this frame, this activator will wait until it is and then activate itself.
|
protected |
void com.mygdx.game.traps.TrapActivator.deactivateTrap | ( | ) |
Deactivates the trap activator. Making it unable to be hit & triggered.
|
protected |
Vector2 com.mygdx.game.traps.TrapActivator.getLocalTargetLocation | ( | ) |
Returns the local position of the target of this activator (The bullseye)
boolean com.mygdx.game.traps.TrapActivator.isActivatorActive | ( | ) |
boolean com.mygdx.game.traps.TrapActivator.isProcessingActivationRequest | ( | ) |
void com.mygdx.game.traps.TrapActivator.linkToTrap | ( | ITrap | trapToLink | ) |
Links a trap to the activator so it can trigger it on activation.
trapToLink | Trap to link to the activator |
void com.mygdx.game.traps.TrapActivator.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.
|
protected |
|
protected |