| 
                Last change
                  on this file since 3557 was
                  3530,
                  checked in by chris, 21 years ago
           | 
        
        
          | 
               
orxonox/branches/levelloader: Got the system to compile, the basic backbone now runs. What remains to be done is implementing all necessary functions to load all vital classes into a world 
 
           | 
        
        | 
            File size:
            1.1 KB
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [3224] | 1 | #ifndef _GAME_LOADER_H | 
|---|
 | 2 | #define _GAME_LOADER_H | 
|---|
| [2636] | 3 |  | 
|---|
 | 4 | #include "stdincl.h" | 
|---|
 | 5 | #include "story_def.h" | 
|---|
| [3530] | 6 | #include "factory.h" | 
|---|
| [2636] | 7 |  | 
|---|
 | 8 | //----------------------------------------------------------------------------- | 
|---|
 | 9 | // Forward declarations | 
|---|
 | 10 | //----------------------------------------------------------------------------- | 
|---|
 | 11 | class Campaign; | 
|---|
 | 12 | class World; | 
|---|
 | 13 | class Camera; | 
|---|
 | 14 | class CammandNode; | 
|---|
 | 15 |  | 
|---|
 | 16 |  | 
|---|
 | 17 | class GameLoader  | 
|---|
 | 18 | { | 
|---|
 | 19 |  | 
|---|
 | 20 |  public: | 
|---|
 | 21 |   static GameLoader* getInstance(); | 
|---|
 | 22 |  | 
|---|
| [3222] | 23 |   ErrorMessage init(); | 
|---|
 | 24 |   ErrorMessage loadCampaign(char* name); | 
|---|
 | 25 |   ErrorMessage start(); | 
|---|
 | 26 |   ErrorMessage stop(); | 
|---|
 | 27 |   ErrorMessage pause(); | 
|---|
 | 28 |   ErrorMessage resume(); | 
|---|
| [3225] | 29 |   ErrorMessage destroy(); | 
|---|
| [2636] | 30 |  | 
|---|
 | 31 |   void nextLevel(); | 
|---|
 | 32 |   void previousLevel(); | 
|---|
 | 33 |  | 
|---|
 | 34 |   bool worldCommand(Command* cmd); | 
|---|
| [3222] | 35 |   ErrorMessage loadDebugCampaign(Uint32 campaignID); | 
|---|
| [2636] | 36 |    | 
|---|
| [3501] | 37 |   void registerFactory( Factory* factory); | 
|---|
| [3525] | 38 |   BaseObject* fabricate( TiXmlElement* data); | 
|---|
| [3501] | 39 |    | 
|---|
| [2636] | 40 |  private: | 
|---|
 | 41 |   GameLoader (); | 
|---|
 | 42 |   ~GameLoader (); | 
|---|
 | 43 |   Uint32 startTime; //!> start time of the campaign | 
|---|
 | 44 |   static GameLoader* singletonRef; | 
|---|
 | 45 |   bool isPaused; | 
|---|
 | 46 |  | 
|---|
 | 47 |   Campaign* currentCampaign; //!> the current campaign playing | 
|---|
 | 48 |    | 
|---|
 | 49 |   Campaign* fileToCampaign(char* name); | 
|---|
 | 50 |  | 
|---|
| [3501] | 51 |   Factory* first; | 
|---|
| [2636] | 52 | }; | 
|---|
 | 53 |  | 
|---|
| [3530] | 54 | #endif /* _GAME_LOADER_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.