35 #ifndef _SpeedPickup_H__ 36 #define _SpeedPickup_H__ 82 virtual void changedUsed(
void);
89 {
return this->duration_; }
95 {
return this->speedAdd_; }
101 {
return this->speedMultiply_; }
104 void pickupTimerCallback(
void);
106 void setDuration(
float duration);
107 void setSpeedAdd(
float speedAdd);
108 void setSpeedMultiply(
float speedMultiply);
111 void initialize(
void);
112 SpaceShip* carrierToSpaceShipHelper(
void);
122 #endif // _SpeedPickup_H__ #define _PickupExport
Definition: PickupPrereqs.h:60
A Pickup which can manipulate the Speed of a Pawn.
Definition: SpeedPickup.h:73
Declaration of the Pickup class.
float getSpeedAdd(void) const
Get the value that is added to the speed of the Pawn.
Definition: SpeedPickup.h:94
Timer durationTimer_
Timer.
Definition: SpeedPickup.h:114
xmlelement
Definition: Super.h:519
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: SpaceShip.h:90
float getSpeedMultiply(void) const
Get the factor by wich the speed of the Pawn is multplied.
Definition: SpeedPickup.h:100
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
Shared library macros, enums, constants and forward declarations for the questsystem module ...
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
float getDuration(void) const
Get the duration, the time the SpeedPickup is active.
Definition: SpeedPickup.h:88
float speedMultiply_
The factor by which the speed of the Pawn is multiplied.
Definition: SpeedPickup.h:118
float duration_
The time in seconds for which the SpeedPickup stays active.
Definition: SpeedPickup.h:116
float speedAdd_
The value that is added to the speed of the Pawn.
Definition: SpeedPickup.h:117