54 void fire(
unsigned int mode);
58 WeaponMode* getWeaponmode(
unsigned int index)
const;
60 {
return weaponmodes_; }
62 {
return weaponmodes_.size(); }
69 { this->weaponPack_ = weaponPack; this->notifyWeaponModes(); }
71 {
return this->weaponPack_; }
78 { this->weaponSlot_ = wSlot; }
80 {
return this->weaponSlot_; }
81 void updateMunition();
85 void notifyWeaponModes();
The a WeaponSlot defines where a Weapon is placed on a pawn.
Definition: WeaponSlot.h:59
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
Timer reloadTimer_
Definition: Weapon.h:91
bool bReloading_
Definition: Weapon.h:92
WeaponPack * getWeaponPack() const
Definition: Weapon.h:70
WeaponPack * weaponPack_
Definition: Weapon.h:87
WeaponSlot * getWeaponSlot() const
Definition: Weapon.h:79
void setWeaponSlot(WeaponSlot *wSlot)
This function is called by a orxonox::WeaponSlot if this Weapon gets attached to the WeaponSlot...
Definition: Weapon.h:77
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.
WeaponSlot * weaponSlot_
Definition: Weapon.h:88
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
unsigned int reloadingWeaponmode_
Definition: Weapon.h:93
Mode
Definition: CorePrereqs.h:102
Definition: WeaponPack.h:40
A Weapon is a StaticEntity that can be attached to a WeaponSlot.
Definition: Weapon.h:46
const std::multimap< unsigned int, WeaponMode * > & getAllWeaponmodes() const
Definition: Weapon.h:59
Shared library macros, enums, constants and forward declarations for the orxonox library ...
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
int getNumWeaponModes() const
Definition: Weapon.h:61
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
void setWeaponPack(WeaponPack *weaponPack)
This function is called by a orxonox::WeaponPack if this Weapon is added to the WeaponPack.
Definition: Weapon.h:68
std::multimap< unsigned int, WeaponMode * > weaponmodes_
Definition: Weapon.h:89