| [11931] | 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: | 
|---|
| [11992] | 23 |  *      Marc Dreher | 
|---|
| [11931] | 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 |  | 
|---|
| [11976] | 65 |             inline void setGhoststatus(bool value){ | 
|---|
| [11961] | 66 |                 this->bShowGhoststatus_ = value; | 
|---|
 | 67 |             } | 
|---|
 | 68 |             inline int getGhoststatus() const | 
|---|
 | 69 |                 { return this->bShowGhoststatus_; } | 
|---|
 | 70 |  | 
|---|
| [11978] | 71 |             inline void setGameover(bool value){ | 
|---|
 | 72 |                 this->showgameover = value; | 
|---|
 | 73 |             } | 
|---|
 | 74 |             inline int getGameover() const | 
|---|
 | 75 |                 { return this->showgameover; } | 
|---|
 | 76 |  | 
|---|
 | 77 |             inline void setlive(bool value){ | 
|---|
 | 78 |                 this->showlive = value; | 
|---|
 | 79 |             } | 
|---|
 | 80 |             inline int getlive() const | 
|---|
 | 81 |                 { return this->showlive; } | 
|---|
 | 82 |  | 
|---|
| [11979] | 83 |             inline void setlevel(bool value){ | 
|---|
 | 84 |                 this->showlevel = value; | 
|---|
 | 85 |             } | 
|---|
 | 86 |             inline int getlevel() const | 
|---|
 | 87 |                 { return this->showlevel; } | 
|---|
| [11978] | 88 |  | 
|---|
| [11979] | 89 |  | 
|---|
| [11931] | 90 |         private: | 
|---|
 | 91 |             Pacman* PacmanGame; | 
|---|
 | 92 |             bool bShowPoints_; | 
|---|
 | 93 |             bool bShowMessage_; | 
|---|
| [11961] | 94 |             bool bShowGhoststatus_; | 
|---|
| [11978] | 95 |             bool showgameover; | 
|---|
 | 96 |             bool showlive; | 
|---|
| [11979] | 97 |             bool showlevel; | 
|---|
| [11931] | 98 |             int messageID; | 
|---|
 | 99 |     }; | 
|---|
 | 100 | } | 
|---|
 | 101 | #endif /* _PacmanHUDinfo_H__ */ | 
|---|