1 #ifndef OPENMW_MECHANICS_COMBAT_H
2 #define OPENMW_MECHANICS_COMBAT_H
4 #include "../mwworld/ptr.hpp"
10 const bool fromProjectile=
false);
20 const osg::Vec3f& hitPosition,
float attackStrength);
void projectileHit(const MWWorld::Ptr &attacker, const MWWorld::Ptr &victim, MWWorld::Ptr weapon, const MWWorld::Ptr &projectile, const osg::Vec3f &hitPosition, float attackStrength)
Definition: combat.cpp:175
void applyElementalShields(const MWWorld::Ptr &attacker, const MWWorld::Ptr &victim)
Applies damage to attacker based on the victim's elemental shields.
Definition: combat.cpp:292
void adjustWeaponDamage(float &damage, const MWWorld::Ptr &weapon, const MWWorld::Ptr &attacker)
Adjust weapon damage based on its condition. A used weapon will be less effective.
Definition: combat.cpp:368
void resistNormalWeapon(const MWWorld::Ptr &actor, const MWWorld::Ptr &attacker, const MWWorld::Ptr &weapon, float &damage)
Definition: combat.cpp:151
bool blockMeleeAttack(const MWWorld::Ptr &attacker, const MWWorld::Ptr &blocker, const MWWorld::Ptr &weapon, float damage, float attackStrength)
Definition: combat.cpp:55
void applyFatigueLoss(const MWWorld::Ptr &attacker, const MWWorld::Ptr &weapon, float attackStrength)
Apply the fatigue loss incurred by attacking with the given weapon (weapon may be empty = hand-to-han...
Definition: combat.cpp:431
float getHitChance(const MWWorld::Ptr &attacker, const MWWorld::Ptr &victim, int skillValue)
Get the chance (in percent) for attacker to successfully hit victim with a given weapon skill value...
Definition: combat.cpp:253
void getHandToHandDamage(const MWWorld::Ptr &attacker, const MWWorld::Ptr &victim, float &damage, bool &healthdmg, float attackStrength)
Definition: combat.cpp:389
void reduceWeaponCondition(float damage, bool hit, MWWorld::Ptr &weapon, const MWWorld::Ptr &attacker)
Definition: combat.cpp:337
bool applyOnStrikeEnchantment(const MWWorld::Ptr &attacker, const MWWorld::Ptr &victim, const MWWorld::Ptr &object, const osg::Vec3f &hitPosition, const bool fromProjectile)
Definition: combat.cpp:37
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
float getFightDistanceBias(const MWWorld::Ptr &actor1, const MWWorld::Ptr &actor2)
Definition: combat.cpp:454