application.h

Go to the documentation of this file.
00001 /* MAINATINER: Bernard CURENT_EDITOR: Bernard */
00002 
00003 #ifndef _APPLICATION_H
00004 #define _APPLICATION_H
00005 
00018 class Commander;
00019 class Game;
00020 #include "taskmanager.h"
00021 
00031 class Application
00032 {
00033 public:
00034         
00035         Application();
00036         virtual ~Application() = 0;
00037 
00039         virtual void init() = 0;
00040 
00041         virtual void run() = 0;
00042         
00043         virtual void clean() = 0;
00044 
00053         virtual Game* getGameCommon() = 0;
00054 
00061         virtual Commander& getCommander() = 0;
00062 
00072         virtual TaskManager& getTaskManager();
00073         
00074 protected:
00075 
00076 private:
00088         void initBasicSubsystems();
00089         
00095         void cleanBasicSubsystems();
00096 
00097 protected:      
00105         void loadUserConfigFile(const char *file, const char *file_template);
00106 
00107         
00108         void saveUserConfigFile(const char *file, const char *file_template);
00109 
00110         TaskManager mTaskManager; 
00111 };
00112 
00113 #endif // _APPLICATION_H

Generated on Wed Apr 12 13:55:27 2006 for bjs by  doxygen 1.4.5