00001 #ifndef HEADER_GAMEAGENT_H 00002 #define HEADER_GAMEAGENT_H 00003 00004 class StateManager; 00005 00006 #include "BaseAgent.h" 00007 #include "Name.h" 00008 00009 /** 00010 * Create game. 00011 * GameAgent uses StateManager to manage 00012 * WorldMap, Pedometer, Level and DemoMode. 00013 */ 00014 class GameAgent : public BaseAgent { 00015 AGENT(GameAgent, Name::GAME_NAME); 00016 private: 00017 StateManager *m_manager; 00018 private: 00019 void keyBinding(); 00020 protected: 00021 virtual void own_init(); 00022 virtual void own_update(); 00023 virtual void own_shutdown(); 00024 }; 00025 00026 #endif