Changeset 6150 in orxonox.OLD for trunk/src/story_entities/world.h
- Timestamp:
- Dec 17, 2005, 5:56:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/world.h
r6142 r6150 32 32 33 33 public: 34 World (const char* name);35 World (int worldID);36 34 World (const TiXmlElement* root = NULL); 37 35 virtual ~World (); … … 51 49 virtual ErrorMessage destroy (); 52 50 53 void loadDebugWorld(int worldID);54 55 51 virtual void displayLoadScreen(); 56 52 virtual void releaseLoadScreen(); … … 61 57 /* interface to world */ 62 58 void spawn (WorldEntity* entity); 63 void spawn (WorldEntity* entity, Vector* absCoor, Quaternion* absDir);64 void spawn(WorldEntity* entity, PNode* parentNode, Vector* relCoor, Quaternion* relDir);65 59 66 60 /** @param speed sets the speed of the Game */ … … 68 62 const char* getPath(); 69 63 void setPath( const char* name); 70 71 inline Camera* getLocalCamera() { return this->localCamera; };72 64 73 65 void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; }; … … 77 69 void constuctorInit(const char* name, int worldID); 78 70 /* function for main-loop */ 79 void mainLoop ();80 71 void synchronize (); 81 72 void handleInput (); … … 85 76 void collide (); 86 77 void draw (); 78 void mainLoop (); 79 87 80 void display (); 88 81 void debug (); 89 82 90 83 private: 84 char* path; //!< The file from which this world is loaded 85 91 86 bool showPNodes; //!< if the PNodes should be visible. 92 87 bool showBV; //!< if the Bounding Volumes should be visible. 88 93 89 Uint32 lastFrame; //!< last time of frame 94 90 Uint32 cycle; //!< The cycle we are in (starts with 0 and rises with every frame) … … 105 101 GLMenuImageScreen* glmis; //!< The Level-Loader Display 106 102 107 int debugWorldNr; //!< The Debug Nr. needed, if something goes wrong108 char* path; //!< The file from which this world is loaded109 110 103 Shell* shell; 111 104 OggPlayer* music; … … 116 109 Terrain* terrain; //!< The Terrain of the World. 117 110 118 GLuint objectList; //!< temporary: @todo this will be ereased soon119 120 111 Player* localPlayer; //!< The Player, you fly through the level. 121 112 };
Note: See TracChangeset
for help on using the changeset viewer.