35 #ifndef _HealthPickup_H__ 36 #define _HealthPickup_H__ 93 virtual void tick(
float dt);
95 virtual void changedUsed(
void);
102 {
return this->health_; }
108 {
return this->healthRate_; }
115 {
return this->healthType_; }
116 const std::string& getHealthTypeAsString(
void)
const;
119 void setHealth(
float health);
120 void setHealthRate(
float speed);
127 { this->healthType_ = type; }
128 void setHealthTypeAsString(
const std::string& type);
131 void initialize(
void);
132 Pawn* carrierToPawnHelper(
void);
148 #endif // _HealthPickup_H__ Means that the HealthPickup increases the users health even above its maximum health and increases th...
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
#define _PickupExport
Definition: PickupPrereqs.h:60
Means that the HealthPickup temporarily increases the users health even above its maximum health...
Declaration of the Pickup class.
Declaration of the Tickable interface.
PickupHealthType getHealthType(void) const
Get the type of HealthPickup, this pickup is.
Definition: HealthPickup.h:114
float maxHealthOverwrite_
Helper to remember with which value we overwrote the maxHealh, to detect if someone else changed it a...
Definition: HealthPickup.h:137
::std::string string
Definition: gtest-port.h:756
The HealthPickup is a Pickupable that can do (dependent upon the parameters) lots of different things...
Definition: HealthPickup.h:85
float getHealthRate(void) const
Get the rate at which the health is transferred to the Pawn, if this pickup has duration type 'contin...
Definition: HealthPickup.h:107
void setHealthType(PickupHealthType type)
Set the health type of this pickup.
Definition: HealthPickup.h:126
static const std::string healthTypeLimited_s
Strings for the health types.
Definition: HealthPickup.h:141
PickupHealthType healthType_
The type of the HealthPickup.
Definition: HealthPickup.h:138
xmlelement
Definition: Super.h:519
static const std::string healthTypeTemporary_s
Definition: HealthPickup.h:142
Means that the HealthPickup only increases the users health to its maximum health.
float maxHealthSave_
Helper to remember what the actual maxHealth of the Pawn was before we changed it.
Definition: HealthPickup.h:136
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
PickupHealthType
Enum for the type of the HealthPickup.
Definition: HealthPickup.h:53
float health_
The health that is transferred to the Pawn.
Definition: HealthPickup.h:134
float getHealth(void) const
Get the health that is transferred to the Pawn upon usage of this pickup.
Definition: HealthPickup.h:101
The Pickup class offers (useful) base functionality for a wide range of pickups.
Definition: Pickup.h:92
static const std::string healthTypePermanent_s
Definition: HealthPickup.h:143
Shared library macros, enums, constants and forward declarations for the questsystem module ...
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
float healthRate_
The rate at which the health is transferred.
Definition: HealthPickup.h:135