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
|
Rev | Line | |
---|
[1494] | 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. * |
---|
[1454] | 2 | * Author: |
---|
| 3 | * Felix Schulthess |
---|
| 4 | * Co-authors: |
---|
| 5 | * ... |
---|
| 6 | * |
---|
| 7 | */ |
---|
[1346] | 8 | |
---|
[1410] | 9 | #ifndef _RadarObject_H__ |
---|
| 10 | #define _RadarObject_H__ |
---|
| 11 | |
---|
[1346] | 12 | #include <OgrePrerequisites.h> |
---|
[1450] | 13 | #include <OgreSceneNode.h> |
---|
[1408] | 14 | #include <OgrePanelOverlayElement.h> |
---|
[1450] | 15 | #include "OrxonoxPrereqs.h" |
---|
[1408] | 16 | #include "util/Math.h" |
---|
[1346] | 17 | |
---|
| 18 | namespace orxonox |
---|
| 19 | { |
---|
| 20 | class _OrxonoxExport RadarObject |
---|
| 21 | { |
---|
[1410] | 22 | private: |
---|
| 23 | Ogre::OverlayManager* om; // our one and only overlay manager |
---|
[1450] | 24 | Ogre::SceneNode* node_; // node of object |
---|
| 25 | int colour_; |
---|
[1346] | 26 | |
---|
[1410] | 27 | public: |
---|
[1450] | 28 | RadarObject(Ogre::OverlayContainer* container, Ogre::SceneNode* node, int colour = 0); |
---|
[1410] | 29 | ~RadarObject(); |
---|
[1450] | 30 | void setColour(int colour); |
---|
| 31 | void resetColour(); |
---|
| 32 | Vector3 getPosition(); |
---|
[1456] | 33 | Ogre::SceneNode* getNode(); |
---|
[1346] | 34 | |
---|
[1410] | 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 |
---|
[1346] | 39 | |
---|
[1410] | 40 | static int count; |
---|
[1450] | 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 |
---|
[1410] | 46 | }; |
---|
[1346] | 47 | } |
---|
| 48 | |
---|
[1410] | 49 | #endif /* _RadarObject_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.