2017-04-17 11:37:19 +00:00
|
|
|
#ifndef OPENMW_MECHANICSHELPER_HPP
|
|
|
|
#define OPENMW_MECHANICSHELPER_HPP
|
|
|
|
|
2017-04-17 13:09:07 +00:00
|
|
|
#include <components/openmw-mp/Base/BaseStructs.hpp>
|
|
|
|
|
2017-04-17 11:37:19 +00:00
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class MechanicsHelper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
MechanicsHelper();
|
|
|
|
~MechanicsHelper();
|
|
|
|
|
|
|
|
osg::Vec3f getLinearInterpolation(osg::Vec3f start, osg::Vec3f end, float percent);
|
2017-04-17 13:09:07 +00:00
|
|
|
|
|
|
|
void processAttack(const MWWorld::Ptr& attacker, Attack attack);
|
2017-04-17 11:37:19 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_MECHANICSHELPER_HPP
|