Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/game_loader.h @ 3562

Last change on this file since 3562 was 3530, checked in by chris, 20 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
Line 
1#ifndef _GAME_LOADER_H
2#define _GAME_LOADER_H
3
4#include "stdincl.h"
5#include "story_def.h"
6#include "factory.h"
7
8//-----------------------------------------------------------------------------
9// Forward declarations
10//-----------------------------------------------------------------------------
11class Campaign;
12class World;
13class Camera;
14class CammandNode;
15
16
17class GameLoader
18{
19
20 public:
21  static GameLoader* getInstance();
22
23  ErrorMessage init();
24  ErrorMessage loadCampaign(char* name);
25  ErrorMessage start();
26  ErrorMessage stop();
27  ErrorMessage pause();
28  ErrorMessage resume();
29  ErrorMessage destroy();
30
31  void nextLevel();
32  void previousLevel();
33
34  bool worldCommand(Command* cmd);
35  ErrorMessage loadDebugCampaign(Uint32 campaignID);
36 
37  void registerFactory( Factory* factory);
38  BaseObject* fabricate( TiXmlElement* data);
39 
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
51  Factory* first;
52};
53
54#endif /* _GAME_LOADER_H */
Note: See TracBrowser for help on using the repository browser.