Changeset 3449 in orxonox.OLD for orxonox/trunk/src/world.cc
- Timestamp:
- Mar 2, 2005, 2:23:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.cc
r3444 r3449 46 46 } 47 47 48 /** 49 \brief creates a new World... 50 \param worldID with this ID 51 */ 48 52 World::World (int worldID) 49 53 { … … 96 100 {60.0, -10.0, 5.0}, {80.0, 10.0, 5.0}}; 97 101 98 102 /** 103 \brief initializes a new World 104 */ 99 105 ErrorMessage World::init() 100 106 { … … 114 120 115 121 116 122 /** 123 \brief starts the World 124 */ 117 125 ErrorMessage World::start() 118 126 { … … 123 131 } 124 132 133 /** 134 \brief stops the world. 135 136 This happens, when the player decides to end the Level. 137 */ 125 138 ErrorMessage World::stop() 126 139 { … … 129 142 } 130 143 144 /** 145 \brief pauses the Game 146 */ 131 147 ErrorMessage World::pause() 132 148 { … … 134 150 } 135 151 136 152 /** 153 \brief ends the pause Phase 154 */ 137 155 ErrorMessage World::resume() 138 156 { … … 140 158 } 141 159 142 160 /** 161 \brief destroys the World 162 */ 143 163 void World::destroy() 144 164 { … … 146 166 } 147 167 148 168 /** 169 \brief shows the loading screen 170 */ 149 171 void World::displayLoadScreen () 150 172 { … … 160 182 } 161 183 162 184 /** 185 \brief removes the loadscreen, and changes over to the game 186 187 \todo take out the delay 188 */ 163 189 void World::releaseLoadScreen () 164 190 { … … 169 195 } 170 196 171 197 /** 198 \brief loads the World by initializing all resources, and set their default values. 199 */ 172 200 void World::load() 173 201 { … … 334 362 this->nullParent->setName ("NullParent"); 335 363 336 // create some path nodes337 this->pathnodes = new Vector[6];338 this->pathnodes[0] = Vector(0, 0, 0);339 this->pathnodes[1] = Vector(20, 10, 10);340 this->pathnodes[2] = Vector(40, 0, 10);341 this->pathnodes[3] = Vector(60, 10, 0);342 this->pathnodes[4] = Vector(80, 20, 10);343 this->pathnodes[5] = Vector(30, 50, 0);344 345 346 364 347 365 … … 795 813 796 814 797 /* 815 /** 798 816 \brief main loop of the world: executing all world relevant function 799 817 … … 950 968 \brief add and spawn a new entity to this world 951 969 \param entity to be added 952 \param location where to add 970 \param absCoor At what coordinates to add this entity. 971 \param absDir In which direction should it look. 953 972 */ 954 973 void World::spawn(WorldEntity* entity, Vector* absCoor, Quaternion* absDir) … … 967 986 968 987 969 /* 988 /** 970 989 \brief commands that the world must catch 971 990 \returns false if not used by the world … … 978 997 979 998 980 999 /** 1000 \brief swaps two values 1001 \todo make this a global function, and take it out of world 1002 */ 981 1003 void World::swap (unsigned char &a, unsigned char &b) 982 1004 {
Note: See TracChangeset
for help on using the changeset viewer.