orxonox::WeaponSlot Class Reference

#include <src/orxonox/objects/weaponsystem/WeaponSlot.h>

Inheritance diagram for orxonox::WeaponSlot:

orxonox::StaticEntity orxonox::WorldEntity orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

void attachWeapon (Weapon *weapon)
WeapongetWeapon () const
WeaponSystemgetWeaponSystem () 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

Weaponweapon_
WeaponSystemweaponSystem_


Constructor & Destructor Documentation

orxonox::WeaponSlot::WeaponSlot ( BaseObject creator  ) 

orxonox::WeaponSlot::~WeaponSlot (  )  [virtual]


Member Function Documentation

void orxonox::WeaponSlot::attachWeapon ( Weapon weapon  ) 

Weapon* orxonox::WeaponSlot::getWeapon (  )  const [inline]

WeaponSystem* orxonox::WeaponSlot::getWeaponSystem (  )  const [inline]

bool orxonox::WeaponSlot::isOccupied (  )  const [inline]

void orxonox::WeaponSlot::removeWeapon (  ) 

void orxonox::WeaponSlot::setWeaponSystem ( WeaponSystem weaponSystem  )  [inline]

void orxonox::WeaponSlot::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::WorldEntity.

References SUPER.


Member Data Documentation

Referenced by WeaponSlot(), and ~WeaponSlot().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:23:15 2009 for Orxonox by  doxygen 1.5.6