Orxonox  0.0.5 Codename: Arcturus
PacmanHUDinfo.h
Go to the documentation of this file.
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  * Marc Dreher
24  *
25  */
26 
27 #ifndef _PacmanHUDinfo_H__
28 #define _PacmanHUDinfo_H__
29 
30 #include "PacmanPrereqs.h"
31 #include "Pacman.h"
32 
34 #include "overlays/OverlayText.h"
35 #include <cstring>
36 
37 namespace orxonox
38 {
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  inline void setGhoststatus(bool value){
66  this->bShowGhoststatus_ = value;
67  }
68  inline int getGhoststatus() const
69  { return this->bShowGhoststatus_; }
70 
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 
83  inline void setlevel(bool value){
84  this->showlevel = value;
85  }
86  inline int getlevel() const
87  { return this->showlevel; }
88 
89 
90  private:
96  bool showlive;
97  bool showlevel;
98  int messageID;
99  };
100 }
101 #endif /* _PacmanHUDinfo_H__ */
Definition: OverlayText.h:41
Shared library macros, enums, constants and forward declarations for the DodgeRace module ...
Pacman * PacmanGame
Definition: PacmanHUDinfo.h:91
bool getShowPoints() const
Definition: PacmanHUDinfo.h:50
void setlive(bool value)
Definition: PacmanHUDinfo.h:77
Declaration of the Tickable interface.
bool showlive
Definition: PacmanHUDinfo.h:96
bool showlevel
Definition: PacmanHUDinfo.h:97
void setShowPoints(bool value)
Definition: PacmanHUDinfo.h:48
void setShowMessage(bool value)
Definition: PacmanHUDinfo.h:53
void setGhoststatus(bool value)
Definition: PacmanHUDinfo.h:65
void setlevel(bool value)
Definition: PacmanHUDinfo.h:83
int getlive() const
Definition: PacmanHUDinfo.h:80
xmlelement
Definition: Super.h:519
bool bShowPoints_
Definition: PacmanHUDinfo.h:92
bool showgameover
Definition: PacmanHUDinfo.h:95
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
void setMessageID(int value)
Definition: PacmanHUDinfo.h:59
Definition: PacmanHUDinfo.h:39
Mode
Definition: CorePrereqs.h:102
int messageID
Definition: PacmanHUDinfo.h:98
int getlevel() const
Definition: PacmanHUDinfo.h:86
Definition: Context.h:45
void setGameover(bool value)
Definition: PacmanHUDinfo.h:71
Definition: Pacman.h:63
int getMessageID() const
Definition: PacmanHUDinfo.h:62
int getGameover() const
Definition: PacmanHUDinfo.h:74
#define _PacmanExport
Definition: PacmanPrereqs.h:60
int getGhoststatus() const
Definition: PacmanHUDinfo.h:68
bool bShowMessage_
Definition: PacmanHUDinfo.h:93
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
bool bShowGhoststatus_
Definition: PacmanHUDinfo.h:94
bool getShowMessage() const
Definition: PacmanHUDinfo.h:56