Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 3:38:39 PM (16 years ago)
Author:
rgrieder
Message:
  • converted tabs to spaces in HUD
  • adjusted msvc project
File:
1 edited

Legend:

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

    r1408 r1410  
    2626*/
    2727
    28 #ifndef _RADAR_H__
    29 #define _RADAR_H__
     28#ifndef _RadarOverlayElement_H__
     29#define _RadarOverlayElement_H__
    3030
    31 #include <util/Math.h>
     31#include "OrxonoxPrereqs.h"
     32
    3233#include <OgrePrerequisites.h>
    3334#include <OgrePanelOverlayElement.h>
    34 #include "../OrxonoxPrereqs.h"
    35 #include "RadarObject.h"
     35#include "util/Math.h"
    3636
    3737namespace orxonox
     
    3939    class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement
    4040    {
    41         private:
    42             Ogre::OverlayManager* om;               // our one and only overlay manager
    43             Ogre::OverlayContainer* container_;     // pointer to the container we're in
    44             Vector3 currentDir_;
    45             Vector3 currentOrth_;
    46             Vector3 shipPos_;                       // position of ship
     41      private:
     42        Ogre::OverlayManager* om;               // our one and only overlay manager
     43        Ogre::OverlayContainer* container_;     // pointer to the container we're in
     44        Vector3 currentDir_;
     45        Vector3 currentOrth_;
     46        Vector3 shipPos_;                       // position of ship
    4747
    48             Ogre::Real leftRel_, topRel_, dimRel_;  // relative position/dimension
    49             int left_, top_, dim_;                  // absolute position/dimension
    50             int windowW_, windowH_;                     // absolute window dimensions
     48        Ogre::Real leftRel_, topRel_, dimRel_;  // relative position/dimension
     49        int left_, top_, dim_;                  // absolute position/dimension
     50        int windowW_, windowH_;                   // absolute window dimensions
    5151
    52         public:
    53             RadarOverlayElement(const Ogre::String& name);
    54             ~RadarOverlayElement();
    55             void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container);
    56                         void resize();
    57             void update();
    58             void listObjects();
     52      public:
     53        RadarOverlayElement(const Ogre::String& name);
     54        ~RadarOverlayElement();
     55        void init(Real leftRel, Real topRel, Real dimRel, Ogre::OverlayContainer* container);
     56        void resize();
     57        void update();
     58        void listObjects();
    5959
    60             static float calcRadius(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
    61             static float calcPhi(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
    62             static bool calcRight(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
    63         };
     60        static float calcRadius(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
     61        static float calcPhi(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
     62        static bool calcRight(Vector3 pos, Vector3 dir, Vector3 orth, RadarObject* obj);
     63  };
    6464}
    6565
    66 #endif
     66#endif /* _RadarOverlayElement_H__ */
Note: See TracChangeset for help on using the changeset viewer.