mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:19:54 +00:00
33 lines
864 B
C++
33 lines
864 B
C++
#ifndef OPENMW_MECHANICSHELPER_HPP
|
|
#define OPENMW_MECHANICSHELPER_HPP
|
|
|
|
#include <components/openmw-mp/Base/BaseStructs.hpp>
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
namespace mwmp
|
|
{
|
|
class MechanicsHelper
|
|
{
|
|
public:
|
|
|
|
MechanicsHelper();
|
|
~MechanicsHelper();
|
|
|
|
osg::Vec3f getLinearInterpolation(osg::Vec3f start, osg::Vec3f end, float percent);
|
|
|
|
void spawnLeveledCreatures(MWWorld::CellStore* cellStore);
|
|
|
|
Attack *getLocalAttack(const MWWorld::Ptr& ptr);
|
|
Attack *getDedicatedAttack(const MWWorld::Ptr& ptr);
|
|
|
|
void assignAttackTarget(Attack* attack, const MWWorld::Ptr& target);
|
|
void resetAttack(Attack* attack);
|
|
|
|
bool getSpellSuccess(std::string spellId, const MWWorld::Ptr& caster);
|
|
|
|
void processAttack(Attack attack, const MWWorld::Ptr& attacker);
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_MECHANICSHELPER_HPP
|