1 #ifndef HEADER_GAMEAGENT_H 2 #define HEADER_GAMEAGENT_H 3 4 class StateManager; 5 6 #include "BaseAgent.h" 7 #include "Name.h" 8 9 #include <string> 10 11 /** 12 * Create game. 13 * GameAgent uses StateManager to manage 14 * WorldMap, Pedometer, Level and DemoMode. 15 */ 16 class GameAgent : public BaseAgent { 17 AGENT(GameAgent, Name::GAME_NAME); 18 private: 19 StateManager *m_manager; 20 private: 21 void replaySolution(const std::string &codename); 22 void keyBinding(); 23 protected: 24 virtual void own_init(); 25 virtual void own_update(); 26 virtual void own_shutdown(); 27 }; 28 29 #endif 30