Changeset 1410 for code/branches/network/src/orxonox/hud/Navigation.h
- Timestamp:
- May 24, 2008, 3:38:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/Navigation.h
r1406 r1410 26 26 */ 27 27 28 #ifndef _NAVIGATION_H__ 29 #define _NAVIGATION_H__ 28 #ifndef _Navigation_H__ 29 #define _Navigation_H__ 30 31 #include "OrxonoxPrereqs.h" 30 32 31 33 #include <OgrePrerequisites.h> 32 #include "../OrxonoxPrereqs.h"33 #include <OgreP lane.h>34 #include <OgreTextAreaOverlayElement.h> 35 #include <OgrePanelOverlayElement.h> 34 36 #include "util/Math.h" 35 #include "RadarObject.h"36 37 37 38 namespace orxonox 38 39 { 40 39 41 class _OrxonoxExport Navigation 40 42 { 41 42 Ogre::OverlayManager* om;// our one and only overlay manager43 44 45 46 47 Vector3 navCamPos_;// position of ship48 49 50 51 52 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(); 53 55 54 55 56 57 58 56 public: 57 Navigation(Ogre::OverlayContainer* container); 58 Navigation(Ogre::OverlayContainer* container, RadarObject* focus); 59 ~Navigation(); 60 RadarObject* focus_; // next pointer of linked list 59 61 60 61 62 63 62 void update(); 63 void cycleFocus(); 64 float getDist2Focus(); 65 }; 64 66 } 65 67 66 #endif 68 #endif /* _Navigation_H__ */
Note: See TracChangeset
for help on using the changeset viewer.