Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/shader/src/orxonox/hud/RadarObject.h @ 1751

Last change on this file since 1751 was 1505, checked in by rgrieder, 16 years ago

f* svn: It doesn't even inform you if you attempt to set a non existing property. It is svn:eol-style and not eol-style when using the command by the way…

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