Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2008, 2:08:03 PM (16 years ago)
Author:
FelixSchulthess
Message:

making radar objects from scene nodes now. radar object supporting multiple colors

File:
1 edited

Legend:

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

    r1411 r1450  
    2929#define _RadarObject_H__
    3030
     31#include <OgrePrerequisites.h>
     32#include <OgreSceneNode.h>
     33#include <OgrePanelOverlayElement.h>
    3134#include "OrxonoxPrereqs.h"
    32 
    33 #include <OgrePrerequisites.h>
    34 #include <OgrePanelOverlayElement.h>
    3535#include "util/Math.h"
    3636
     
    4141      private:
    4242        Ogre::OverlayManager* om;                               // our one and only overlay manager
    43         void init();
     43        Ogre::SceneNode* node_;                                 // node of object
     44        int colour_;
    4445
    4546      public:
    46         RadarObject(Ogre::OverlayContainer* container);
    47         RadarObject(Ogre::OverlayContainer* container, Vector3 pos);
     47        RadarObject(Ogre::OverlayContainer* container, Ogre::SceneNode* node, int colour = 0);
    4848        ~RadarObject();
     49        void setColour(int colour);
     50        void resetColour();
     51        Vector3 getPosition();
    4952
    5053        bool right_;
    5154        int index_;                             // index number of object
    52         Vector3 pos_;                                                   // position in space
    5355        Ogre::OverlayContainer* container_;
    5456        Ogre::PanelOverlayElement* panel_;              // the panel used to show the dot
     
    5658
    5759        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
    5865  };
    5966}
Note: See TracChangeset for help on using the changeset viewer.