OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWMechanics::ActionWeapon Class Reference

#include <aicombataction.hpp>

Inheritance diagram for MWMechanics::ActionWeapon:
Collaboration diagram for MWMechanics::ActionWeapon:

Public Member Functions

 ActionWeapon (const MWWorld::Ptr &weapon, const MWWorld::Ptr &ammo=MWWorld::Ptr())
 weapon may be empty for hand-to-hand combat More...
 
virtual void prepare (const MWWorld::Ptr &actor)
 Equips the given weapon. More...
 
virtual float getCombatRange (bool &isRanged) const
 
virtual const ESM::WeapongetWeapon () const
 
- Public Member Functions inherited from MWMechanics::Action
virtual ~Action ()
 
virtual float getActionCooldown ()
 
virtual bool isAttackingOrSpell () const
 
virtual bool isFleeing () const
 

Private Attributes

MWWorld::Ptr mAmmunition
 
MWWorld::Ptr mWeapon
 

Constructor & Destructor Documentation

MWMechanics::ActionWeapon::ActionWeapon ( const MWWorld::Ptr weapon,
const MWWorld::Ptr ammo = MWWorld::Ptr() 
)
inline

weapon may be empty for hand-to-hand combat

Member Function Documentation

float MWMechanics::ActionWeapon::getCombatRange ( bool isRanged) const
virtual

Implements MWMechanics::Action.

Here is the call graph for this function:

const ESM::Weapon * MWMechanics::ActionWeapon::getWeapon ( ) const
virtual

Reimplemented from MWMechanics::Action.

Here is the call graph for this function:

void MWMechanics::ActionWeapon::prepare ( const MWWorld::Ptr actor)
virtual

Equips the given weapon.

Implements MWMechanics::Action.

Here is the call graph for this function:

Member Data Documentation

MWWorld::Ptr MWMechanics::ActionWeapon::mAmmunition
private
MWWorld::Ptr MWMechanics::ActionWeapon::mWeapon
private

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