Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

network: added some world types

File size: 1.8 KB
RevLine 
[4558]1/*!
[6355]2 * @file single_player_world.h
3 *  Holds and manages all single player game data
[6352]4 */
[1853]5
[6355]6#ifndef _SINGLE_PLAYER_WORLD_H
7#define _SINGLE_PLAYER_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 */
[6355]26class SinglePlayerWorld : public GameWorld
[6352]27{
[1853]28
[6352]29  public:
[6355]30    SinglePlayerWorld (const TiXmlElement* root = NULL);
31    virtual ~SinglePlayerWorld ();
[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
[6355]82#endif /* _SINGLE_PLAYER_WORLD_H */
Note: See TracBrowser for help on using the repository browser.