Last change
on this file since 3628 was
3608,
checked in by patrick, 20 years ago
|
orxonox/trunk: now there is a real speedup in compiling time when dependencies are modified: just realy only includes, what is needed. Byside the speedup, there is more overview! never add an orxonox class to stdincl.h if it doesn't have to be
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3224] | 1 | #ifndef _GAME_LOADER_H |
---|
| 2 | #define _GAME_LOADER_H |
---|
[2636] | 3 | |
---|
[3608] | 4 | //#include "stdincl.h" |
---|
[2636] | 5 | #include "story_def.h" |
---|
[3608] | 6 | #include "comincl.h" |
---|
[2636] | 7 | |
---|
| 8 | //----------------------------------------------------------------------------- |
---|
| 9 | // Forward declarations |
---|
| 10 | //----------------------------------------------------------------------------- |
---|
| 11 | class Campaign; |
---|
| 12 | class World; |
---|
| 13 | class Camera; |
---|
| 14 | class CammandNode; |
---|
| 15 | |
---|
| 16 | class GameLoader |
---|
| 17 | { |
---|
| 18 | |
---|
| 19 | public: |
---|
| 20 | static GameLoader* getInstance(); |
---|
| 21 | |
---|
[3222] | 22 | ErrorMessage init(); |
---|
| 23 | ErrorMessage loadCampaign(char* name); |
---|
| 24 | ErrorMessage start(); |
---|
| 25 | ErrorMessage stop(); |
---|
| 26 | ErrorMessage pause(); |
---|
| 27 | ErrorMessage resume(); |
---|
[3225] | 28 | ErrorMessage destroy(); |
---|
[2636] | 29 | |
---|
| 30 | void nextLevel(); |
---|
| 31 | void previousLevel(); |
---|
| 32 | |
---|
| 33 | bool worldCommand(Command* cmd); |
---|
[3222] | 34 | ErrorMessage loadDebugCampaign(Uint32 campaignID); |
---|
[2636] | 35 | |
---|
| 36 | private: |
---|
| 37 | GameLoader (); |
---|
| 38 | ~GameLoader (); |
---|
| 39 | Uint32 startTime; //!> start time of the campaign |
---|
| 40 | static GameLoader* singletonRef; |
---|
| 41 | bool isPaused; |
---|
| 42 | |
---|
| 43 | Campaign* currentCampaign; //!> the current campaign playing |
---|
| 44 | |
---|
| 45 | Campaign* fileToCampaign(char* name); |
---|
| 46 | |
---|
| 47 | }; |
---|
| 48 | |
---|
[3224] | 49 | #endif /* _GAME_LOADER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.