Changeset 2141 in orxonox.OLD for orxonox/branches/chris/src/orxonox.cc
- Timestamp:
- Jul 14, 2004, 3:31:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/orxonox.cc
r2115 r2141 32 32 using namespace std; 33 33 34 /** 35 \brief create a new Orxonox 36 */ 34 37 Orxonox::Orxonox () 35 38 { … … 37 40 } 38 41 39 40 42 /** 43 \brief remove Orxonox from memory 44 */ 41 45 Orxonox::~Orxonox () 42 46 { … … 59 63 } 60 64 65 /** 66 \brief this finds the config file 67 68 Since the config file varies from user to user and since one may want to specify different config files 69 for certain occasions or platforms this function finds the right config file for every occasion and stores 70 it's path and name into configfilename 71 */ 61 72 void Orxonox::get_config_file (int argc, char** argv) 62 73 { … … 75 86 } 76 87 88 /** 89 \brief initialize Orxonox with command line 90 */ 77 91 int Orxonox::init (int argc, char** argv) 78 92 { … … 107 121 } 108 122 123 /** 124 \brief initializes SDL and OpenGL 125 */ 109 126 int Orxonox::init_video () 110 127 { … … 148 165 } 149 166 167 /** 168 \brief initializes the sound engine 169 */ 150 170 int Orxonox::init_sound () 151 171 { … … 154 174 } 155 175 176 /** 177 \brief initializes input functions 178 */ 156 179 int Orxonox::init_input () 157 180 { … … 162 185 } 163 186 164 187 /** 188 \brief initializes network system 189 */ 165 190 int Orxonox::init_networking () 166 191 { … … 169 194 } 170 195 196 /** 197 \brief initializes and loads resource files 198 */ 171 199 int Orxonox::init_resources () 172 200 { … … 175 203 } 176 204 205 /** 206 \brief initializes the world 207 */ 177 208 int Orxonox::init_world () 178 209 { … … 185 216 } 186 217 218 /** 219 \brief exits Orxonox 220 */ 187 221 void Orxonox::quitGame() 188 222 { 189 223 bQuitOrxonox = true; 190 224 } 225 226 /** 227 \brief this runs all of Orxonox 228 */ 191 229 void Orxonox::mainLoop() 192 230 { … … 211 249 } 212 250 251 /** 252 \brief handles sprecial events from localinput 253 \param event: an event not handled by the CommandNode 254 */ 213 255 void Orxonox::event_handler (SDL_Event* event) 214 256 { … … 216 258 } 217 259 260 /** 261 \brief synchronize local data with remote data 262 */ 218 263 void Orxonox::synchronize () 219 264 { … … 222 267 } 223 268 269 /** 270 \brief run all input processing 271 */ 224 272 void Orxonox::handle_input () 225 273 { … … 229 277 } 230 278 279 /** 280 \brief advance the timeline 281 */ 231 282 void Orxonox::time_slice () 232 283 { … … 241 292 } 242 293 294 /** 295 \brief compute collision detection 296 */ 243 297 void Orxonox::collision () 244 298 { … … 246 300 } 247 301 302 /** 303 \brief handle keyboard commands that are not meant for WorldEntities 304 \param cmd: the command to handle 305 \return true if the command was handled by the system or false if it may be passed to the WorldEntities 306 */ 248 307 bool Orxonox::system_command (Command* cmd) 249 308 { 250 if( !strcmp( cmd->cmd, "quit") && !cmd->bUp)309 if( !strcmp( cmd->cmd, "quit")) 251 310 { 252 bQuitOrxonox = true;311 if( !cmd->bUp) bQuitOrxonox = true; 253 312 return true; 254 313 } … … 256 315 } 257 316 317 /** 318 \brief render the current frame 319 */ 258 320 void Orxonox::display () 259 321 { … … 269 331 } 270 332 333 /** 334 \brief retrieve a pointer to the local Camera 335 \return a pointer to localcamera 336 */ 271 337 Camera* Orxonox::get_camera () 272 338 { … … 274 340 } 275 341 342 /** 343 \brief retrieve a pointer to the local CommandNode 344 \return a pointer to localinput 345 */ 276 346 CommandNode* Orxonox::get_localinput () 277 347 { … … 279 349 } 280 350 351 /** 352 \brief retrieve a pointer to the local World 353 \return a pointer to world 354 */ 281 355 World* Orxonox::get_world () 282 356 { … … 296 370 297 371 (*orx).mainLoop(); 372 373 delete orx; 298 374 299 375 return 0;
Note: See TracChangeset
for help on using the changeset viewer.