26 #ifndef _ShootableObstacle_H__ 27 #define _ShootableObstacle_H__ 43 virtual bool collidesAgainst(
WorldEntity* otherObject,
const btCollisionShape* cs, btManifoldPoint& contactPoint)
override;
46 { this->collisionDamage_ = c; }
49 {
return this->collisionDamage_; }
53 this->enableCollisionDamage_ = c;
54 this->enableCollisionCallback();
58 {
return this->enableCollisionDamage_; }
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
float getCollisionDamage()
Definition: ShootableObstacle.h:48
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
xmlelement
Definition: Super.h:519
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
This class encapsulates a pawn (so an object with health) with the addition, that it damages other ob...
Definition: ShootableObstacle.h:37
Mode
Definition: CorePrereqs.h:102
bool enableCollisionDamage_
Definition: ShootableObstacle.h:62
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
void setEnableCollisionDamage(bool c)
Definition: ShootableObstacle.h:51
void setCollisionDamage(float c)
Definition: ShootableObstacle.h:45
float collisionDamage_
Definition: ShootableObstacle.h:61
bool getEnableCollisionDamage()
Definition: ShootableObstacle.h:57