Orxonox  0.0.5 Codename: Arcturus
HoverOrigin.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  * Manuel Meier
24  * Co-authors:
25  * ...
26  *
27  */
28 
29 #ifndef _HoverOrigin_H__
30 #define _HoverOrigin_H__
31 
32 #include "HoverPrereqs.h"
33 
35 
36 namespace orxonox
37 {
38 
47  {
48  public:
49  HoverOrigin(Context* context);
50  virtual ~HoverOrigin() = default;
51  virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
52 
53  inline void setNumCells(int numCells)
54  { this->numCells_ = numCells; }
55  inline int getNumCells() const
56  { return this->numCells_; }
57 
58  inline void setCellSize(int cellSize)
59  { this->cellSize_ = cellSize; }
60  inline int getCellSize() const
61  { return this->cellSize_; }
62 
63  inline void setCellHeight(int cellHeight)
64  { this->cellHeight_ = cellHeight; }
65  inline int getCellHeight() const
66  { return this->cellHeight_; }
67 
68  private:
69  void checkGametype();
70 
71  int numCells_;
72  int cellSize_;
74  };
75 }
76 
77 #endif /* _HoverOrigin_H__ */
int cellHeight_
Definition: HoverOrigin.h:73
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
void setNumCells(int numCells)
Definition: HoverOrigin.h:53
The HoverOrigin implements the playing field Hover takes place in and allows for many parameters of t...
Definition: HoverOrigin.h:46
void setCellHeight(int cellHeight)
Definition: HoverOrigin.h:63
int getCellSize() const
Definition: HoverOrigin.h:60
int cellSize_
Definition: HoverOrigin.h:72
int numCells_
Definition: HoverOrigin.h:71
int getNumCells() const
Definition: HoverOrigin.h:55
#define _HoverExport
Definition: HoverPrereqs.h:60
xmlelement
Definition: Super.h:519
Shared library macros, enums, constants and forward declarations for the Hover module ...
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Definition: Context.h:45
void setCellSize(int cellSize)
Definition: HoverOrigin.h:58
int getCellHeight() const
Definition: HoverOrigin.h:65