Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6430 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jan 8, 2006, 12:14:49 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Energy System on WorldEntity-level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6426 r6430  
    132132  cycle = 0.0;
    133133
     134  this->setMaxEnergy(100);
     135  this->setEnergy(80);
    134136
    135137  travelSpeed = 15.0;
     
    212214  this->attachCamera();
    213215
     216  this->setEnergyWidgetVisibilit(true);
    214217
    215218}
     
    220223  this->detachCamera();
    221224
     225  this->setEnergyWidgetVisibilit(false);
    222226
    223227}
     
    315319
    316320  //readjust
    317  
     321
    318322  /*
    319323    In the game "Yager" the spaceship gets readjusted when the player moves the mouse.
    320324    I (bknecht) go and check it out how they do it, we could probably use this also in Orxonox.
    321325  */
    322   //if (xMouse != 0 && yMouse != 0) 
    323  
     326  //if (xMouse != 0 && yMouse != 0)
     327
    324328  //if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0)));
    325329  //else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0)));
Note: See TracChangeset for help on using the changeset viewer.