class Player : public Keyable

Manages keys, Bonhomme color and Score

Inheritance:


Public Methods

Player(Ini& ini, int numeroSection) throw(Exception)
virtual ~Player() throw()
void keyAction(const Key& key) throw()
void setBonhomme(Bonhomme& b) throw()
Bonhomme* getBonhomme() throw()
void setColorToBonhomme() throw()
Score* getScore() throw()
void resetScore() throw()
void incScore() throw()
int getKeyUp() const throw()
int getKeyDown() const throw()
int getKeyLeft() const throw()
int getKeyRight() const throw()
int getKeyFire0() const throw()
int getKeyFire1() const throw()
void setKey(int k, int code) throw()

Protected Fields

Score* score
Tji posScore
int key[6]
Up, down, left, right, fire, special fire
Pixel color
Bonhomme* bonhomme
const String* idBonhomme
Ini* const iniRef
const int numeroSectionRef
int decColorTeam
Used to color the team

Inherited from Keyable:


Documentation

Manages keys, Bonhomme color and Score. It associates the color to its Bonhomme and to its team's Bonhommes.
Score* score

Tji posScore

int key[6]
Up, down, left, right, fire, special fire

Pixel color

Bonhomme* bonhomme

const String* idBonhomme

Ini* const iniRef

const int numeroSectionRef

int decColorTeam
Used to color the team

Player(Ini& ini, int numeroSection) throw(Exception)

virtual ~Player() throw()

void keyAction(const Key& key) throw()

void setBonhomme(Bonhomme& b) throw()

Bonhomme* getBonhomme() throw()

void setColorToBonhomme() throw()

Score* getScore() throw()

void resetScore() throw()

void incScore() throw()

int getKeyUp() const throw()

int getKeyDown() const throw()

int getKeyLeft() const throw()

int getKeyRight() const throw()

int getKeyFire0() const throw()

int getKeyFire1() const throw()

void setKey(int k, int code) throw()


This class has no child classes.
Author:
David FAUTHOUX

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de