Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 1:39:05 PM (16 years ago)
Author:
rgrieder
Message:
  • merged Felix's changes from trunk to network branch
  • added "svn:eol-style native" property to keybindings.ini
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/hud/RadarOverlayElement.h

    r1362 r1406  
    2929#define _RADAR_H__
    3030
    31 #include <string.h>
    32 #include <OgreOverlayManager.h>
    33 #include <OgreStringConverter.h>
    34 #include <OgreOverlayElement.h>
    35 #include <OgrePanelOverlayElement.h>
     31#include <util/Math.h>
    3632#include <OgrePrerequisites.h>
    37 
    38 #include <util/Math.h>
    39 #include <string.h>
    40 #include "core/Tickable.h"
    41 #include "core/ConsoleCommand.h"
    42 #include "objects/SpaceShip.h"
    4333#include "../OrxonoxPrereqs.h"
    4434#include "RadarObject.h"
    45 #include "GraphicsEngine.h"
    4635
    4736namespace orxonox
     
    5241            Ogre::OverlayManager* om;               // our one and only overlay manager
    5342            Ogre::OverlayContainer* container_;     // pointer to the container we're in
    54             Vector3 initialDir_;                        // direction of nose
    5543            Vector3 currentDir_;
    56             Vector3 initialOrth_;                   // direction of normal
    5744            Vector3 currentOrth_;
    5845            Vector3 shipPos_;                       // position of ship
    59             Ogre::Plane plane;                      // plane perpendicular to dir
    6046
    6147            Ogre::Real leftRel_, topRel_, dimRel_;  // relative position/dimension
     
    6955                        void resize();
    7056            void update();
    71             void updateNavMarker();
    72             void addObject(Vector3 pos);
    7357            void listObjects();
    74             float getDist2Focus();
    75             float calcRadius(RadarObject* obj);
    76             float calcPhi(RadarObject* obj);
    77             bool calcRight(RadarObject* obj);
    7858
    79             Ogre::PanelOverlayElement* navMarker_;  // marker to help navigating
    80                         RadarObject* firstRadarObject_;         // start of linked list
    81                         RadarObject* lastRadarObject_;          // end of linked list
    82                         RadarObject* focus_;                    // object that is focussed
    83 
    84             static RadarOverlayElement* instance_s;
    85             static void cycleFocus();
     59            static float calcRadius(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
     60            static float calcPhi(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
     61            static bool calcRight(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
    8662        };
    8763}
Note: See TracChangeset for help on using the changeset viewer.