OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weaponpriority.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_WEAPON_PRIORITY_H
2 #define OPENMW_WEAPON_PRIORITY_H
3 
5 
6 #include "../mwworld/ptr.hpp"
7 
8 namespace MWMechanics
9 {
10  float rateWeapon (const MWWorld::Ptr& item, const MWWorld::Ptr& actor, const MWWorld::Ptr& enemy,
11  int type=-1, float arrowRating=0.f, float boltRating=0.f);
12 
13  float rateAmmo(const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy, MWWorld::Ptr &bestAmmo, ESM::Weapon::Type ammoType);
14  float rateAmmo(const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy, ESM::Weapon::Type ammoType);
15 
16  float vanillaRateWeaponAndAmmo(const MWWorld::Ptr& weapon, const MWWorld::Ptr& ammo, const MWWorld::Ptr& actor, const MWWorld::Ptr& enemy);
17 }
18 
19 #endif
Type
Definition: loadweap.hpp:22
float rateAmmo(const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy, MWWorld::Ptr &bestAmmo, ESM::Weapon::Type ammoType)
Definition: weaponpriority.cpp:128
float vanillaRateWeaponAndAmmo(const MWWorld::Ptr &weapon, const MWWorld::Ptr &ammo, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy)
Definition: weaponpriority.cpp:155
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
float rateWeapon(const MWWorld::Ptr &item, const MWWorld::Ptr &actor, const MWWorld::Ptr &enemy, int type, float arrowRating, float boltRating)
Definition: weaponpriority.cpp:21