Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/story_entities/single_player_world.h @ 6354

Last change on this file since 6354 was 6354, checked in by patrick, 18 years ago

network: changes in the world names

File size: 1.7 KB
Line 
1/*!
2 * @file world.h
3 *  Holds and manages all game data
4 */
5
6#ifndef _WORLD_H
7#define _WORLD_H
8
9#include "game_world.h"
10
11class WorldEntity;
12class Camera;
13class Player;
14class GLMenuImageScreen;
15class Terrain;
16class TiXmlElement;
17
18class Shell;
19class OggPlayer;
20
21//! The game world
22/**
23 *  this class initializes everything that should be displayed inside of the current level.
24 *  it is the main driving factor during gameplay.
25 */
26class Planet : public GameWorld
27{
28
29  public:
30    Planet (const TiXmlElement* root = NULL);
31    virtual ~Planet ();
32
33    void loadParams(const TiXmlElement* root);
34
35
36    /* classes from story-entity */
37    virtual ErrorMessage preLoad();
38    virtual ErrorMessage load ();
39    virtual ErrorMessage postLoad();
40
41    virtual ErrorMessage preStart();
42    virtual ErrorMessage start ();
43    virtual ErrorMessage stop ();
44    virtual ErrorMessage pause ();
45    virtual ErrorMessage resume ();
46    virtual ErrorMessage destroy ();
47
48    virtual void displayLoadScreen();
49    virtual void releaseLoadScreen();
50
51    /* interface to world */
52    virtual void spawn (WorldEntity* entity);
53
54
55  protected:
56    virtual void constuctorInit(const char* name, int worldID);
57
58    /* world - running functions */
59    virtual void mainLoop ();
60
61    virtual void synchronize ();
62    virtual void handleInput ();
63    virtual void tick (std::list<WorldEntity*> worldEntity, float dt);
64    virtual void tick ();
65    virtual void update ();
66    virtual void collide ();
67    virtual void draw ();
68    virtual void display ();
69
70    virtual void debug ();
71
72
73  private:
74    /* external modules interfaces */
75    Shell*     shell;
76    OggPlayer* music;
77
78    GLMenuImageScreen* glmis;           //!< The Level-Loader Display
79
80};
81
82#endif /* _WORLD_H */
Note: See TracBrowser for help on using the repository browser.