Orxonox  0.0.5 Codename: Arcturus
OrxoKart.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  * Master of Desaster:
23  * Manuel Meier
24  * Co-authors:
25  * Cyrill Burgener
26  *
27  */
28 
35 #ifndef _OrxoKart_H__
36 #define _OrxoKart_H__
37 
38 #include "OrxoKartPrereqs.h"
39 
40 #include <vector>
41 
42 #include "gametypes/Gametype.h"
43 #include "OrxoKartOrigin.h"
44 #include "OrxoKartKart.h"
45 namespace orxonox
46 {
48  {
49  public:
50  OrxoKart(Context* context);
51 
52  virtual void tick(float dt) override;
53 
54  void setOrigin(OrxoKartOrigin* origin)
55  { this->origin_ = origin; }
56 
57  inline int getRaceFinished() const
58  { return this->raceFinished; }
59  inline int getNumberOfShrooms() const
60  { return this->numberOfShrooms; }
61 
62  private:
66  std::vector<OrxoKartTile*> tiles;
68  std::vector<OrxoKartTile*> wayPoints;
69  int wayPointCounter = 0;
71  bool firstTick_;
72 
74 
75  int s;
76  int n;
77  int level;
78  };
79 }
80 
81 #endif /* _OrxoKart_H__ */
int level
Definition: OrxoKart.h:77
bool firstTick_
Definition: OrxoKart.h:71
The OrxoKartOrigin implements the playing field OrxoKart takes place in and allows for many parameter...
Definition: OrxoKartOrigin.h:46
Declaration of the OrxoKartKart class.
std::vector< OrxoKartTile * > wayPoints
Definition: OrxoKart.h:68
int numberOfWP
Definition: OrxoKart.h:67
int numberOfShrooms
Definition: OrxoKart.h:73
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
int n
Definition: OrxoKart.h:76
Definition: OrxoKartKart.h:41
OrxoKartFlag * flag_
Definition: OrxoKart.h:65
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Definition: Gametype.h:63
void setOrigin(OrxoKartOrigin *origin)
Definition: OrxoKart.h:54
Definition: OrxoKart.h:47
int s
Definition: OrxoKart.h:75
#define _OrxoKartExport
Definition: OrxoKartPrereqs.h:60
Definition: Context.h:45
Definition: OrxoKartFlag.h:46
OrxoKartKart * player
Definition: OrxoKart.h:63
WeakPtr< OrxoKartOrigin > origin_
Definition: OrxoKart.h:64
int getRaceFinished() const
Definition: OrxoKart.h:57
int getNumberOfShrooms() const
Definition: OrxoKart.h:59
Shared library macros, enums, constants and forward declarations for the OrxoKart module ...
bool raceFinished
Definition: OrxoKart.h:70
std::vector< OrxoKartTile * > tiles
Definition: OrxoKart.h:66