Changeset 6804 in orxonox.OLD for trunk/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Jan 28, 2006, 11:29:03 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r6803 r6804 306 306 void SpaceShip::tick (float time) 307 307 { 308 this->getWeaponManager()->tick(time); 309 // weapon system manipulation 310 this->weaponAction(); 308 Playable::tick(time); 311 309 312 310 if( ( xMouse != 0 || yMouse != 0 ) && this->getOwner() == this->getHostID() ) … … 464 462 465 463 /** 466 * weapon manipulation by the player467 */468 void SpaceShip::weaponAction()469 {470 if( this->bFire)471 {472 this->getWeaponManager()->fire();473 }474 }475 476 /**477 464 * @todo switch statement ?? 478 465 */ 479 466 void SpaceShip::process(const Event &event) 480 467 { 468 Playable::process(event); 469 481 470 if( event.type == KeyMapper::PEV_LEFT) 482 471 this->bRollL = event.bPressed; 483 472 else if( event.type == KeyMapper::PEV_RIGHT) 484 473 this->bRollR = event.bPressed; 485 else if( event.type == KeyMapper::PEV_FIRE1)486 this->bFire = event.bPressed;487 else if( event.type == KeyMapper::PEV_NEXT_WEAPON && event.bPressed)488 {489 this->nextWeaponConfig();//if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange;490 }491 else if ( event.type == KeyMapper::PEV_PREVIOUS_WEAPON && event.bPressed)492 this->previousWeaponConfig();493 474 else if( event.type == KeyMapper::PEV_UP) 494 475 this->bUp = event.bPressed; //this->shiftCoor(0,.1,0);
Note: See TracChangeset
for help on using the changeset viewer.