Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3525 was 3525, checked in by chris, 19 years ago

orxonox/branches/levelloader: removed excess class usage adn messed with makefile definitions

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
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 destroy();
29
30  void nextLevel();
31  void previousLevel();
32
33  bool worldCommand(Command* cmd);
34  ErrorMessage loadDebugCampaign(Uint32 campaignID);
35 
36  void registerFactory( Factory* factory);
37  BaseObject* fabricate( TiXmlElement* data);
38 
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
50  Factory* first;
51};
52
53#endif /* _GAME_LOADER_H */
Note: See TracBrowser for help on using the repository browser.