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

#include <aicombataction.hpp>

Inheritance diagram for MWMechanics::ActionPotion:
Collaboration diagram for MWMechanics::ActionPotion:

Public Member Functions

 ActionPotion (const MWWorld::Ptr &potion)
 
virtual void prepare (const MWWorld::Ptr &actor)
 Drinks the given potion. More...
 
virtual float getCombatRange (bool &isRanged) const
 
virtual bool isAttackingOrSpell () const
 
virtual float getActionCooldown ()
 Since this action has no animation, apply a small cool down for using it. More...
 
- Public Member Functions inherited from MWMechanics::Action
virtual ~Action ()
 
virtual const ESM::WeapongetWeapon () const
 
virtual bool isFleeing () const
 

Public Attributes

MWWorld::Ptr mPotion
 

Constructor & Destructor Documentation

MWMechanics::ActionPotion::ActionPotion ( const MWWorld::Ptr potion)
inline

Member Function Documentation

virtual float MWMechanics::ActionPotion::getActionCooldown ( )
inlinevirtual

Since this action has no animation, apply a small cool down for using it.

Reimplemented from MWMechanics::Action.

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

Implements MWMechanics::Action.

virtual bool MWMechanics::ActionPotion::isAttackingOrSpell ( ) const
inlinevirtual

Reimplemented from MWMechanics::Action.

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

Drinks the given potion.

Implements MWMechanics::Action.

Here is the call graph for this function:

Member Data Documentation

MWWorld::Ptr MWMechanics::ActionPotion::mPotion

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