Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxHUDinfo.h @ 11630

Last change on this file since 11630 was 11576, checked in by pascscha, 7 years ago

deathmessages again

File size: 2.9 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 *
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"
34#include <cstring>
35
36namespace 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)
48                { this->bShowLives_ = false; }
49            inline bool getShowLives() const
50                { return this->bShowLives_; }
51
52            inline void setShowLevel(bool value)
53                { this->bShowLevel_ = false; }
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)
63                { this->bShowMultiplier_ = false; }
64            inline bool getShowMultiplier() const
65                { return this->bShowMultiplier_; }
66
67            inline void setShowMessage(bool value){
68                bShowGameOver_ = value;
69            }
70            inline bool getShowMessage() const
71                { return this->bShowGameOver_; }
72
73            inline void setMessageID(int value){
74                messageID = value;
75            }
76            inline int getMessageID() const
77                { return messageID; }
78
79
80
81
82        private:
83            FlappyOrx* FlappyOrxGame;
84            bool bShowLives_;
85            bool bShowLevel_;
86            bool bShowPoints_;
87            bool bShowMultiplier_;
88            bool bShowGameOver_;
89            int messageID;
90            std::string sGameOverMessage_;
91    };
92}
93#endif /* _FlappyOrxHUDinfo_H__ */
Note: See TracBrowser for help on using the repository browser.