Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1384


Ignore:
Timestamp:
May 22, 2008, 4:55:24 PM (17 years ago)
Author:
scheusso
Message:

changed radar handling (SpaceShip::instance is now SpaceShip::getLocalShip)

Location:
code/branches/network/src/orxonox/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/hud/HUD.cc

    r1362 r1384  
    104104        energyBar->resize();
    105105
    106         float v = SpaceShip::instance_s->getVelocity().length();
    107         float vmax = SpaceShip::instance_s->getMaxSpeed();
     106        float v = SpaceShip::getLocalShip()->getVelocity().length();
     107        float vmax = SpaceShip::getLocalShip()->getMaxSpeed();
    108108        speedoBar->setValue(v/vmax);
    109109        speedoBar->resize();
  • code/branches/network/src/orxonox/hud/RadarOverlayElement.cc

    r1373 r1384  
    9191
    9292    void RadarOverlayElement::update() {
    93         shipPos_ = SpaceShip::instance_s->getPosition();
    94         currentDir_ = SpaceShip::instance_s->getOrientation()*initialDir_;              // according to beni....
    95                 currentOrth_ = SpaceShip::instance_s->getOrientation()*initialOrth_;
     93        shipPos_ = SpaceShip::getLocalShip()->getPosition();
     94        currentDir_ = SpaceShip::getLocalShip()->getOrientation()*initialDir_;          // according to beni....
     95                currentOrth_ = SpaceShip::getLocalShip()->getOrientation()*initialOrth_;
    9696        plane = Plane(currentDir_, shipPos_);
    9797
Note: See TracChangeset for help on using the changeset viewer.