Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/story_entities/world.h @ 6352

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

network: from now on this branche won't compile anymore, since I'm working on some very serious changes in the world/storyentity framework

File size: 1.7 KB
RevLine 
[4558]1/*!
[5039]2 * @file world.h
[6352]3 *  Holds and manages all game data
4 */
[1853]5
[3224]6#ifndef _WORLD_H
7#define _WORLD_H
[1853]8
[6352]9#include "game_world.h"
[2190]10
[3620]11class WorldEntity;
[3634]12class Camera;
[4396]13class Player;
[3634]14class GLMenuImageScreen;
15class Terrain;
[4261]16class TiXmlElement;
[3790]17
[5206]18class Shell;
[4961]19class OggPlayer;
[3620]20
[3449]21//! The game world
22/**
[6352]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{
[1853]28
[6352]29  public:
30    Planet (const TiXmlElement* root = NULL);
31    virtual ~Planet ();
[3459]32
[6352]33    void loadParams(const TiXmlElement* root);
[4261]34
[3459]35
[6352]36    /* classes from story-entity */
37    virtual ErrorMessage preLoad();
38    virtual ErrorMessage load ();
39    virtual ErrorMessage postLoad();
[6152]40
[6352]41    virtual ErrorMessage preStart();
42    virtual ErrorMessage start ();
43    virtual ErrorMessage stop ();
44    virtual ErrorMessage pause ();
45    virtual ErrorMessage resume ();
46    virtual ErrorMessage destroy ();
[1917]47
[6352]48    virtual void displayLoadScreen();
49    virtual void releaseLoadScreen();
[4558]50
[6352]51    /* interface to world */
52    virtual void spawn (WorldEntity* entity);
[2644]53
[3461]54
[6352]55  protected:
56    virtual void constuctorInit(const char* name, int worldID);
[5389]57
[6352]58    /* world - running functions */
59    virtual void mainLoop ();
[6150]60
[6352]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 ();
[3365]69
[6352]70    virtual void debug ();
[6150]71
72
[6352]73  private:
74    /* external modules interfaces */
[6151]75    Shell*     shell;
76    OggPlayer* music;
[6142]77
[5389]78    GLMenuImageScreen* glmis;           //!< The Level-Loader Display
79
[2190]80};
[1883]81
[3224]82#endif /* _WORLD_H */
Note: See TracBrowser for help on using the repository browser.