Changeset 1450 for code/branches/network/src/orxonox/hud/RadarObject.h
- Timestamp:
- May 28, 2008, 2:08:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/RadarObject.h
r1411 r1450 29 29 #define _RadarObject_H__ 30 30 31 #include <OgrePrerequisites.h> 32 #include <OgreSceneNode.h> 33 #include <OgrePanelOverlayElement.h> 31 34 #include "OrxonoxPrereqs.h" 32 33 #include <OgrePrerequisites.h>34 #include <OgrePanelOverlayElement.h>35 35 #include "util/Math.h" 36 36 … … 41 41 private: 42 42 Ogre::OverlayManager* om; // our one and only overlay manager 43 void init(); 43 Ogre::SceneNode* node_; // node of object 44 int colour_; 44 45 45 46 public: 46 RadarObject(Ogre::OverlayContainer* container); 47 RadarObject(Ogre::OverlayContainer* container, Vector3 pos); 47 RadarObject(Ogre::OverlayContainer* container, Ogre::SceneNode* node, int colour = 0); 48 48 ~RadarObject(); 49 void setColour(int colour); 50 void resetColour(); 51 Vector3 getPosition(); 49 52 50 53 bool right_; 51 54 int index_; // index number of object 52 Vector3 pos_; // position in space53 55 Ogre::OverlayContainer* container_; 54 56 Ogre::PanelOverlayElement* panel_; // the panel used to show the dot … … 56 58 57 59 static int count; 60 static const int RED = 0; 61 static const int YELLOW = 1; 62 static const int GREEN = 2; 63 static const int BLUE = 3; 64 static const int WHITE = 99; // used if object got nav focus 58 65 }; 59 66 }
Note: See TracChangeset
for help on using the changeset viewer.