51 virtual void handleHit(
float damage,
float healthdamage,
float shielddamage,
Pawn* originator);
54 virtual void explode();
67 { this->damageAbsorption_ = value; }
69 {
return this->damageAbsorption_; }
73 {
return this->parent_; }
76 { this->eventExecution_ = var; }
78 {
return this->eventExecution_; }
81 { this->health_ = health; }
83 { this->setHealth(this->health_ + health); }
85 { this->setHealth(this->health_ - health); }
87 {
return this->health_; }
90 { this->maxHealth_ = maxhealth; this->setHealth(this->health_); }
92 {
return this->maxHealth_; }
95 { this->initialHealth_ = initialhealth; this->setHealth(initialhealth); }
97 {
return this->initialHealth_; }
100 { this->explosionPosition_ = pos; }
102 {
return this->explosionPosition_; }
bool eventExecution_
Definition: ShipPart.h:121
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
void setMaxHealth(float maxhealth)
Definition: ShipPart.h:89
float healthMem_
Definition: ShipPart.h:123
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: ModularSpaceShip.h:100
void setExplosionPosition(Vector3 pos)
Definition: ShipPart.h:99
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
float maxHealth_
Definition: ShipPart.h:114
float getHealth() const
Definition: ShipPart.h:86
Structure to describe a single event.
Definition: ScriptController.h:42
ModularSpaceShip * parent_
Definition: ShipPart.h:109
ModularSpaceShip * getParent() const
Definition: ShipPart.h:72
Definition: ShipPart.h:41
std::vector< StaticEntity * > entityList_
Definition: ShipPart.h:118
float health_
Definition: ShipPart.h:113
float getDamageAbsorption() const
Definition: ShipPart.h:68
void setHealth(float health)
Definition: ShipPart.h:80
xmlelement
Definition: Super.h:519
void setInitialHealth(float initialhealth)
Definition: ShipPart.h:94
float damageAbsorption_
Definition: ShipPart.h:112
Vector3 explosionPosition_
Definition: ShipPart.h:125
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 ...
unsigned int parentID_
Definition: ShipPart.h:110
void removeHealth(float health)
Definition: ShipPart.h:84
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
void setDamageAbsorption(float value)
Definition: ShipPart.h:66
void addHealth(float health)
Definition: ShipPart.h:82
bool isEventExecution() const
Definition: ShipPart.h:77
void setEventExecution(bool var)
Definition: ShipPart.h:75
float getMaxHealth() const
Definition: ShipPart.h:91
Vector3 getExplosionPosition()
Definition: ShipPart.h:101
float getInitialHealth() const
Definition: ShipPart.h:96
float initialHealth_
Definition: ShipPart.h:115
In order to assign attached entities to a ShipPart, a ShipPart with the same name as the correspondin...
Definition: PartDestructionEvent.h:74
std::vector< PartDestructionEvent * > eventList_
Definition: ShipPart.h:119