Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

bear.h

Go to the documentation of this file.
00001 #ifndef __BEAR_H
00002 #define __BEAR_H
00003 
00004 //#define BEAR_IMG_FILE "data/images/bear"
00005 #define BEAR_IMG_FILE DATAFILE("images" DIR_SEP "bear")
00006 
00007 
00008 #include "object.h"
00009 
00010 class Bear : public GameObject {
00011 public:
00012         Bear(ObjectManager &);
00013         ~Bear();
00014 
00015         void think();
00016         
00017         enum direction { EAST = 0, SOUTHEAST, SOUTH, SOUTHWEST, WEST, NORTHWEST, NORTH, NORTHEAST};
00018         //enum position { UPPER_LEFT, UPPER_RIGHT, LOWER_LEFT, LOWER_RIGHT, MAX_POS, INBETWEEN };
00019         //void SetupPosition();
00020         void SetupDirection();
00021         bool isWalking();
00022 
00023 private:
00024         direction movingDir;
00025 
00026         bool walking;
00027         void setWalk (double, double);
00028         
00029         
00030         int notmoving_delay;
00031         int velocity_delay;
00032         nnctime lastwalk;
00033 
00034         //velocity variables
00035         Velocity walk_velocity;
00036         double acceleration;
00037         double xMinVel, xMaxVel, yMinVel, yMaxVel;
00038         
00039 };
00040 
00041 
00042 #endif

Generated on Sun Dec 8 12:02:19 2002 for nnc by doxygen1.3-rc1