34 #ifndef _EnergyDrink_H__ 35 #define _EnergyDrink_H__ 59 virtual bool fire(
float* reloadTime)
override;
60 virtual void fire()
override;
69 { this->material_ = material; }
75 {
return this->material_; }
77 void setDelay(
float delay);
83 {
return this->delay_; }
std::string material_
The material.
Definition: EnergyDrink.h:88
Timer delayTimer_
The timer to delay the firing.
Definition: EnergyDrink.h:91
::std::string string
Definition: gtest-port.h:756
Shared library macros, enums, constants and forward declarations for the weapons module ...
float speed_
The speed of the EnergyDrink.
Definition: EnergyDrink.h:89
const std::string & getMaterial() const
Get the material of the EnergyDrink.
Definition: EnergyDrink.h:74
Shoots a can.
Definition: EnergyDrink.h:53
xmlelement
Definition: Super.h:519
A WeaponMode defines how a Weapon is used.
Definition: WeaponMode.h:49
Declaration of the Timer class, used to call functions after a given time-interval.
float getDelay() const
Get the firing delay.
Definition: EnergyDrink.h:82
void setMaterial(const std::string &material)
Set the material of the EnergyDrink.
Definition: EnergyDrink.h:68
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
unsigned int delay(float delay, const std::string &command)
Console-command: Calls another console command after delay seconds (game time).
Definition: Timer.cc:65
bool timerStarted_
Definition: EnergyDrink.h:92
virtual ~EnergyDrink()
Definition: EnergyDrink.h:57
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
float delay_
The firing delay.
Definition: EnergyDrink.h:90
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60