Changeset 6804 in orxonox.OLD for trunk/src/world_entities/space_ships/hover.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/hover.cc
r6803 r6804 252 252 * @param time The timespan passed since last update 253 253 */ 254 void Hover::tick (float time) 255 { 254 void Hover::tick (float dt) 255 { 256 Playable::tick(dt); 257 256 258 if( xMouse != 0 || yMouse != 0) 257 259 { … … 263 265 264 266 // spaceship controlled movement 265 this->calculateVelocity( time);266 267 Vector move = (velocity)* time;267 this->calculateVelocity(dt); 268 269 Vector move = (velocity)*dt; 268 270 269 271 // this is the air friction (necessary for a smooth control) … … 271 273 this->shiftCoor (move); 272 274 273 this->getWeaponManager()->tick(time);274 // weapon system manipulation275 this->weaponAction();276 275 } 277 276 … … 400 399 { 401 400 Vector tmpRot; 402 403 401 WorldEntity::draw(); 404 402 … … 463 461 void Hover::process(const Event &event) 464 462 { 465 463 Playable::process(event); 466 464 467 465 if( event.type == KeyMapper::PEV_LEFT) … … 469 467 else if( event.type == KeyMapper::PEV_RIGHT) 470 468 this->bRight = event.bPressed; 471 else if( event.type == KeyMapper::PEV_FIRE1)472 this->bFire = event.bPressed;473 else if( event.type == KeyMapper::PEV_NEXT_WEAPON && event.bPressed)474 this->getWeaponManager()->nextWeaponConfig();//if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange;475 else if ( event.type == KeyMapper::PEV_PREVIOUS_WEAPON && event.bPressed)476 this->getWeaponManager()->previousWeaponConfig();477 469 else if( event.type == SDLK_e) 478 470 this->bAscend = event.bPressed; //this->shiftCoor(0,.1,0);
Note: See TracChangeset
for help on using the changeset viewer.