Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 7, 2006, 5:27:54 PM (19 years ago)
Author:
bensch
Message:

absDir

Location:
trunk/src/world_entities/space_ships
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/helicopter.h

    r6947 r7092  
    2222
    2323    virtual void loadParams(const TiXmlElement* root);
     24    virtual void setAbsDirPlay(const Quaternion& rot){/* FIXME */};
    2425
    2526    virtual void enter();
  • trunk/src/world_entities/space_ships/hover.h

    r7072 r7092  
    1919
    2020    virtual void loadParams(const TiXmlElement* root);
     21    virtual void setAbsDirPlay(const Quaternion& rot) {/* FIXME */};
    2122
    2223    virtual void enter();
  • trunk/src/world_entities/space_ships/space_ship.cc

    r7087 r7092  
    248248{
    249249  Playable::loadParams(root);
    250 
    251   LoadParam(root, "abs-dir", this, SpaceShip, setRelDir);
    252 }
    253 
    254 void SpaceShip::setRelDir(float angle, float axisX, float axisY, float axisZ)
    255 {
    256   this->mouseDir = Quaternion(angle, Vector(axisX, axisY, axisZ));
     250}
     251
     252void SpaceShip::setAbsDirPlay(const Quaternion& quat)
     253{
     254  this->mouseDir = Quaternion(quat);
    257255}
    258256
  • trunk/src/world_entities/space_ships/space_ship.h

    r7085 r7092  
    2727    virtual void loadParams(const TiXmlElement* root);
    2828
    29     void setRelDir(float angle, float axisX, float axisY, float axisZ);
     29    virtual void setAbsDirPlay(const Quaternion& rot);
    3030
    3131    virtual void enter();
  • trunk/src/world_entities/space_ships/turbine_hover.h

    r7001 r7092  
    2323
    2424    virtual void loadParams(const TiXmlElement* root);
    25 
     25    virtual void setAbsDirPlay(const Quaternion& rot) {/* FIXME */};
    2626    virtual void enter();
    2727    virtual void leave();
Note: See TracChangeset for help on using the changeset viewer.