Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 7, 2006, 4:51:47 PM (18 years ago)
Author:
patrick
Message:

trunk: entity is reset now after death

File:
1 edited

Legend:

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

    r7056 r7085  
    257257}
    258258
     259
     260void SpaceShip::reset()
     261{
     262  bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
     263
     264  xMouse = yMouse = 0;
     265
     266  this->setHealth(80);
     267  this->velocity = Vector(0.0, 0.0, 0.0);
     268}
    259269
    260270
Note: See TracChangeset for help on using the changeset viewer.