Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/game_loader.h @ 3222

Last change on this file since 3222 was 3222, checked in by bensch, 21 years ago

orxonox/trunk: Error → ErrorMessage

File size: 993 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//-----------------------------------------------------------------------------
10class Campaign;
11class World;
12class Camera;
13class CammandNode;
14
15
16class GameLoader
17{
18
19 public:
20  static GameLoader* getInstance();
21
22  ErrorMessage init();
23  ErrorMessage loadCampaign(char* name);
24  ErrorMessage start();
25  ErrorMessage stop();
26  ErrorMessage pause();
27  ErrorMessage resume();
28  ErrorMessage free();
29
30  void nextLevel();
31  void previousLevel();
32
33  bool worldCommand(Command* cmd);
34  ErrorMessage 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.