Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

trunk: entity is reset now after death

Location:
trunk/src/world_entities/space_ships
Files:
2 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
  • trunk/src/world_entities/space_ships/space_ship.h

    r7056 r7085  
    3232    virtual void leave();
    3333
     34    virtual void reset();
     35
    3436    virtual void postSpawn();
    3537    virtual void leftWorld();
     
    4345    virtual int       writeBytes(const byte* data, int length, int sender);
    4446    virtual int       readBytes(byte* data, int maxLength, int * reciever);
     47
    4548
    4649  private:
Note: See TracChangeset for help on using the changeset viewer.