Last change
on this file since 3091 was
2636,
checked in by patrick, 20 years ago
|
- Added a GameLoader to the game. This enables orxonox to load a campaign consisting of multimple worlds and cinematics etc. However, cinematics are not yet implemented.
In the game you can jump from one level to the other by pressing x. Currently there are only two very simple levels defined. (DEBUG_LEVEL_0, DEBUG_LEVEL_1).
- Added Error Handling structs to signal the error source and code
|
File size:
937 bytes
|
Line | |
---|
1 | #ifndef GAME_LOADER_H |
---|
2 | #define GAME_LOADER_H |
---|
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 | |
---|
22 | Error init(); |
---|
23 | Error loadCampaign(char* name); |
---|
24 | Error start(); |
---|
25 | Error stop(); |
---|
26 | Error pause(); |
---|
27 | Error resume(); |
---|
28 | Error free(); |
---|
29 | |
---|
30 | void nextLevel(); |
---|
31 | void previousLevel(); |
---|
32 | |
---|
33 | bool worldCommand(Command* cmd); |
---|
34 | Error loadDebugCampaign(Uint32 campaignID); |
---|
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 | |
---|
49 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.