30 #ifndef _MovableEntity_H__ 31 #define _MovableEntity_H__ 49 virtual bool collidesAgainst(
WorldEntity* otherObject,
const btCollisionShape* cs, btManifoldPoint& contactPoint)
override;
54 virtual inline void setPosition(
const Vector3& position)
override 60 { this->owner_ = owner; }
62 {
return this->owner_; }
65 { this->collisionDamage_ = c; }
68 {
return this->collisionDamage_; }
72 this->enableCollisionDamage_ = c;
73 this->enableCollisionCallback();
77 {
return this->enableCollisionDamage_; }
80 void registerVariables();
81 virtual void clientConnected(
unsigned int clientID)
override;
82 virtual void clientDisconnected(
unsigned int clientID)
override;
86 { this->setVelocity(this->linearVelocity_); }
88 { this->setAngularVelocity(this->angularVelocity_); }
91 { this->setPosition(this->overwrite_position_); }
93 { this->setOrientation(this->overwrite_orientation_); }
float collisionDamage_
Definition: MovableEntity.h:102
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
virtual void setOrientation(const Quaternion &orientation)=0
virtual void setOrientation(const Quaternion &orientation) override
Definition: MovableEntity.h:56
Pawn * owner_
Definition: MovableEntity.h:101
void overwriteOrientation()
Definition: MovableEntity.h:92
bool getEnableCollisionDamage()
Definition: MovableEntity.h:76
Definition: MovableEntity.h:42
Quaternion overwrite_orientation_
Definition: MovableEntity.h:96
void setCollisionDamage(float c)
Definition: MovableEntity.h:64
bool enableCollisionDamage_
Definition: MovableEntity.h:103
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
An abstract base class.
Definition: ClientConnectionListener.h:40
xmlelement
Definition: Super.h:519
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
void overwritePosition()
Definition: MovableEntity.h:90
The MobileEntity is a derived class from orxonox::WorldEntity and orxonox::Tickable.
Definition: MobileEntity.h:53
Declaration of the Timer class, used to call functions after a given time-interval.
Pawn * getOwner() const
Definition: MovableEntity.h:61
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
virtual void setOrientation(const Quaternion &orientation) override
Definition: MobileEntity.cc:122
Vector3 overwrite_position_
Definition: MovableEntity.h:95
Timer resynchronizeTimer_
Definition: MovableEntity.h:98
void processLinearVelocity()
Definition: MovableEntity.h:85
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
virtual void setPosition(const Vector3 &position) override
Definition: MobileEntity.cc:110
void setEnableCollisionDamage(bool c)
Definition: MovableEntity.h:70
float getCollisionDamage()
Definition: MovableEntity.h:67
void setOwner(Pawn *owner)
Definition: MovableEntity.h:59
void processAngularVelocity()
Definition: MovableEntity.h:87
virtual void setPosition(const Vector3 &position) override
Definition: MovableEntity.h:54
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
virtual void setPosition(const Vector3 &position)=0
Timer * continuousResynchroTimer_
Definition: MovableEntity.h:99