25 virtual void fire()
override;
34 { this->mesh_ = mesh; }
41 {
return this->mesh_; }
48 { this->sound_ = sound; }
55 {
return this->sound_; }
62 { this->material_ = material; }
68 {
return this->material_; }
70 void setDelay(
float delay);
76 {
return this->delay_; }
const std::string & getMesh() const
Get the mesh.
Definition: WagnisGun.h:40
void setSound(const std::string &sound)
Set the sound.
Definition: WagnisGun.h:47
const std::string & getSound() const
Get the sound.
Definition: WagnisGun.h:54
std::string sound_
The sound.
Definition: WagnisGun.h:83
float delay_
The firing delay.
Definition: WagnisGun.h:88
::std::string string
Definition: gtest-port.h:756
Shared library macros, enums, constants and forward declarations for the weapons module ...
void setMesh(const std::string &mesh)
Set the mesh.
Definition: WagnisGun.h:33
void setMaterial(const std::string &material)
Set the material.
Definition: WagnisGun.h:61
std::string material_
The material.
Definition: WagnisGun.h:81
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 speed_
The speed of the fired projectile.
Definition: WagnisGun.h:87
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shoots laser beams.
Definition: WagnisGun.h:19
unsigned int delay(float delay, const std::string &command)
Console-command: Calls another console command after delay seconds (game time).
Definition: Timer.cc:65
Timer delayTimer_
A timer to delay the firing.
Definition: WagnisGun.h:89
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60
float getDelay() const
Get the firing delay.
Definition: WagnisGun.h:75
const std::string & getMaterial() const
Get the material.
Definition: WagnisGun.h:67
std::string mesh_
The mesh.
Definition: WagnisGun.h:82