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 | * |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef _PacmanHUDinfo_H__ |
---|
28 | #define _PacmanHUDinfo_H__ |
---|
29 | |
---|
30 | #include "PacmanPrereqs.h" |
---|
31 | #include "Pacman.h" |
---|
32 | |
---|
33 | #include "tools/interfaces/Tickable.h" |
---|
34 | #include "overlays/OverlayText.h" |
---|
35 | #include <cstring> |
---|
36 | |
---|
37 | namespace orxonox |
---|
38 | { |
---|
39 | class _PacmanExport PacmanHUDinfo : public OverlayText, public Tickable |
---|
40 | { |
---|
41 | public: |
---|
42 | PacmanHUDinfo(Context* context); |
---|
43 | |
---|
44 | virtual void tick(float dt) override; |
---|
45 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
46 | virtual void changedOwner() override; |
---|
47 | |
---|
48 | inline void setShowPoints(bool value) |
---|
49 | { this->bShowPoints_ = value; } |
---|
50 | inline bool getShowPoints() const |
---|
51 | { return this->bShowPoints_; } |
---|
52 | |
---|
53 | inline void setShowMessage(bool value){ |
---|
54 | bShowMessage_ = value; |
---|
55 | } |
---|
56 | inline bool getShowMessage() const |
---|
57 | { return this->bShowMessage_; } |
---|
58 | |
---|
59 | inline void setMessageID(int value){ |
---|
60 | messageID = value; |
---|
61 | } |
---|
62 | inline int getMessageID() const |
---|
63 | { return messageID; } |
---|
64 | |
---|
65 | private: |
---|
66 | Pacman* PacmanGame; |
---|
67 | bool bShowPoints_; |
---|
68 | bool bShowMessage_; |
---|
69 | int messageID; |
---|
70 | }; |
---|
71 | } |
---|
72 | #endif /* _PacmanHUDinfo_H__ */ |
---|