| 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 |  | 
|---|
| 25 |  | 
|---|
| 26 | //! The game world data | 
|---|
| 27 | /** | 
|---|
| 28 |  * this class is a containter for the data of the GameWorld. It just loads and unloads it | 
|---|
| 29 |  * the game start/stop process is not contained here and can be found in the GameWorld class. | 
|---|
| 30 |  */ | 
|---|
| 31 | class GameWorldData : public DataTank | 
|---|
| 32 | { | 
|---|
| 33 |  | 
|---|
| 34 |   public: | 
|---|
| 35 |     GameWorldData(); | 
|---|
| 36 |     virtual ~GameWorldData(); | 
|---|
| 37 |  | 
|---|
| 38 |     virtual ErrorMessage init(); | 
|---|
| 39 |     virtual ErrorMessage loadData(TiXmlElement* root); | 
|---|
| 40 |     virtual ErrorMessage unloadData(); | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 |   protected: | 
|---|
| 44 |     virtual ErrorMessage loadGUI(TiXmlElement* root); | 
|---|
| 45 |     virtual ErrorMessage loadWorldEntities(TiXmlElement* root); | 
|---|
| 46 |     virtual ErrorMessage loadScene(TiXmlElement* root); | 
|---|
| 47 |  | 
|---|
| 48 |     virtual ErrorMessage unloadGUI(); | 
|---|
| 49 |     virtual ErrorMessage unloadWorldEntities(); | 
|---|
| 50 |     virtual ErrorMessage unloadScene(); | 
|---|
| 51 |  | 
|---|
| 52 |  | 
|---|
| 53 |   public: | 
|---|
| 54 |     GLMenuImageScreen*  glmis;                       //!< The Level-Loader Display | 
|---|
| 55 |  | 
|---|
| 56 |     Camera*             localCamera;                 //!< The current camera | 
|---|
| 57 |     Player*             localPlayer;                 //!< The player, you fly through the level. | 
|---|
| 58 |     WorldEntity*        sky;                         //!< The environmental sky of orxonox | 
|---|
| 59 |     Terrain*            terrain;                     //!< The terrain - ground | 
|---|
| 60 |  | 
|---|
| 61 |     OggPlayer*          music;                       //!< Reference to the SoundEngine's music player (OggPlayer) | 
|---|
| 62 |     ObjectManager*      objectManager;               //!< Reference to the objects manager | 
|---|
| 63 | }; | 
|---|
| 64 |  | 
|---|
| 65 | #endif /* _GAME_WORLD_DATA_H */ | 
|---|
| 66 |  | 
|---|