OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Enumerations | Functions
aicombataction.cpp File Reference
#include "aicombataction.hpp"
#include <components/esm/loadench.hpp>
#include <components/esm/loadmgef.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/inventorystore.hpp"
#include "../mwworld/actionequip.hpp"
#include "../mwworld/cellstore.hpp"
#include "npcstats.hpp"
#include "spellcasting.hpp"
#include "combat.hpp"
Include dependency graph for aicombataction.cpp:

Namespaces

 anonymous_namespace{aicombataction.cpp}
 
 MWMechanics
 Game mechanics and NPC-AI.
 

Enumerations

enum  anonymous_namespace{aicombataction.cpp}::RangeTypes { anonymous_namespace{aicombataction.cpp}::Self = 0x1, anonymous_namespace{aicombataction.cpp}::Touch = 0x10, anonymous_namespace{aicombataction.cpp}::Target = 0x100 }
 

Functions

int anonymous_namespace{aicombataction.cpp}::getRangeTypes (const ESM::EffectList &effects)
 
float anonymous_namespace{aicombataction.cpp}::suggestCombatRange (int rangeTypes)
 
int anonymous_namespace{aicombataction.cpp}::numEffectsToCure (const MWWorld::Ptr &actor, int effectFilter=-1)
 
float MWMechanics::ratePotion (const MWWorld::Ptr &item, const MWWorld::Ptr &actor)
 
float MWMechanics::rateWeapon (const MWWorld::Ptr &item, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy, int type, float arrowRating, float boltRating)
 
float MWMechanics::rateSpell (const ESM::Spell *spell, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::rateMagicItem (const MWWorld::Ptr &ptr, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::rateEffect (const ESM::ENAMstruct &effect, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::rateEffects (const ESM::EffectList &list, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
boost::shared_ptr< Action > MWMechanics::prepareNextAction (const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::getDistanceMinusHalfExtents (const MWWorld::Ptr &actor1, const MWWorld::Ptr &actor2, bool minusZDist)
 
float MWMechanics::getMaxAttackDistance (const MWWorld::Ptr &actor)
 
bool MWMechanics::canFight (const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::vanillaRateSpell (const ESM::Spell *spell, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::vanillaRateWeaponAndAmmo (const MWWorld::Ptr &weapon, const MWWorld::Ptr &ammo, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
float MWMechanics::vanillaRateFlee (const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
 
bool MWMechanics::makeFleeDecision (const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy, float antiFleeRating)