Bandidos
|
Public Member Functions | |
Train (int cartAmount, boolean flipX) | |
float | getFullTrainSize () |
float | getTrainSize () |
float | getCartSize () |
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 | 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 class is a train entity which generates carts when so desired.
com.mygdx.game.entities.Train.Train | ( | int | cartAmount, |
boolean | flipX | ||
) |
This creates a train instance and sets the amount of carts which should be generated behind.
cartAmount | to generate behind the train |
flipX | means, if true, that the train faces left, else if false, that the train faces right |
|
protected |
|
protected |
float com.mygdx.game.entities.Train.getCartSize | ( | ) |
Gets the size of the train cart
float com.mygdx.game.entities.Train.getFullTrainSize | ( | ) |
Gives the size of the entire train + all the carts (x Size)
float com.mygdx.game.entities.Train.getTrainSize | ( | ) |
Gets the size of the train itself.
|
protected |
|
protected |