Bandidos
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
com.mygdx.game.entities.Player Class Reference
Inheritance diagram for com.mygdx.game.entities.Player:
com.mygdx.game.engine.entities.BaseEntity com.mygdx.game.engine.events.EventDispatcher

Public Member Functions

 Player (BaseWeapon startWeapon)
 
void switchWeapon (BaseWeapon weapon)
 
BaseWeapon getCurrentWeapon ()
 
void giveSpecial (int specialType)
 
- 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< ListenerItemgetAllListeners ()
 
void destroyAllListeners ()
 
void clean ()
 

Static Public Attributes

static final int SPECIAL_ARROW_EXPLOSIVE = 0
 
static final int SPECIAL_ARROW_FREEZE = 1
 
static final int SPECIAL_ARROW_POISON = 2
 
static final int [] ALL_SPECIAL_ARROWS = { SPECIAL_ARROW_EXPLOSIVE, SPECIAL_ARROW_FREEZE, SPECIAL_ARROW_POISON }
 

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 ()
 

Constructor & Destructor Documentation

◆ Player()

com.mygdx.game.entities.Player.Player ( BaseWeapon  startWeapon)

Member Function Documentation

◆ awake()

void com.mygdx.game.entities.Player.awake ( )
protected

◆ destroyed()

void com.mygdx.game.entities.Player.destroyed ( )
protected

◆ getCurrentWeapon()

BaseWeapon com.mygdx.game.entities.Player.getCurrentWeapon ( )

◆ giveSpecial()

void com.mygdx.game.entities.Player.giveSpecial ( int  specialType)

◆ rendered()

void com.mygdx.game.entities.Player.rendered ( RenderComponents  renderComponents)
protected

◆ switchWeapon()

void com.mygdx.game.entities.Player.switchWeapon ( BaseWeapon  weapon)

◆ updated()

void com.mygdx.game.entities.Player.updated ( float  dt)
protected

Member Data Documentation

◆ ALL_SPECIAL_ARROWS

final int [] com.mygdx.game.entities.Player.ALL_SPECIAL_ARROWS = { SPECIAL_ARROW_EXPLOSIVE, SPECIAL_ARROW_FREEZE, SPECIAL_ARROW_POISON }
static

◆ SPECIAL_ARROW_EXPLOSIVE

final int com.mygdx.game.entities.Player.SPECIAL_ARROW_EXPLOSIVE = 0
static

◆ SPECIAL_ARROW_FREEZE

final int com.mygdx.game.entities.Player.SPECIAL_ARROW_FREEZE = 1
static

◆ SPECIAL_ARROW_POISON

final int com.mygdx.game.entities.Player.SPECIAL_ARROW_POISON = 2
static

The documentation for this class was generated from the following file: