Bandidos
|
Static Public Attributes | |
static final int | ANY_TOUCH_LAYER = -1337 |
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 () |
An entity for a Button. This can be used for whenever a button is needed. For example a play button for on the main menu, or a pause button.
com.mygdx.game.entities.ButtonEntity.ButtonEntity | ( | String | buttonAtlas | ) |
|
protected |
|
protected |
int com.mygdx.game.entities.ButtonEntity.getButtonTouchLayer | ( | ) |
Gets the touch layer in which the button can be interacted with.
RenderComponent com.mygdx.game.entities.ButtonEntity.getRenderComponent | ( | ) |
Returns the RenderComponent for the TextEntity WARNING: Do not remove the RenderComponent
boolean com.mygdx.game.entities.ButtonEntity.isButtonPressed | ( | ) |
void com.mygdx.game.entities.ButtonEntity.onButtonDown | ( | ) |
Sets the button state to down and dispatches the event for it.
void com.mygdx.game.entities.ButtonEntity.onButtonUp | ( | ) |
Sets the button state to up and dispatches the event for it.
void com.mygdx.game.entities.ButtonEntity.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 |
void com.mygdx.game.entities.ButtonEntity.setButtonTouchLayer | ( | int | layer | ) |
Sets the touch layer in which the button can be interacted with.
layer | of the button (DEFAULT: ButtonEntity.ANY_TOUCH_LAYER (-1337)) |
|
protected |
|
static |