Changeset 6345 in orxonox.OLD for trunk/src/story_entities/network_world.h
- Timestamp:
- Dec 30, 2005, 2:26:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/network_world.h
r6142 r6345 7 7 #define _WORLD_H 8 8 9 #include "stdincl.h" 10 #include "comincl.h" 9 #include "sdlincl.h" 11 10 #include "story_entity.h" 12 #include "p_node.h"13 11 #include "object_manager.h" 14 12 … … 33 31 34 32 public: 35 NetworkWorld (const char* name);36 NetworkWorld (int worldID);37 33 NetworkWorld (const TiXmlElement* root = NULL); 38 34 virtual ~NetworkWorld (); … … 45 41 virtual ErrorMessage preLoad(); 46 42 virtual ErrorMessage load (); 47 virtual ErrorMessage init (); 43 virtual ErrorMessage postLoad(); 44 45 virtual ErrorMessage preStart(); 48 46 virtual ErrorMessage start (); 49 47 virtual ErrorMessage stop (); … … 52 50 virtual ErrorMessage destroy (); 53 51 54 void loadDebugNetworkWorld(int worldID); 55 56 virtual void displayLoadScreen(); 57 virtual void releaseLoadScreen(); 58 59 /* command node functions */ 60 bool command (Command* cmd); 52 void displayLoadScreen(); 53 void releaseLoadScreen(); 61 54 62 55 /* interface to world */ 63 void spawn (WorldEntity* entity); 64 void spawn (WorldEntity* entity, Vector* absCoor, Quaternion* absDir); 65 void spawn(WorldEntity* entity, PNode* parentNode, Vector* relCoor, Quaternion* relDir); 56 // void spawn (WorldEntity* entity); 66 57 67 58 /** @param speed sets the speed of the Game */ … … 69 60 const char* getPath(); 70 61 void setPath( const char* name); 71 72 inline Camera* getLocalCamera() { return this->localCamera; };73 62 74 63 void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; }; … … 78 67 void constuctorInit(const char* name, int worldID); 79 68 /* function for main-loop */ 80 void mainLoop ();81 69 void synchronize (); 82 70 void handleInput (); … … 86 74 void collide (); 87 75 void draw (); 76 void mainLoop (); 77 88 78 void display (); 89 79 void debug (); 90 80 91 81 private: 92 bool showPNodes; //!< if the PNodes should be visible. 93 bool showBV; //!< if the Bounding Volumes should be visible. 82 char* path; //!< The file from which this world is loaded 83 84 // FLAGS // 85 bool bQuitWorld; //!< quit only the current game and return to menu 86 bool bPause; //!< pause mode 87 88 bool showPNodes; //!< if the PNodes should be visible. 89 bool showBV; //!< if the Bounding Volumes should be visible. 90 91 // TIMING // 94 92 Uint32 lastFrame; //!< last time of frame 95 93 Uint32 cycle; //!< The cycle we are in (starts with 0 and rises with every frame) … … 98 96 float speed; //!< how fast the game flows 99 97 double gameTime; //!< this is where the game time is saved 100 bool bQuitOrxonox; //!< quit this application101 bool bQuitCurrentGame; //!< quit only the current game and return to menu102 bool bPause; //!< pause mode103 98 104 ObjectManager objectManager; //!< The ObjectManager of this World. 99 // INTERNAL ENGINES 100 ObjectManager objectManager; //!< The ObjectManager of this World. 101 Shell* shell; 102 OggPlayer* music; 105 103 106 104 GLMenuImageScreen* glmis; //!< The Level-Loader Display 107 105 108 int debugNetworkWorldNr; //!< The Debug Nr. needed, if something goes wrong109 char* path; //!< The file from which this world is loaded110 106 111 Shell* shell; 112 OggPlayer* music; 107 // IMPORTANT ENTITIES 108 Camera* localCamera; //!< The current Camera 109 Player* localPlayer; //!< The Player, you fly through the level. 113 110 114 // IMPORTANT WORLD-ENTITIES115 Camera* localCamera; //!< The current Camera116 111 WorldEntity* sky; //!< The Environmental Heaven of orxonox @todo insert this to environment insted 117 112 Terrain* terrain; //!< The Terrain of the NetworkWorld. 118 119 GLuint objectList; //!< temporary: @todo this will be ereased soon120 121 Player* localPlayer; //!< The Player, you fly through the level.122 113 }; 123 114
Note: See TracChangeset
for help on using the changeset viewer.