[11503] | 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 _FlappyOrxHUDinfo_H__ |
---|
| 28 | #define _FlappyOrxHUDinfo_H__ |
---|
| 29 | |
---|
| 30 | #include "flappyorx/FlappyOrxPrereqs.h" |
---|
| 31 | |
---|
| 32 | #include "tools/interfaces/Tickable.h" |
---|
| 33 | #include "overlays/OverlayText.h" |
---|
[11563] | 34 | #include <cstring> |
---|
[11503] | 35 | |
---|
| 36 | namespace orxonox |
---|
| 37 | { |
---|
| 38 | class _FlappyOrxExport FlappyOrxHUDinfo : public OverlayText, public Tickable |
---|
| 39 | { |
---|
| 40 | public: |
---|
| 41 | FlappyOrxHUDinfo(Context* context); |
---|
| 42 | |
---|
| 43 | virtual void tick(float dt) override; |
---|
| 44 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
| 45 | virtual void changedOwner() override; |
---|
| 46 | |
---|
| 47 | inline void setShowLives(bool value) |
---|
[11521] | 48 | { this->bShowLives_ = false; } |
---|
[11503] | 49 | inline bool getShowLives() const |
---|
| 50 | { return this->bShowLives_; } |
---|
| 51 | |
---|
| 52 | inline void setShowLevel(bool value) |
---|
[11521] | 53 | { this->bShowLevel_ = false; } |
---|
[11503] | 54 | inline bool getShowLevel() const |
---|
| 55 | { return this->bShowLevel_; } |
---|
| 56 | |
---|
| 57 | inline void setShowPoints(bool value) |
---|
| 58 | { this->bShowPoints_ = value; } |
---|
| 59 | inline bool getShowPoints() const |
---|
| 60 | { return this->bShowPoints_; } |
---|
| 61 | |
---|
| 62 | inline void setShowMultiplier(bool value) |
---|
[11521] | 63 | { this->bShowMultiplier_ = false; } |
---|
[11503] | 64 | inline bool getShowMultiplier() const |
---|
| 65 | { return this->bShowMultiplier_; } |
---|
| 66 | |
---|
[11563] | 67 | inline void setShowMessage(bool value){ |
---|
| 68 | bShowGameOver_ = value; |
---|
| 69 | } |
---|
| 70 | inline bool getShowMessage() const |
---|
| 71 | { return this->bShowGameOver_; } |
---|
[11503] | 72 | |
---|
[11576] | 73 | inline void setMessageID(int value){ |
---|
| 74 | messageID = value; |
---|
| 75 | } |
---|
| 76 | inline int getMessageID() const |
---|
| 77 | { return messageID; } |
---|
[11563] | 78 | |
---|
[11576] | 79 | |
---|
| 80 | |
---|
| 81 | |
---|
[11503] | 82 | private: |
---|
| 83 | FlappyOrx* FlappyOrxGame; |
---|
| 84 | bool bShowLives_; |
---|
| 85 | bool bShowLevel_; |
---|
| 86 | bool bShowPoints_; |
---|
| 87 | bool bShowMultiplier_; |
---|
[11563] | 88 | bool bShowGameOver_; |
---|
[11576] | 89 | int messageID; |
---|
[11563] | 90 | std::string sGameOverMessage_; |
---|
[11503] | 91 | }; |
---|
| 92 | } |
---|
| 93 | #endif /* _FlappyOrxHUDinfo_H__ */ |
---|