Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SpaceshipNavigation2/src/modules/overlays/hud/HUDFindClosestEnemy.cc @ 10275

Last change on this file since 10275 was 9396, checked in by soroa, 12 years ago

Created a new class called FindClosestEnemy

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 *      Andrea Soro
24 *
25 */
26
27#include "HUDFindClosestEnemy.h"
28
29/*#include <OgreCamera.h>
30#include <OgreFontManager.h>
31#include <OgreOverlayManager.h>
32#include <OgreTextAreaOverlayElement.h>
33#include <OgrePanelOverlayElement.h>*/
34
35#include "util/Math.h"
36#include "util/Convert.h"
37#include "core/CoreIncludes.h"
38#include "core/XMLPort.h"
39#include "CameraManager.h"
40#include "Scene.h"
41#include "Radar.h"
42#include "graphics/Camera.h"
43#include "controllers/HumanController.h"
44#include "worldentities/pawns/Pawn.h"
45#include "worldentities/WorldEntity.h"
46#include "core/ConfigValueIncludes.h"
47#include "tools/TextureGenerator.h"
48// #include <boost/bind/bind_template.hpp>
49
50
51namespace orxonox
52{
53    CreateFactory ( HUDFindClosestEnemy );
54
55    HUDFindClosestEnemy::HUDFindClosestEnemy(BaseObject* creator) :HUDNavigation(creator)
56    {
57        orxout()<<"ClosestEnemyFinder activated"<<endl;
58    }
59
60    HUDFindClosestEnemy::~HUDFindClosestEnemy()
61    {
62
63    }
64
65
66    void HUDFindClosestEnemy::XMLPort(Element& xmlelement, XMLPort::Mode mode)
67    {
68        SUPER(HUDFindClosestEnemy, XMLPort, xmlelement, mode);
69
70    }
71
72
73
74
75    void HUDFindClosestEnemy::tick(float dt)
76    {
77        SUPER(HUDFindClosestEnemy, tick, dt);
78
79
80    }
81
82
83
84
85}
Note: See TracBrowser for help on using the repository browser.