Changeset 8316 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jun 11, 2006, 1:57:27 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r8147 r8316 79 79 // this->setPlayer(NULL); 80 80 // IN ITS DESTRUCTOR. 81 81 82 82 assert(this->currentPlayer == NULL); 83 83 } … … 118 118 this->increaseHealthMax(ppu->getValue()); 119 119 return true; 120 default: 121 /// EVERYTHING THAT IS NOT HANDLED 122 /// FIXME 123 return false; 120 124 } 121 125 } -
trunk/src/world_entities/player.cc
r8147 r8316 81 81 return true; 82 82 } 83 83 84 84 if ( playable == NULL ) 85 85 this->playable = NULL; … … 90 90 bool Player::eject() 91 91 { 92 this->setPlayable(NULL);92 return this->setPlayable(NULL); 93 93 } 94 94 -
trunk/src/world_entities/projectiles/bomb.cc
r7368 r8316 37 37 this->loadParams(root); 38 38 39 float modelSize = 1.0;40 39 this->loadModel("models/projectiles/RadioActiveBomb.obj", 1.0); 41 40 -
trunk/src/world_entities/projectiles/guided_missile.cc
r7193 r8316 35 35 this->setClassID(CL_GUIDED_MISSILE, "GuidedMissile"); 36 36 37 float modelSize = .3;38 37 this->loadModel("models/projectiles/orx-rocket.obj", .3); 39 38 this->loadExplosionSound("sound/explosions/explosion_4.wav"); -
trunk/src/world_entities/projectiles/hyperblast.cc
r7193 r8316 36 36 this->setClassID(CL_HYPERBLAST, "Hyperblast"); 37 37 38 float modelSize = .3;39 38 this->loadModel("models/projectiles/hyperblast.obj", 5); 40 39 -
trunk/src/world_entities/projectiles/rocket.cc
r7193 r8316 36 36 this->setClassID(CL_ROCKET, "Rocket"); 37 37 38 float modelSize = .3;39 38 this->loadModel("models/projectiles/orx-rocket.obj", .3); 40 39 -
trunk/src/world_entities/projectiles/test_bullet.cc
r7193 r8316 35 35 this->setClassID(CL_TEST_BULLET, "TestBullet"); 36 36 37 float modelSize = .3;38 37 this->loadModel("models/projectiles/orx-rocket.obj", .3); 39 38 -
trunk/src/world_entities/space_ships/hover.cc
r7954 r8316 175 175 this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode); 176 176 this->getWeaponManager().getFixedTarget()->setRelCoor(1000,0,0); 177 177 178 178 // NETWORK THINGS 179 179 180 180 registerVar( new SynchronizeableBool( &bForward, &bForward, "bForward", PERMISSION_OWNER ) ); 181 181 registerVar( new SynchronizeableBool( &bBackward, &bBackward, "bBackward", PERMISSION_OWNER ) ); … … 184 184 registerVar( new SynchronizeableBool( &bAscend, &bAscend, "bAscend", PERMISSION_OWNER ) ); 185 185 registerVar( new SynchronizeableBool( &bDescend, &bDescend, "bDescend", PERMISSION_OWNER ) ); 186 186 187 187 registerVar( new SynchronizeableFloat( &rotation, &rotation, "rotation", PERMISSION_OWNER ) ); 188 188 } … … 262 262 { 263 263 Vector accel(0.0, 0.0, 0.0); 264 float rotSpeed = .3;265 264 266 265 if( this->bForward ) -
trunk/src/world_entities/space_ships/turbine_hover.cc
r7868 r8316 297 297 { 298 298 Vector accel(0.0, 0.0, 0.0); 299 float rotSpeed = .3;300 299 301 300 if( this->bForward ) … … 416 415 } 417 416 break; 417 default: 418 PRINTF(2)("Playmode %s Not Implemented\n", Playable::playmodeToString(this->getPlaymode()).c_str()); 418 419 } 419 420 } -
trunk/src/world_entities/terrain.cc
r8037 r8316 63 63 this->init(); 64 64 65 if (fileName.rfind(".obj" ) != -1 || fileName.rfind(".OBJ") != -1)65 if (fileName.rfind(".obj" ) != std::string::npos || fileName.rfind(".OBJ") != std::string::npos ) 66 66 { 67 67 this->loadModel(fileName); -
trunk/src/world_entities/test_entity.cc
r7713 r8316 122 122 123 123 this->bDeath = true; 124 float anim;125 124 int randi = (int)(5.0f * (float)rand()/(float)RAND_MAX); 126 125 -
trunk/src/world_entities/weapons/weapon.cc
r7779 r8316 86 86 } 87 87 } 88 return NULL; 88 89 } 89 90 … … 421 422 return this->activateW(); 422 423 break; 424 default: 425 PRINTF(2)("Action %s Not Implemented yet \n", Weapon::actionToChar(action)); 426 return false; 423 427 } 424 428 } … … 442 446 this->enterState(WS_ACTIVATING); 443 447 } 448 return true; 444 449 } 445 450 … … 460 465 this->enterState(WS_DEACTIVATING); 461 466 } 467 468 return true; 462 469 } 463 470 … … 483 490 this->requestAction(WA_RELOAD); 484 491 } 492 return true; 485 493 } 486 494 … … 509 517 this->execute(); 510 518 } 519 return true; 511 520 } 512 521 … … 539 548 this->reload(); 540 549 this->enterState(WS_RELOADING); 550 551 return true; 541 552 } 542 553 -
trunk/src/world_entities/world_entity.cc
r8190 r8316 401 401 if( this->collisionHandles[i] != NULL) 402 402 this->collisionHandles[i]->registerCollisionEvent(c); 403 return true; 403 404 } 404 405 … … 424 425 if( this->collisionHandles[i] != NULL) 425 426 this->collisionHandles[i]->registerCollisionEvent(c); 427 return true; 426 428 } 427 429
Note: See TracChangeset
for help on using the changeset viewer.