- Timestamp:
- May 15, 2008, 3:49:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h~
r1283 r1286 32 32 #include <string.h> 33 33 #include <OgreOverlayElement.h> 34 #include <OgrePanelOverlayElement.h> 35 34 36 #include <OgrePrerequisites.h> 35 37 #include "../OrxonoxPrereqs.h" … … 41 43 { 42 44 private: 43 int number_; 44 45 46 PanelOverlayElement* point[100]; 47 48 int dirX_, dirY_, dirZ_; //flying direction 49 int ortX_, ortY_, ortZ_; //orthogonal direction 50 int dX_, dY_, dZ_; //distance between main ship and the object 51 int vecX_, vecY_, vecZ_; //vector product dir X ort 52 double alpha_; //defines the radius in the radar 53 double beta_; //defines the angle in the radar 54 bool right_; //checks whether the object is on the right side (since cos is not bijective) 55 56 static int ID; 45 57 46 58 public: … … 51 63 52 64 void initRadarOverlayElement(Real left, Real top, int dim, Ogre::OverlayContainer* container); 65 void setMainShipPosition(int dirX, dirY, dirZ, ortX, ortY, ortZ); 66 67 int newShip(int X, int Y, int Z); 68 69 void resetShip(int shipID, int Y, int Z); 53 70 }; 54 71 }
Note: See TracChangeset
for help on using the changeset viewer.