Logo Search packages:      
Sourcecode: hannah version File versions  Download package

Public Member Functions | Public Attributes | Protected Attributes

Player Class Reference

Inheritance diagram for Player:
Inheritance graph
[legend]
Collaboration diagram for Player:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool animationFinished ()
SDL_Surface * frame ()
char * getAnimation ()
void gridx (int x)
void gridy (int y)
bool isAnimation (char *name)
void kill ()
void loadAnimation (char *animName, bool loop)
void move ()
 Player (char *name, AnimationFactory *af)
void respawn ()
void setAnimation (char *name)
void x (int x)
int x ()
int y ()
void y (int y)

Public Attributes

bool alive
int direction
int lives
int nextxpos
int nextypos

Protected Attributes

AnimationFactoryaf
vector< Animation * > animations
Animationcurrent
int currentframe
int delay
int gridxpos
int gridypos
char * name
int speed
int xpos
int ypos

Detailed Description

Definition at line 3 of file Player.h.


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

Generated by  Doxygen 1.6.0   Back to index