Changeset 4878 in orxonox.OLD for orxonox/branches/weaponSystem/src/world_entities/player.cc
- Timestamp:
- Jul 17, 2005, 12:37:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/weaponSystem/src/world_entities/player.cc
r4877 r4878 241 241 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2) 242 242 accel = accel + (orthDirection*acceleration); 243 if( this->bAscend ) 243 if( this->bAscend ) { /* FIXME */ } 244 244 if( this->bDescend) {/* FIXME */} /* @todo up and down player movement */ 245 245 … … 250 250 251 251 /** 252 * 252 * weapon manipulation by the player 253 253 */ 254 254 void Player::weaponAction() … … 271 271 { 272 272 if( event.type == KeyMapper::PEV_UP) 273 {274 273 this->bUp = event.bPressed; 275 }276 274 else if( event.type == KeyMapper::PEV_DOWN) 277 {278 275 this->bDown = event.bPressed; 279 }280 276 else if( event.type == KeyMapper::PEV_RIGHT) 281 {282 277 this->bRight= event.bPressed; 283 }284 278 else if( event.type == KeyMapper::PEV_LEFT) 285 {286 279 this->bLeft = event.bPressed; 287 }288 280 else if( event.type == KeyMapper::PEV_FIRE1) 289 { 290 this->bFire = event.bPressed; 291 } 281 this->bFire = event.bPressed; 292 282 else if( event.type == KeyMapper::PEV_NEXT_WEAPON) 293 {294 283 if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange; 295 } 296 297 } 284 285 }
Note: See TracChangeset
for help on using the changeset viewer.