1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:49:55 +00:00
openmw-tes3mp/apps/openmw/mwmp/DedicatedActor.hpp
David Cernat 6316f1e590 [Client] Add ActorList methods for sending ActorAI packets
Additionally, use consistent capitalization for AI-related methods.
2018-07-12 20:48:47 +03:00

42 lines
990 B
C++

#ifndef OPENMW_DEDICATEDACTOR_HPP
#define OPENMW_DEDICATEDACTOR_HPP
#include <components/openmw-mp/Base/BaseActor.hpp>
#include "../mwmechanics/aisequence.hpp"
#include "../mwworld/manualref.hpp"
namespace mwmp
{
class DedicatedActor : public BaseActor
{
public:
DedicatedActor();
virtual ~DedicatedActor();
void update(float dt);
void move(float dt);
void setCell(MWWorld::CellStore *cellStore);
void setMovementSettings();
void setPosition();
void setAnimFlags();
void setStatsDynamic();
void setEquipment();
void setAi();
void playAnimation();
void playSound();
bool hasItem(std::string refId, int charge);
void equipItem(std::string refId, int charge);
MWWorld::Ptr getPtr();
void setPtr(const MWWorld::Ptr& newPtr);
private:
MWWorld::Ptr ptr;
bool hasChangedCell;
};
}
#endif //OPENMW_DEDICATEDACTOR_HPP