1 | /*! |
---|
2 | * @file game_world_data.h |
---|
3 | * container for all game world data |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GAME_WORLD_DATA_H |
---|
7 | #define _GAME_WORLD_DATA_H |
---|
8 | |
---|
9 | #include "sdlincl.h" |
---|
10 | #include "data_tank.h" |
---|
11 | #include "error.h" |
---|
12 | |
---|
13 | |
---|
14 | class Camera; |
---|
15 | class Player; |
---|
16 | class Terrain; |
---|
17 | class WorldEntity; |
---|
18 | class ObjectManager; |
---|
19 | |
---|
20 | class GLMenuImageScreen; |
---|
21 | |
---|
22 | class TiXmlElement; |
---|
23 | class OggPlayer; |
---|
24 | class GameRules; |
---|
25 | |
---|
26 | |
---|
27 | //! The game world data |
---|
28 | /** |
---|
29 | * this class is a containter for the data of the GameWorld. It just loads and unloads it |
---|
30 | * the game start/stop process is not contained here and can be found in the GameWorld class. |
---|
31 | */ |
---|
32 | class GameWorldData : public DataTank |
---|
33 | { |
---|
34 | |
---|
35 | public: |
---|
36 | GameWorldData(); |
---|
37 | virtual ~GameWorldData(); |
---|
38 | |
---|
39 | virtual ErrorMessage init(); |
---|
40 | virtual ErrorMessage loadData(TiXmlElement* root); |
---|
41 | virtual ErrorMessage unloadData(); |
---|
42 | |
---|
43 | /* interface functions */ |
---|
44 | void setSoundTrack(const char* name); |
---|
45 | void loadGameRule(const TiXmlElement* root); |
---|
46 | |
---|
47 | protected: |
---|
48 | virtual ErrorMessage loadGUI(TiXmlElement* root); |
---|
49 | virtual ErrorMessage loadWorldEntities(TiXmlElement* root); |
---|
50 | virtual ErrorMessage loadScene(TiXmlElement* root); |
---|
51 | |
---|
52 | virtual ErrorMessage unloadGUI(); |
---|
53 | virtual ErrorMessage unloadWorldEntities(); |
---|
54 | virtual ErrorMessage unloadScene(); |
---|
55 | |
---|
56 | public: |
---|
57 | GLMenuImageScreen* glmis; //!< The Level-Loader Display |
---|
58 | |
---|
59 | Camera* localCamera; //!< The current camera |
---|
60 | Player* localPlayer; //!< The player, you fly through the level. |
---|
61 | WorldEntity* sky; //!< The environmental sky of orxonox |
---|
62 | Terrain* terrain; //!< The terrain - ground |
---|
63 | |
---|
64 | OggPlayer* music; //!< Reference to the SoundEngine's music player (OggPlayer) |
---|
65 | ObjectManager* objectManager; //!< Reference to the objects manager |
---|
66 | |
---|
67 | GameRules* gameRule; //!< Reference to the game rules of this game |
---|
68 | }; |
---|
69 | |
---|
70 | #endif /* _GAME_WORLD_DATA_H */ |
---|
71 | |
---|