duncan
Mom and Dad were wrong!
/home/malcolm/tmp/duncan/prototype/0/bot/bot.h
00001 #ifndef BOT_BOT_H_
00002 #define BOT_BOT_H_
00003 
00004 #include <string>
00005 #include <cstdlib>
00006 #include "../client/gamestate.h"
00007 #include "../timer/timer.h"
00008 
00009 namespace bot {
00010 
00018 class Bot {
00019         private:
00020                 const static double kChangeInterval=1;
00021                 const static double kSecondsPerUpdate=0.1;
00022 
00023                 client::GameState game_;
00024                 bool running_;
00025                 double last_dir_change_;
00026                 timer::Timer timer_;
00027                 unsigned int last_key_;
00028                 unsigned int dir_keys_[4];
00029                 std::string name_; // hello i am duplicating data and there's NOTHING you can do to stop me
00030         public:
00031                 Bot(const std::string&, const std::string&);
00032                 ~Bot();
00033         
00034                 void message(const std::string&);
00035                 bool update();
00036 };
00037 
00038 } // namespace
00039 
00040 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations