Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/hud/OverlayElementFactories.h @ 1479

Last change on this file since 1479 was 1362, checked in by scheusso, 17 years ago

merged hud3 branch into trunk and changed camera orientation

File size: 1.9 KB
Line 
1/*
2*   ORXONOX - the hottest 3D action shooter ever to exist
3*
4*
5*   License notice:
6*
7*   This program is free software; you can redistribute it and/or
8*   modify it under the terms of the GNU General Public License
9*   as published by the Free Software Foundation; either version 2
10*   of the License, or (at your option) any later version.
11*
12*   This program is distributed in the hope that it will be useful,
13*   but WITHOUT ANY WARRANTY; without even the implied warranty of
14*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*   GNU General Public License for more details.
16*
17*   You should have received a copy of the GNU General Public License
18*   along with this program; if not, write to the Free Software
19*   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20*
21*   Author:
22*      Yuning Chai
23*   Co-authors:
24*      Felix Schulthess
25*
26*/
27
28#ifndef _FACTORIES_H__
29#define _FACTORIES_H__
30
31#include <OgreOverlayElement.h>
32#include <OgrePrerequisites.h>
33#include <OgreOverlayElementFactory.h>
34
35#include "BarOverlayElement.h"
36
37namespace orxonox{
38    class _OrxonoxExport BarOverlayElementFactory : public Ogre::OverlayElementFactory{
39        public:
40        Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
41            return new BarOverlayElement(instanceName);
42        }
43        const Ogre::String& getTypeName(void) const{
44            static Ogre::String name = "Bar";
45            return name;
46        }
47    };
48
49    class _OrxonoxExport RadarOverlayElementFactory : public Ogre::OverlayElementFactory{
50        public:
51        Ogre::OverlayElement* createOverlayElement(const Ogre::String& instanceName){
52            return new RadarOverlayElement(instanceName);
53        }
54        const Ogre::String& getTypeName(void) const{
55            static Ogre::String name = "Radar";
56            return name;
57        }
58    };
59}
60
61#endif
Note: See TracBrowser for help on using the repository browser.