Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2005, 12:37:18 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/weaponSystem: some definitions of the Weapon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/weaponSystem/src/world_entities/player.cc

    r4877 r4878  
    241241  if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2)
    242242    accel = accel + (orthDirection*acceleration);
    243   if( this->bAscend )
     243  if( this->bAscend ) { /* FIXME */ }
    244244  if( this->bDescend) {/* FIXME */} /* @todo up and down player movement */
    245245
     
    250250
    251251/**
    252  *  weapon manipulation by the player
     252 * weapon manipulation by the player
    253253*/
    254254void Player::weaponAction()
     
    271271{
    272272  if( event.type == KeyMapper::PEV_UP)
    273     {
    274273      this->bUp = event.bPressed;
    275     }
    276274  else if( event.type == KeyMapper::PEV_DOWN)
    277     {
    278275      this->bDown = event.bPressed;
    279     }
    280276  else if( event.type == KeyMapper::PEV_RIGHT)
    281     {
    282277      this->bRight= event.bPressed;
    283     }
    284278  else if( event.type == KeyMapper::PEV_LEFT)
    285     {
    286279      this->bLeft = event.bPressed;
    287     }
    288280  else if( event.type == KeyMapper::PEV_FIRE1)
    289     {
    290        this->bFire = event.bPressed;
    291     }
     281      this->bFire = event.bPressed;
    292282  else if( event.type == KeyMapper::PEV_NEXT_WEAPON)
    293     {
    294283      if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange;
    295     }
    296 
    297 }
     284
     285}
Note: See TracChangeset for help on using the changeset viewer.