Orxonox  0.0.5 Codename: Arcturus
SOBFireball.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  * Theo von Arx
24  Noah Zarro
25  * Co-authors:
26  *
27  *
28  */
29 
36 #ifndef _SOBFireball_H__
37 #define _SOBFireball_H__
38 
41 
42 
43 namespace orxonox
44 {
46  {
47  public:
48  SOBFireball(Context* context);
49  virtual ~SOBFireball() {}
50 
51  virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
52  virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;
53  virtual void tick(float dt) override;
54  void setDirection(const bool direction);
55 
56  void setSpeed(const float speed)
57  { this->speed_ = speed; }
58  float getSpeed() const
59  { return speed_; }
60 
62  protected:
64  float speed_;
65  bool goesRight_;
67  float changedOn_;
70 
71  };
72 }
73 
74 #endif /* _SOBFireball_H__ */
WorldEntity * particlespawner_
Definition: SOBFireball.h:69
Definition: SOBFireball.h:45
#define _SOBExport
Definition: SOBPrereqs.h:60
virtual ~SOBFireball()
Definition: SOBFireball.h:49
float getSpeed() const
Definition: SOBFireball.h:58
int hitCounter_
Definition: SOBFireball.h:68
void setSpeed(const float speed)
Definition: SOBFireball.h:56
bool goesRight_
Definition: SOBFireball.h:65
Definition: MovableEntity.h:42
float gravityAcceleration_
Definition: SOBFireball.h:63
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
xmlelement
Definition: Super.h:519
bool changeAllowed_
Definition: SOBFireball.h:66
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool hasCollided_
Definition: SOBFireball.h:61
Mode
Definition: CorePrereqs.h:102
float changedOn_
Definition: SOBFireball.h:67
Definition: Context.h:45
Shared library macros, enums, constants and forward declarations for the SOB module ...
float speed_
Definition: SOBFireball.h:64