Bandidos
|
Classes | |
enum | ScoreGainType |
Public Member Functions | |
ScoreHolderComponent (ScoreGainType scoreGainType, int scoreWorth) | |
int | getScoreWorth () |
ScoreGainType | getScoreGainType () |
void | setScoreWorth (int value) |
void | awake () |
Public Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
EngineTween | startTweenOnComponent (Tween tween, TweenStartType tweenStartType) |
Timeline | startTimelineOnComponent (Timeline timeline, boolean updateInGameTime) |
EngineTween | doFloat (TweenableFloat floatToTween, float newValue, float duration, TweenStartType tweenStartType) |
void | stopAllComponentTweens () |
void | initialize (BaseEntity parentEntity) |
BaseEntity | getParentOfComponent () |
boolean | isActive () |
boolean | isDestroyed () |
void | setActiveState (boolean activeState) |
void | destroy () |
void | update (float deltaTime) |
abstract void | awake () |
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 | updated (float deltaTime) |
void | destroyed () |
void | activeStateChanged () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
abstract void | updated (float deltaTime) |
abstract void | destroyed () |
abstract void | activeStateChanged () |
This component can be added to an entity to represent it as something which can be used to gain score by the player
com.mygdx.game.score.ScoreHolderComponent.ScoreHolderComponent | ( | ScoreGainType | scoreGainType, |
int | scoreWorth | ||
) |
A score component has the have the following information to work with
scoreGainType | is what the component represents the gaining of score should be |
scoreWorth | is how much score this entity represents. (How much to gain after the action the type represents has been done) |
|
protected |
void com.mygdx.game.score.ScoreHolderComponent.awake | ( | ) |
|
protected |
ScoreGainType com.mygdx.game.score.ScoreHolderComponent.getScoreGainType | ( | ) |
Returns the score gaining type of this entity
int com.mygdx.game.score.ScoreHolderComponent.getScoreWorth | ( | ) |
Returns the score value of this entity
void com.mygdx.game.score.ScoreHolderComponent.setScoreWorth | ( | int | value | ) |
Sets the score worth of this component.
value | to set the score worth to. |
|
protected |