Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/story_entities/world.h

    r3605 r3746  
    88
    99#include "stdincl.h"
    10 
     10#include "comincl.h"
    1111#include "story_entity.h"
    1212#include "p_node.h"
    1313
     14
     15class World;
     16class WorldEntity;
    1417class TrackManager;
    15 class WorldEntity;
    1618class Camera;
    1719class PNode;
     
    2123class FontSet;
    2224class Terrain;
     25class GarbageCollector;
     26class SimpleAnimation;
    2327
     28//! The game world Interface
     29/**
     30   this is a singleton interface, that enables world_entities to access the
     31   world. for those objects, there is no easier way than over this interface!
     32*/
     33class WorldInterface : BaseObject {
     34
     35 public:
     36  ~WorldInterface();
     37  static WorldInterface* getInstance();
     38  void init(World* world);
     39  tList<WorldEntity>* getEntityList();
     40
     41 private:
     42  WorldInterface();
     43  static WorldInterface* singletonRef;    //!< singleton reference to this object
     44  bool worldIsInitialized;                //!< true if the world has been initialized
     45  World* worldReference;                  //!< this is a reference to the running world
     46
     47};
    2448
    2549//! The game world
     
    3963  virtual ~World ();
    4064
     65  double getGameTime();
    4166
    4267  /* classes from story-entity */
     68  virtual ErrorMessage preLoad();
    4369  virtual ErrorMessage load ();
    4470  virtual ErrorMessage init ();
     
    5581  bool command (Command* cmd);
    5682
     83  tList<WorldEntity>* getEntities();
     84
    5785  /* interface to world */
    5886  void spawn (WorldEntity* entity);
     
    6896  void init(char* name, int worldID);
    6997
    70   Uint32 lastFrame;             //!< last time of frame
    71   bool bQuitOrxonox;            //!< quit this application
    72   bool bQuitCurrentGame;        //!< quit only the current game and return to menu
    73   bool bPause;                  //!< pause mode
     98  Uint32 lastFrame;                   //!< last time of frame
     99  Uint32 dt;                          //!< time needed to calculate this frame
     100  double gameTime;                    //!< this is where the game time is saved
     101  bool bQuitOrxonox;                  //!< quit this application
     102  bool bQuitCurrentGame;              //!< quit only the current game and return to menu
     103  bool bPause;                        //!< pause mode
    74104
    75   FontSet* testFont;            //!< A test Font. \todo fix this, so it is for real.
    76   GLMenuImageScreen* glmis;     //!< The Level-Loader Display
     105  FontSet* testFont;                  //!< A test Font. \todo fix this, so it is for real.
     106  GLMenuImageScreen* glmis;           //!< The Level-Loader Display
    77107
    78108  char* worldName;              //!< The name of this World
     
    80110  int debugWorldNr;             //!< The Debug Nr. needed, if something goes wrong
    81111
    82   PNode* nullParent;            //!< The zero-point, that everything has as its parent.
    83   TrackManager* trackManager;   //!< The reference of the TrackManager that handles the course through the Level.
    84   Camera* localCamera;          //!< The current Camera
    85   Skysphere* skySphere;         //!< The Environmental Heaven of orxonox \todo insert this to environment insted
    86   LightManager* lightMan;       //!< The Lights of the Level
    87   Terrain* terrain;             //!< The Terrain of the World.
     112  PNode* nullParent;                  //!< The zero-point, that everything has as its parent.
     113  TrackManager* trackManager;         //!< The reference of the TrackManager that handles the course through the Level.
     114  Camera* localCamera;                //!< The current Camera
     115  Skysphere* skySphere;               //!< The Environmental Heaven of orxonox \todo insert this to environment insted
     116  LightManager* lightMan;             //!< The Lights of the Level
     117  Terrain* terrain;                   //!< The Terrain of the World.
    88118
    89   GLuint objectList;            //!< temporary: \todo this will be ereased soon
    90   tList<WorldEntity>* entities;//!< A template List of all entities. Every moving thing should be included here, and world automatically updates them.
    91   WorldEntity* localPlayer;     //!< The Player, you fly through the level.
     119  GLuint objectList;                  //!< temporary: \todo this will be ereased soon
     120  tList<WorldEntity>* entities;       //!< A template List of all entities. Every moving thing should be included here, and world automatically updates them.
     121  WorldEntity* localPlayer;           //!< The Player, you fly through the level.
     122
     123  GarbageCollector* garbageCollector; //!< reference to the garbage  collector
     124
     125  SimpleAnimation* simpleAnimation;   //!< reference to the SimpleAnimation object
    92126 
    93127  /* function for main-loop */
Note: See TracChangeset for help on using the changeset viewer.