Changeset 6387 in orxonox.OLD for branches/network/src/story_entities/game_world.h
- Timestamp:
- Jan 2, 2006, 11:00:14 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/game_world.h
r6386 r6387 20 20 class Shell; 21 21 class OggPlayer; 22 class GameWorldData; 22 23 23 24 //! The game world … … 38 39 virtual ErrorMessage init(); 39 40 virtual ErrorMessage loadData(); 40 virtual ErrorMessage unloadData() {}41 virtual ErrorMessage unloadData(); 41 42 42 virtual ErrorMessagestart();43 virtual ErrorMessagestop();44 virtual ErrorMessagepause();45 virtual ErrorMessageresume();46 43 virtual bool start(); 44 virtual bool stop(); 45 virtual bool pause(); 46 virtual bool resume(); 47 virtual void run(); 47 48 48 49 /** this returns the current game time @returns elapsed game time */ … … 61 62 62 63 protected: 63 /* world loading functions */64 virtual ErrorMessage loadGUI(TiXmlElement* root) {}65 virtual ErrorMessage loadWorldEntities(TiXmlElement* root) {}66 virtual ErrorMessage loadScene(TiXmlElement* root) {}67 68 64 /* world - running functions */ 69 virtual void mainLoop ();70 71 65 virtual void synchronize(); 72 66 virtual void handleInput(); … … 85 79 86 80 protected: 87 char* path; //!< The file from which this world is loaded 81 GameWorldData* gameWorldData; //!< reference to the GameWorld Data Tank 82 char* path; //!< The file from which this world is loaded 88 83 89 bool showPNodes; //!< if the PNodes should be visible. 90 bool showBV; //!< if the Bounding Volumes should be visible. 91 92 GLMenuImageScreen* glmis; //!< The Level-Loader Display 84 bool showPNodes; //!< if the PNodes should be visible. 85 bool showBV; //!< if the Bounding Volumes should be visible. 93 86 94 87 /* world timing */ 95 Uint32 lastFrame; //!< last time of frame96 Uint32 cycle; //!< The cycle we are in (starts with 0 and rises with every frame)97 Uint32 dt; //!< time needed to calculate this frame (in milliSeconds)98 float dtS;//!< The time needed for caluculations in seconds99 float speed;//!< how fast the game flows100 double gameTime; //!< this is where the game time is saved88 Uint32 lastFrame; //!< last time of frame 89 Uint32 cycle; //!< The cycle we are in (starts with 0 and rises with every frame) 90 Uint32 dt; //!< time needed to calculate this frame (in milliSeconds) 91 float dtS; //!< The time needed for caluculations in seconds 92 float speed; //!< how fast the game flows 93 double gameTime; //!< this is where the game time is saved 101 94 102 95 /* external modules interfaces */ 103 ObjectManager objectManager; //!< The ObjectManager of this GameWorld.96 ObjectManager objectManager; //!< The ObjectManager of this GameWorld. 104 97 105 98 /* external modules interfaces */ 106 Shell* shell;107 OggPlayer* music;99 Shell* shell; 100 OggPlayer* music; 108 101 109 102 /* important entities */ 110 Camera* localCamera; //!< The current Camera 111 Player* localPlayer; //!< The Player, you fly through the level. 112 WorldEntity* sky; //!< The Environmental Heaven of orxonox @todo insert this to environment insted 113 Terrain* terrain; //!< The Terrain of the GameWorld. 103 }; 104 105 106 class GameWorldData : public BaseObject 107 { 108 109 public: 110 GameWorldData(); 111 ~GameWorldData(); 112 /* world loading functions */ 113 virtual ErrorMessage loadData(TiXmlElement* root); 114 115 virtual ErrorMessage loadGUI(TiXmlElement* root); 116 virtual ErrorMessage loadWorldEntities(TiXmlElement* root); 117 virtual ErrorMessage loadScene(TiXmlElement* root); 118 119 public: 120 GLMenuImageScreen* glmis; //!< The Level-Loader Display 121 122 Camera* localCamera; //!< The current Camera 123 Player* localPlayer; //!< The Player, you fly through the level. 124 WorldEntity* sky; //!< The Environmental Heaven of orxonox @todo insert this to environment insted 125 Terrain* terrain; //!< The Terrain of the GameWorld. 114 126 115 127 };
Note: See TracChangeset
for help on using the changeset viewer.