You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#ifndef OPENMW_MECHANICSHELPER_HPP
|
|
#define OPENMW_MECHANICSHELPER_HPP
|
|
|
|
#include <components/openmw-mp/Base/BaseStructs.hpp>
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
|
namespace MechanicsHelper
|
|
{
|
|
osg::Vec3f getLinearInterpolation(osg::Vec3f start, osg::Vec3f end, float percent);
|
|
|
|
void spawnLeveledCreatures(MWWorld::CellStore* cellStore);
|
|
|
|
mwmp::Attack *getLocalAttack(const MWWorld::Ptr& ptr);
|
|
mwmp::Attack *getDedicatedAttack(const MWWorld::Ptr& ptr);
|
|
|
|
MWWorld::Ptr getPlayerPtr(const mwmp::Target& target);
|
|
|
|
void assignAttackTarget(mwmp::Attack* attack, const MWWorld::Ptr& target);
|
|
void resetAttack(mwmp::Attack* attack);
|
|
|
|
bool getSpellSuccess(std::string spellId, const MWWorld::Ptr& caster);
|
|
|
|
void processAttack(mwmp::Attack attack, const MWWorld::Ptr& attacker);
|
|
|
|
bool doesEffectListContainEffect(const ESM::EffectList& effectList, short effectId, short attributeId = -1, short skillId = -1);
|
|
void unequipItemsByEffect(const MWWorld::Ptr& ptr, short enchantmentType, short effectId, short attributeId = -1, short skillId = -1);
|
|
}
|
|
|
|
|
|
#endif //OPENMW_MECHANICSHELPER_HPP
|