29 #ifndef _Controller_H__ 30 #define _Controller_H__ 49 { this->player_ = player; }
51 {
return this->player_; }
53 { this->team_ = team; }
55 {
return this->team_; }
57 virtual void hit(
Pawn* originator, btManifoldPoint& contactpoint,
float damage) {};
69 {
return this->controllableEntity_; }
76 if (entity != this->controllableEntity_)
78 this->controllableEntity_ = entity;
79 this->changedControllableEntity();
bool getGodMode()
Definition: Controller.h:66
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
PlayerInfo * player_
Definition: Controller.h:84
void setTeam(int team)
Definition: Controller.h:52
bool bGodMode_
Definition: Controller.h:88
void setGodMode(bool mode)
Definition: Controller.h:65
xmlelement
Definition: Super.h:519
void setPlayer(PlayerInfo *player)
Definition: Controller.h:48
ControllableEntity * getControllableEntity() const
Definition: Controller.h:68
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
int getTeam() const
Definition: Controller.h:54
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
Declaration of BaseObject, the base class of all objects in Orxonox.
ControllableEntity * controllableEntity_
Definition: Controller.h:85
void setControllableEntity(ControllableEntity *entity)
Definition: Controller.h:74
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Definition: Controller.h:38
PlayerInfo * getPlayer() const
Definition: Controller.h:50
int team_
Definition: Controller.h:86
Definition: PlayerInfo.h:39
virtual void hit(Pawn *originator, btManifoldPoint &contactpoint, float damage)
Definition: Controller.h:57
Definition of all super-function related macros, used to call functions of the base class...
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
virtual void changedControllableEntity()
Definition: Controller.h:70