Orxonox  0.0.5 Codename: Arcturus
SOBFigure.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  * Julien Kindle
24  * Co-authors:
25  *
26  *
27  */
28 
29 #ifndef _SOBFigure_H__
30 #define _SOBFigure_H__
31 
34 #include "SOBTube.h"
35 
36 
37 namespace orxonox
38 {
40  {
41  public:
42  SOBFigure(Context* context);
43  virtual ~SOBFigure() {}
44  virtual void tick(float dt) override;
45  virtual void moveFrontBack(const Vector2& value) override;
46  virtual void moveRightLeft(const Vector2& value) override;
47  virtual void boost(bool boost) override;
48  virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;
49  void changeClothes();
50  void spawnFireball();
51  void die();
52 
53  bool dead_;
54  bool predead_;
55  bool lvlEnded_;
56 
57  private:
58 
59  //Soooo many declarations
61  SOBTube* tube; //class SOBTube* used because tube needs to be global using in collides against function and tick function in SOBfigure.cc
63  int kkk;
64 
65  bool tcol_; //used for getting through tube
66  bool tubing; //used for getting through tube
73  float lastSpeed_z;
81  int sgn(float x);
83  float timeCounter_;
84  float collDisZ_;
85 
86 
87 
88 
89  };
90  }
91 
92 #endif /* _SOBFigure_H__ */
int maxPowerUp_
Definition: SOBFigure.h:79
#define _SOBExport
Definition: SOBPrereqs.h:60
virtual ~SOBFigure()
Definition: SOBFigure.h:43
bool moveLeftPressed_
Definition: SOBFigure.h:68
Definition: SOBFigure.h:39
Definition: CorePrereqs.h:309
float gravityAcceleration_
Definition: SOBFigure.h:71
Definition: SOBTube.h:45
float timeSinceLastFire_
Definition: SOBFigure.h:72
float lastSpeed_z
Definition: SOBFigure.h:73
constexpr T sgn(T x)
Returns the sign of the given value.
Definition: Math.h:108
bool moveDownPressed_
Definition: SOBFigure.h:67
WorldEntity * particlespawner_
Definition: SOBFigure.h:77
int FireballPower
Definition: SOBFigure.h:80
bool moveRightPressed_
Definition: SOBFigure.h:69
Declaration of the SOBTube class.
bool fireallowed_
Definition: SOBFigure.h:60
float timeCounter_
Definition: SOBFigure.h:83
float collDisZ_
Definition: SOBFigure.h:84
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
bool predead_
Definition: SOBFigure.h:54
bool isColliding_
Definition: SOBFigure.h:76
float positiontube_
Definition: SOBFigure.h:75
bool dead_
Definition: SOBFigure.h:53
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool tubing
Definition: SOBFigure.h:66
bool moveUpPressed_
Definition: SOBFigure.h:62
Definition: Context.h:45
bool lvlEnded_
Definition: SOBFigure.h:55
float firecooldown_
Definition: SOBFigure.h:74
bool firePressed_
Definition: SOBFigure.h:70
int reachedLvlEndState_
Definition: SOBFigure.h:82
int PowerUpCounter_
Definition: SOBFigure.h:78
Shared library macros, enums, constants and forward declarations for the SOB module ...
int kkk
Definition: SOBFigure.h:63
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
SOBTube * tube
Definition: SOBFigure.h:61
bool tcol_
Definition: SOBFigure.h:65