Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/orxonox/hud/RadarObject.h @ 1494

Last change on this file since 1494 was 1494, checked in by rgrieder, 16 years ago
  • set the svn:eol-style property to all files so, that where ever you check out, you'll get the right line endings (had to change every file with mixed endings to windows in order to set the property)
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1/* *   ORXONOX - the hottest 3D action shooter ever to exist *                    > www.orxonox.net < * * *   License notice: * *   This program is free software; you can redistribute it and/or *   modify it under the terms of the GNU General Public License *   as published by the Free Software Foundation; either version 2 *   of the License, or (at your option) any later version. * *   This program is distributed in the hope that it will be useful, *   but WITHOUT ANY WARRANTY; without even the implied warranty of *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *   GNU General Public License for more details. * *   You should have received a copy of the GNU General Public License *   along with this program; if not, write to the Free Software *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. *
2 *   Author:
3 *      Felix Schulthess
4 *   Co-authors:
5 *      ...
6 *
7 */
8
9#ifndef _RadarObject_H__
10#define _RadarObject_H__
11
12#include <OgrePrerequisites.h>
13#include <OgreSceneNode.h>
14#include <OgrePanelOverlayElement.h>
15#include "OrxonoxPrereqs.h"
16#include "util/Math.h"
17
18namespace orxonox
19{
20    class _OrxonoxExport RadarObject
21    {
22      private:
23        Ogre::OverlayManager* om;                               // our one and only overlay manager
24        Ogre::SceneNode* node_;                                 // node of object
25        int colour_;
26
27      public:
28        RadarObject(Ogre::OverlayContainer* container, Ogre::SceneNode* node, int colour = 0);
29        ~RadarObject();
30        void setColour(int colour);
31        void resetColour();
32        Vector3 getPosition();
33        Ogre::SceneNode* getNode();
34
35        bool right_;
36        int index_;                             // index number of object
37        Ogre::OverlayContainer* container_;
38        Ogre::PanelOverlayElement* panel_;              // the panel used to show the dot
39
40        static int count;
41        static const int RED = 0;
42        static const int YELLOW = 1;
43        static const int GREEN = 2;
44        static const int BLUE = 3;
45        static const int WHITE = 99;            // used if object got nav focus
46  };
47}
48
49#endif /* _RadarObject_H__ */
Note: See TracBrowser for help on using the repository browser.