#include <src/orxonox/objects/weaponsystem/WeaponSlot.h>
Public Member Functions | |
void | attachWeapon (Weapon *weapon) |
Weapon * | getWeapon () const |
WeaponSystem * | getWeaponSystem () const |
bool | isOccupied () const |
void | removeWeapon () |
void | setWeaponSystem (WeaponSystem *weaponSystem) |
WeaponSlot (BaseObject *creator) | |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
XML loading and saving. | |
virtual | ~WeaponSlot () |
Private Attributes | |
Weapon * | weapon_ |
WeaponSystem * | weaponSystem_ |
orxonox::WeaponSlot::WeaponSlot | ( | BaseObject * | creator | ) |
References RegisterObject, orxonox::Synchronisable::setObjectMode(), weapon_, and weaponSystem_.
orxonox::WeaponSlot::~WeaponSlot | ( | ) | [virtual] |
void orxonox::WeaponSlot::attachWeapon | ( | Weapon * | weapon | ) |
Weapon* orxonox::WeaponSlot::getWeapon | ( | ) | const [inline] |
Referenced by orxonox::WeaponSystem::removeWeaponSlot(), and orxonox::WeaponSystem::swapWeaponSlots().
WeaponSystem* orxonox::WeaponSlot::getWeaponSystem | ( | ) | const [inline] |
bool orxonox::WeaponSlot::isOccupied | ( | ) | const [inline] |
void orxonox::WeaponSlot::removeWeapon | ( | ) |
References orxonox::Weapon::setWeaponSlot(), and weapon_.
Referenced by attachWeapon(), and orxonox::WeaponSystem::removeWeaponPack().
void orxonox::WeaponSlot::setWeaponSystem | ( | WeaponSystem * | weaponSystem | ) | [inline] |
Referenced by orxonox::WeaponSystem::addWeaponSlot().
void orxonox::WeaponSlot::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
XML loading and saving.
xmlelement | The XML-element | |
loading | Loading (true) or saving (false) |
Reimplemented from orxonox::WorldEntity.
References SUPER.
Weapon* orxonox::WeaponSlot::weapon_ [private] |
Referenced by attachWeapon(), removeWeapon(), and WeaponSlot().
WeaponSystem* orxonox::WeaponSlot::weaponSystem_ [private] |
Referenced by WeaponSlot(), and ~WeaponSlot().