00001 #ifndef __BEAR_H
00002 #define __BEAR_H
00003
00004
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
00019
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
00035 Velocity walk_velocity;
00036 double acceleration;
00037 double xMinVel, xMaxVel, yMinVel, yMaxVel;
00038
00039 };
00040
00041
00042 #endif