Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/game_world_data.h @ 7368

Last change on this file since 7368 was 7368, checked in by bensch, 18 years ago

orxonox/trunk: some renamings, and GameWorldData now has lists for what EntityLists should be drawed/ticked/collided(not yet implemented).

File size: 2.2 KB
Line 
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#include "object_manager.h"
13
14class Camera;
15class Player;
16class Terrain;
17class WorldEntity;
18
19class GLMenuImageScreen;
20
21class TiXmlElement;
22class OggPlayer;
23class GameRules;
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 */
31class GameWorldData : public DataTank
32{
33  public:
34    GameWorldData();
35    virtual ~GameWorldData();
36
37    virtual ErrorMessage init();
38    virtual ErrorMessage loadData(TiXmlElement* root);
39    virtual ErrorMessage unloadData();
40
41    /* interface functions */
42    void setSoundTrack(const std::string& name);
43    void loadGameRule(const TiXmlElement* root);
44
45  protected:
46    virtual ErrorMessage loadGUI(TiXmlElement* root);
47    virtual ErrorMessage loadWorldEntities(TiXmlElement* root);
48    virtual ErrorMessage loadScene(TiXmlElement* root);
49
50    virtual ErrorMessage unloadGUI();
51    virtual ErrorMessage unloadWorldEntities();
52    virtual ErrorMessage unloadScene();
53
54  public:
55    GLMenuImageScreen*            glmis;          //!< The Level-Loader Display
56
57    Camera*                       localCamera;    //!< The current camera
58    Player*                       localPlayer;    //!< The player, you fly through the level.
59    WorldEntity*                  sky;            //!< The environmental sky of orxonox
60    Terrain*                      terrain;        //!< The terrain - ground
61
62    OggPlayer*                    music;          //!< Reference to the SoundEngine's music player (OggPlayer)
63    ObjectManager*                objectManager;  //!< Reference to the objects manager
64
65    GameRules*                    gameRule;       //!< Reference to the game rules of this game
66
67    std::list<OM_LIST>            tickLists;      //!< The Lists in the GameWorld that should be ticked.
68    std::list<OM_LIST>            drawLists;      //!< The Lists in the GameWorld, that should be drawn.
69};
70
71#endif /* _GAME_WORLD_DATA_H */
72
Note: See TracBrowser for help on using the repository browser.