2017-04-05 21:48:20 +00:00
|
|
|
#ifndef OPENMW_DEDICATEDACTOR_HPP
|
|
|
|
#define OPENMW_DEDICATEDACTOR_HPP
|
|
|
|
|
|
|
|
#include <components/openmw-mp/Base/BaseActor.hpp>
|
2017-04-06 12:11:51 +00:00
|
|
|
#include "../mwmechanics/aisequence.hpp"
|
2017-04-06 08:46:56 +00:00
|
|
|
#include "../mwworld/manualref.hpp"
|
2017-04-05 21:48:20 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class DedicatedActor : public BaseActor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
DedicatedActor();
|
|
|
|
virtual ~DedicatedActor();
|
|
|
|
|
2017-04-07 12:51:34 +00:00
|
|
|
void update(float dt);
|
|
|
|
void move(float dt);
|
2017-05-01 18:55:50 +00:00
|
|
|
void setCell(MWWorld::CellStore *cellStore);
|
2017-05-05 04:37:09 +00:00
|
|
|
void setMovementSettings();
|
2017-05-01 18:55:50 +00:00
|
|
|
void setPosition();
|
2017-04-16 13:42:07 +00:00
|
|
|
void setAnimFlags();
|
2017-05-26 01:37:49 +00:00
|
|
|
void setStatsDynamic();
|
|
|
|
void setEquipment();
|
2018-07-12 17:48:47 +00:00
|
|
|
void setAi();
|
2017-04-16 13:42:07 +00:00
|
|
|
void playAnimation();
|
2017-04-16 15:43:13 +00:00
|
|
|
void playSound();
|
2017-04-06 08:46:56 +00:00
|
|
|
|
2017-06-09 01:58:56 +00:00
|
|
|
bool hasItem(std::string refId, int charge);
|
|
|
|
void equipItem(std::string refId, int charge);
|
|
|
|
|
2017-04-06 08:46:56 +00:00
|
|
|
MWWorld::Ptr getPtr();
|
|
|
|
void setPtr(const MWWorld::Ptr& newPtr);
|
|
|
|
|
|
|
|
private:
|
|
|
|
MWWorld::Ptr ptr;
|
2017-04-23 18:28:23 +00:00
|
|
|
|
|
|
|
bool hasChangedCell;
|
2017-04-05 21:48:20 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_DEDICATEDACTOR_HPP
|