Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2D.h @ 11593

Last change on this file since 11593 was 11593, checked in by vyang, 6 years ago

MiniGameTest Minigame erstellt → Kopie von DodgeRace, Namen von Asteroid zu Asteroid 2D geaendert, da schon eine Klasse mit dem selben Namen existiert

File size: 2.5 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 *      Florian Zinggeler
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30    @file Asteroids2D.h
31    @brief Gametype.
32    @ingroup Asteroids2D
33*/
34
35#ifndef _Asteroids2D_H__
36#define _Asteroids2D_H__
37
38#include "asteroids2D/Asteroids2DPrereqs.h"
39
40#include "Asteroids2DCenterPoint.h" // Necessary for WeakPointer??
41//#include "Asteroids2DShip.h"        DO NOT include in Header. Will cause forward declaration issues
42
43//#include "Asteroids2DHUDinfo.h"
44
45
46#include "core/EventIncludes.h"
47#include "core/command/Executor.h"
48#include "core/config/ConfigValueIncludes.h"
49
50#include "gamestates/GSLevel.h"
51#include "chat/ChatManager.h"
52
53
54// ! HACK
55#include "infos/PlayerInfo.h"
56
57#include "core/command/ConsoleCommand.h"
58
59#include "gametypes/Deathmatch.h"
60
61namespace orxonox
62{
63
64    class _Asteroids2DExport Asteroids2D : public Deathmatch
65    {
66       public:
67            Asteroids2D(Context* context);
68
69            virtual void start() override;
70            virtual void end() override;
71            virtual void tick(float dt) override;
72
73            void setCenterpoint(Asteroids2DCenterPoint* center)
74                       { this->center_ = center; }
75
76            virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command
77            bool bEndGame;
78
79       private:
80
81
82            Asteroids2DShip* getPlayer();
83            WeakPtr<Asteroids2DShip> player;
84            WeakPtr<Asteroids2DCenterPoint> center_;
85
86
87         /*
88
89            //void spawnEnemy();
90
91
92
93
94
95
96
97
98
99
100
101
102        private:
103
104
105
106
107            //Context* context;
108            */
109    };
110}
111
112#endif /* _Asteroids2D_H__ */
Note: See TracBrowser for help on using the repository browser.