|
Last change
on this file since 3501 was
3501,
checked in by chris, 21 years ago
|
|
orxonox/branches/levelloader: Feeble attempt to load anything… neither finished nor useful
|
|
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" |
|---|
| 6 | |
|---|
| 7 | //----------------------------------------------------------------------------- |
|---|
| 8 | // Forward declarations |
|---|
| 9 | //----------------------------------------------------------------------------- |
|---|
| 10 | class Campaign; |
|---|
| 11 | class World; |
|---|
| 12 | class Camera; |
|---|
| 13 | class CammandNode; |
|---|
| 14 | |
|---|
| 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 | |
|---|
| [3501] | 36 | void registerFactory( Factory* factory); |
|---|
| 37 | StoryEntity* fabricate( TiXMLElement* data); |
|---|
| 38 | |
|---|
| [2636] | 39 | private: |
|---|
| 40 | GameLoader (); |
|---|
| 41 | ~GameLoader (); |
|---|
| 42 | Uint32 startTime; //!> start time of the campaign |
|---|
| 43 | static GameLoader* singletonRef; |
|---|
| 44 | bool isPaused; |
|---|
| 45 | |
|---|
| 46 | Campaign* currentCampaign; //!> the current campaign playing |
|---|
| 47 | |
|---|
| 48 | Campaign* fileToCampaign(char* name); |
|---|
| 49 | |
|---|
| [3501] | 50 | Factory* first; |
|---|
| [2636] | 51 | }; |
|---|
| 52 | |
|---|
| [3501] | 53 | #endif /* _GAME_LOADER_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.