Orxonox  0.0.5 Codename: Arcturus
InvaderHUDinfo.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  * Florian Zinggeler
24  *
25  */
26 
27 #ifndef _InvaderHUDinfo_H__
28 #define _InvaderHUDinfo_H__
29 
30 #include "invader/InvaderPrereqs.h"
31 
33 #include "overlays/OverlayText.h"
34 
35 namespace orxonox
36 {
38  {
39  public:
40  InvaderHUDinfo(Context* context);
41 
42  virtual void tick(float dt) override;
43  virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
44  virtual void changedOwner() override;
45 
46  inline void setShowLives(bool value)
47  { this->bShowLives_ = value; }
48  inline bool getShowLives() const
49  { return this->bShowLives_; }
50 
51  inline void setShowLevel(bool value)
52  { this->bShowLevel_ = value; }
53  inline bool getShowLevel() const
54  { return this->bShowLevel_; }
55 
56  inline void setShowPoints(bool value)
57  { this->bShowPoints_ = value; }
58  inline bool getShowPoints() const
59  { return this->bShowPoints_; }
60 
61  inline void setShowMultiplier(bool value)
62  { this->bShowMultiplier_ = value; }
63  inline bool getShowMultiplier() const
64  { return this->bShowMultiplier_; }
65 
66 
67  private:
73  };
74 }
75 #endif /* _InvaderHUDinfo_H__ */
Definition: OverlayText.h:41
void setShowMultiplier(bool value)
Definition: InvaderHUDinfo.h:61
Declaration of the Tickable interface.
Definition: Invader.h:46
bool bShowMultiplier_
Definition: InvaderHUDinfo.h:72
void setShowLevel(bool value)
Definition: InvaderHUDinfo.h:51
bool getShowLives() const
Definition: InvaderHUDinfo.h:48
bool getShowMultiplier() const
Definition: InvaderHUDinfo.h:63
void setShowLives(bool value)
Definition: InvaderHUDinfo.h:46
Invader * InvaderGame
Definition: InvaderHUDinfo.h:68
xmlelement
Definition: Super.h:519
#define _InvaderExport
Definition: InvaderPrereqs.h:60
bool bShowLevel_
Definition: InvaderHUDinfo.h:70
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool getShowPoints() const
Definition: InvaderHUDinfo.h:58
Mode
Definition: CorePrereqs.h:102
bool bShowLives_
Definition: InvaderHUDinfo.h:69
Definition: Context.h:45
Definition: InvaderHUDinfo.h:37
Shared library macros, enums, constants and forward declarations for the Invader module ...
void setShowPoints(bool value)
Definition: InvaderHUDinfo.h:56
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
bool getShowLevel() const
Definition: InvaderHUDinfo.h:53
bool bShowPoints_
Definition: InvaderHUDinfo.h:71