30 #ifndef _WeaponPack_H__ 31 #define _WeaponPack_H__ 48 void fire(
unsigned int weaponmode);
51 void addWeapon(
Weapon * weapon);
52 void removeWeapon(
Weapon * weapon);
53 Weapon * getWeapon(
unsigned int index)
const;
58 {
return this->weapons_.size(); }
63 unsigned int getDesiredWeaponmode(
unsigned int firemode)
const;
66 { this->weaponSystem_ = weaponSystem; this->notifyWeapons(); }
68 {
return this->weaponSystem_; }
69 void updateMunition();
75 std::set<DefaultWeaponmodeLink *>
links_;
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
std::set< DefaultWeaponmodeLink * > links_
Definition: WeaponPack.h:75
size_t getNumWeapons() const
Definition: WeaponPack.h:57
Definition: DefaultWeaponmodeLink.h:38
WeaponSystem * getWeaponSystem() const
Definition: WeaponPack.h:67
An orxonox::Pawn that is able to fire weapons always need to have a WeaponSystem. ...
Definition: WeaponSystem.h:47
std::vector< Weapon * > weapons_
Definition: WeaponPack.h:74
xmlelement
Definition: Super.h:519
void setWeaponSystem(WeaponSystem *weaponSystem)
Definition: WeaponPack.h:65
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
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
Shared library macros, enums, constants and forward declarations for the orxonox library ...
Declaration of BaseObject, the base class of all objects in Orxonox.
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
const std::vector< Weapon * > & getAllWeapons() const
Definition: WeaponPack.h:54
WeaponSystem * weaponSystem_
Definition: WeaponPack.h:76