cagoody.h

00001 #ifndef CAGOODY_H
00002 #define CAGOODY_H
00003 
00004 #include "cagoodytype.h"
00005 
00006 
00010 class CAGoody {
00011 public:
00012     CAGoody( CAGoodyType* goodyType );
00013     ~CAGoody();
00014 
00015     void reset();
00016     void display( int offsetX, int offsetY );
00017     void move( int x, int y, bool ups );
00018     void advance();
00019 
00021     bool isActive() {
00022         return active;
00023     }
00025     void setActive( bool on ) {
00026         active=on;
00027     }
00028 
00030     int  getX() {
00031         return x;
00032     }
00034     int  getY() {
00035         return y;
00036     }
00037 
00039     bool isUp() {
00040         return up;
00041     }
00042 
00044     CAGoodyType* getType() {
00045         return goodyType;
00046     }
00047 
00048 private:
00050 
00051     CAGoodyType* goodyType;
00053     bool active;
00055     int  x;
00057     int  y;
00059     bool up;
00061     unsigned int birthday;
00062 };
00063 
00064 #endif

Generated on Tue Nov 28 06:48:28 2006 by  doxygen 1.5.0