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 | * Viviane Yang |
---|
24 | * |
---|
25 | * TODO: - get information for lives and level from gametype |
---|
26 | * - implement it as you did for points |
---|
27 | * |
---|
28 | */ |
---|
29 | |
---|
30 | #ifndef _Asteroids2DHUDinfo_H__ |
---|
31 | #define _Asteroids2DHUDinfo_H__ |
---|
32 | |
---|
33 | //#include "Asteroids2DShip.h" |
---|
34 | #include "Asteroids2D.h" |
---|
35 | //#include "Asteroids2DCenterPoint.h" |
---|
36 | |
---|
37 | #include "asteroids2D/Asteroids2DPrereqs.h" |
---|
38 | |
---|
39 | #include "tools/interfaces/Tickable.h" |
---|
40 | #include "overlays/OverlayText.h" |
---|
41 | |
---|
42 | namespace orxonox |
---|
43 | { |
---|
44 | class _Asteroids2DExport Asteroids2DHUDinfo : public OverlayText, public Tickable |
---|
45 | { |
---|
46 | public: |
---|
47 | Asteroids2DHUDinfo(Context* context); |
---|
48 | |
---|
49 | virtual void tick(float dt) override; |
---|
50 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
51 | virtual void changedOwner() override; |
---|
52 | |
---|
53 | inline void setShowPoints(bool value) |
---|
54 | { this->bShowPoints_ = value; } |
---|
55 | inline bool getShowPoints() const |
---|
56 | { return this->bShowPoints_; } |
---|
57 | |
---|
58 | |
---|
59 | private: |
---|
60 | Asteroids2D* Asteroids2DGame; |
---|
61 | bool bShowLives_; |
---|
62 | bool bShowLevel_; |
---|
63 | bool bShowPoints_; |
---|
64 | |
---|
65 | |
---|
66 | }; |
---|
67 | } |
---|
68 | #endif /* _Asteroids2DHUDinfo_H__ */ |
---|