57 virtual void fire()
override;
60 { this->numberOfSplits_ = numberOfSplits; }
62 {
return this->numberOfSplits_; }
64 { this->numberOfChilds_ = numberOfChilds; }
66 {
return this->numberOfChilds_; }
68 { this->splitTime_ = splitTime; }
70 {
return this->splitTime_; }
72 { this->spread_ = spread; }
74 {
return this->spread_; }
76 { this->damageReduction_ = (damageReduction >= 0.0f ? damageReduction : 1.0f); }
78 {
return this->damageReduction_; }
A WeaponMode that fires projectiles that may split up into many other projectiles, that may again split up ...
Definition: SplitGun.h:50
void setSpread(float spread)
Definition: SplitGun.h:71
float damageReduction_
Definition: SplitGun.h:86
void setSplitTime(float splitTime)
Definition: SplitGun.h:67
void setNumberOfChilds(int numberOfChilds)
Definition: SplitGun.h:63
Shared library macros, enums, constants and forward declarations for the weapons module ...
float spread_
Definition: SplitGun.h:85
int getNumberOfSplits() const
Definition: SplitGun.h:61
xmlelement
Definition: Super.h:519
A WeaponMode defines how a Weapon is used.
Definition: WeaponMode.h:49
float getDamageReduction() const
Definition: SplitGun.h:77
int numberOfSplits_
Definition: SplitGun.h:82
float splitTime_
Definition: SplitGun.h:84
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
void setNumberOfSplits(int numberOfSplits)
Definition: SplitGun.h:59
Mode
Definition: CorePrereqs.h:102
float getSpread() const
Definition: SplitGun.h:73
int numberOfChilds_
Definition: SplitGun.h:83
float speed_
Definition: SplitGun.h:81
int getNumberOfChilds() const
Definition: SplitGun.h:65
float getSplitTime() const
Definition: SplitGun.h:69
void setDamageReduction(float damageReduction)
Definition: SplitGun.h:75
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60