Back to Evolution Project page


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Header Files   Sources   Compound Members   File Members  

Application.h

00001 #ifndef APPLICATION_EVO 
00002 #define APPLICATION_EVO 
00003 
00004 #include <ClanLib/core.h>
00005 
00006 class TApplication : public CL_ClanApplication { 
00007  public: 
00008   //* These functions are present in all ClanLib Applications
00009   virtual char *get_title() { return "Evolution"; }
00010    
00011   //* I would like to put the two functions below in TSystem class, but ClanLib doesn't allow.
00012   virtual void init_modules(){
00013     CL_SetupCore::init();
00014     CL_SetupCore::init_display();
00015     CL_SetupCore::init_sound(); 
00016   }
00017   virtual void deinit_modules() {
00018     CL_SetupCore::deinit_sound();
00019     CL_SetupCore::deinit_display();
00020     CL_SetupCore::deinit();  
00021   }
00022   
00023   virtual int main(int argc, char **argv) {
00024     Run();
00025     return 1;
00026   }
00027   
00028   //* Functions Specific for this Application
00029   int Run();
00030   
00031  private: 
00032   
00033  protected:
00034 } app;
00035 
00036 
00037 #endif //APPLICATION_EVO 

Generated at Mon Nov 6 22:47:02 2000 for TheGameofEvolution by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999