Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2008, 5:46:52 AM (16 years ago)
Author:
landauf
Message:
  • several small changes in most of the HUD classes (code cleanup): removed obsolete variables, privatized all member variables, removed resizing functioncalls from tick, destroying overlayelements, added some const qualifiers.
  • moved calculation functions for RadarObject-position to Math.h and changed the phi/right/radius format to Vector2. the functions are used too by SpaceShipAI.
  • cycleNavigationFocus takes the nearest object if focus was NULL
  • BarOverlayElement works in both directions (left to right and right to left)
  • fixed bug causing SpaceShipAI to not stop shooting when losing target - this also speeds up orxonox a lot, because there are less projectiles

####################################

!! UPDATE YOUR MEDIA REPOSITORY !!

####################################
…or the BarOverlayElement will look strange

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/SpaceShip.cc

    r1563 r1564  
    152152
    153153            if (!this->myShip_)
    154                 HUD::getSingleton().removeRadarObject(this->getNode());
     154                HUD::getSingleton().removeRadarObject(this);
    155155        }
    156156    }
     
    161161          myShip_=true;
    162162        else
    163           HUD::getSingleton().addRadarObject(this->getNode(), this->getProjectileColour());
     163          HUD::getSingleton().addRadarObject(this, this->getProjectileColour());
    164164      }
    165165      if(Model::create())
     
    508508          this->mouseXRotation_ = Radian(0);
    509509          this->mouseYRotation_ = Radian(0);
    510           this->bLMousePressed_ = false;
    511510        }/*else
    512511          COUT(4) << "not steering ship: " << objectID << " our ship: " << network::Client::getSingleton()->getShipID() << std::endl;*/
     512
     513          this->bLMousePressed_ = false;
    513514    }
    514515
Note: See TracChangeset for help on using the changeset viewer.