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.
43 lines
990 B
C++
43 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
|