36 #ifndef _ShieldPickup_H__ 37 #define _ShieldPickup_H__ 83 virtual void changedUsed(
void);
90 {
return this->duration_; }
96 {
return this->shieldHealth_; }
102 {
return this->shieldAbsorption_; }
105 void pickupTimerCallback(
void);
107 void setDuration(
float duration);
108 void setShieldHealth(
float shieldHealth);
109 void setShieldAbsorption(
float shieldAbsorption);
112 void initialize(
void);
113 Pawn* carrierToPawnHelper(
void);
124 #endif // _ShieldPickup_H__ Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
#define _PickupExport
Definition: PickupPrereqs.h:60
Declaration of the Pickup class.
float duration_
The health that is transferred to the Pawn.
Definition: ShieldPickup.h:117
float getShieldHealth() const
Get the shield health, the amount of damage the shield can sustain.
Definition: ShieldPickup.h:95
A Pickup which can add a Shield to the Pawn.
Definition: ShieldPickup.h:74
float getDuration(void) const
Get the duration, the time the shield is actvie at the most.
Definition: ShieldPickup.h:89
float shieldAbsorption_
The percentage of damage that is absorbed by the shield.
Definition: ShieldPickup.h:119
xmlelement
Definition: Super.h:519
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
float shieldHealth_
The amount of damage the shield can sustain.
Definition: ShieldPickup.h:118
Mode
Definition: CorePrereqs.h:102
Timer durationTimer_
Timer.
Definition: ShieldPickup.h:115
The Pickup class offers (useful) base functionality for a wide range of pickups.
Definition: Pickup.h:92
Shared library macros, enums, constants and forward declarations for the questsystem module ...
float getShieldAbsorption() const
Get the shield absorption, the percentage of damage that is absorbed by the shield.
Definition: ShieldPickup.h:101
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105