35 #ifndef _DamageBoostPickup_H__ 36 #define _DamageBoostPickup_H__ 56 virtual void changedUsed(
void);
63 {
return this->duration_; }
65 inline void setDuration(
float duration );
73 {
return this->damageMultiplier_; }
79 void setDamageMultiplier(
float damageMultiplier);
83 void initialize(
void);
84 Pawn* carrierToPawnHelper(
void);
85 SpaceShip* carrierToSpaceShipHelper(
void);
86 void pickupTimerCallback(
void);
99 #endif // _DamageBoostPickup_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.
Declaration of the Tickable interface.
float getDuration(void) const
Get the time the DamagePickup lasts.
Definition: DamageBoostPickup.h:62
Definition: DamageBoostPickup.h:47
xmlelement
Definition: Super.h:519
float olddamageMultiplier_
Helper to remember what the actual damage of the Pawn was before we changed it.
Definition: DamageBoostPickup.h:91
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: SpaceShip.h:90
float duration_
Definition: DamageBoostPickup.h:94
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
The Pickup class offers (useful) base functionality for a wide range of pickups.
Definition: Pickup.h:92
float getDamageMultiplier()
Get Damage multiplier.
Definition: DamageBoostPickup.h:72
float damageMultiplier_
The damage boost that is transferred to the Pawn.
Definition: DamageBoostPickup.h:90
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
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
Timer durationTimer_
Timer.
Definition: DamageBoostPickup.h:93