Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10751 in orxonox.OLD for branches/presentation/src


Ignore:
Timestamp:
Jun 20, 2007, 11:01:39 PM (17 years ago)
Author:
snellen
Message:

viewmode correct set in spaceship

Location:
branches/presentation/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/playable.cc

    r10748 r10751  
    372372      break;
    373373    case Playable::Vertical:
    374       this->setCameraMode(Camera::ViewLeft);
     374      this->setCameraMode(Camera::ViewNormal);
    375375      break;
    376376    case Playable::FromBehind:
  • branches/presentation/src/world_entities/projectiles/plasma_pulse.cc

    r10747 r10751  
    4343  this->setHealthMax(0);
    4444  this->lifeSpan = 2.0;
    45 
    4645  this->grid = new Billboard();
    4746  this->grid->setSize(.2, .2);
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r10750 r10751  
    234234
    235235  bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false;
     236  caminit = true;
    236237
    237238  this->travelNode = new PNode();
     
    427428void SpaceShip::tick (float time)
    428429{
     430  if(caminit)
     431  {
     432  State::getCamera()->setViewMode(Camera::ViewNormal);
     433  State::getCameraTargetNode()->setParent(this);
     434  State::getCamera()->setParent(this);
     435  caminit = false;
     436  }
     437 
    429438  if ( deadBox != NULL )
    430439  {
     
    569578    if( event.type == KeyMapper::PEV_VIEW0)
    570579    {
    571       State::getCamera()->setViewMode(Camera::ViewNormal);
    572       State::getCameraTargetNode()->setParent(this);
    573       State::getCamera()->setParent(this);
     580
    574581    }
    575582    else if( event.type == KeyMapper::PEV_VIEW1)
  • branches/presentation/src/world_entities/space_ships/space_ship.h

    r10749 r10751  
    224224    void onButtonExit();
    225225    void showDeadScreen();
     226    bool caminit;
    226227
    227228};
Note: See TracChangeset for help on using the changeset viewer.