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

Public Member Functions | Public Attributes | Protected Attributes

Ghost2 Class Reference

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

List of all members.

Public Member Functions

bool animationFinished ()
void decTimer ()
SDL_Surface * frame ()
char * getAnimation ()
int getfreedirections ()
 Ghost2 (char *filename, int x, int y, int speed, AnimationFactory *af)
void gridx (int x)
void gridy (int y)
bool isAnimation (char *name)
void kill ()
void loadAnimation (char *animName, bool loop)
virtual void move (int x, int y)
void move ()
void setAnimation (char *name)
void setLevel (Level lev, int startx, int starty)
void setRespawn (long time)
bool testdirection (int dir)
void timer (long timeleft)
long timer ()
int x ()
void x (int x)
int y ()
void y (int y)

Public Attributes

bool alive
int direction
char effect
Level lev
int nextdir
int nextxpos
int nextypos
int numframes
long respawntime
int startx
int starty
long timeleft

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 10 of file Ghost2.h.


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

Generated by  Doxygen 1.6.0   Back to index