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/Navigation.h

    r1406 r1410  
    2626*/
    2727
    28 #ifndef _NAVIGATION_H__
    29 #define _NAVIGATION_H__
     28#ifndef _Navigation_H__
     29#define _Navigation_H__
     30
     31#include "OrxonoxPrereqs.h"
    3032
    3133#include <OgrePrerequisites.h>
    32 #include "../OrxonoxPrereqs.h"
    33 #include <OgrePlane.h>
     34#include <OgreTextAreaOverlayElement.h>
     35#include <OgrePanelOverlayElement.h>
    3436#include "util/Math.h"
    35 #include "RadarObject.h"
    3637
    3738namespace orxonox
    3839{
     40
    3941    class _OrxonoxExport Navigation
    4042    {
    41         private:
    42                 Ogre::OverlayManager* om;                                   // our one and only overlay manager
    43             Ogre::OverlayContainer* container_;
    44             Ogre::PanelOverlayElement* navMarker_;      // the panel used to show the arrow
    45             Ogre::TextAreaOverlayElement* navText_;     // displaying distance
    46             Ogre::Camera* navCam_;
    47                 Vector3 navCamPos_;                            // position of ship
    48                 Vector3 currentDir_;
    49             Vector3 currentOrth_;
    50                 int windowW_, windowH_;
    51                 void init();
    52                 void updateMarker();
     43      private:
     44        Ogre::OverlayManager* om;                                           // our one and only overlay manager
     45        Ogre::OverlayContainer* container_;
     46        Ogre::PanelOverlayElement* navMarker_;      // the panel used to show the arrow
     47        Ogre::TextAreaOverlayElement* navText_;     // displaying distance
     48        Ogre::Camera* navCam_;
     49        Vector3 navCamPos_;                         // position of ship
     50        Vector3 currentDir_;
     51        Vector3 currentOrth_;
     52        int windowW_, windowH_;
     53        void init();
     54        void updateMarker();
    5355
    54         public:
    55                 Navigation(Ogre::OverlayContainer* container);
    56                 Navigation(Ogre::OverlayContainer* container, RadarObject* focus);
    57                 ~Navigation();
    58                         RadarObject* focus_;                        // next pointer of linked list
     56      public:
     57        Navigation(Ogre::OverlayContainer* container);
     58        Navigation(Ogre::OverlayContainer* container, RadarObject* focus);
     59        ~Navigation();
     60        RadarObject* focus_;                        // next pointer of linked list
    5961
    60                 void update();
    61                 void cycleFocus();
    62                 float getDist2Focus();
    63         };
     62        void update();
     63        void cycleFocus();
     64        float getDist2Focus();
     65  };
    6466}
    6567
    66 #endif
     68#endif /* _Navigation_H__ */
Note: See TracChangeset for help on using the changeset viewer.