2017-04-09 09:28:38 +00:00
|
|
|
#ifndef OPENMW_ACTORAPI_HPP
|
|
|
|
#define OPENMW_ACTORAPI_HPP
|
2017-04-09 09:24:33 +00:00
|
|
|
|
|
|
|
#define ACTORAPI \
|
2017-04-30 14:12:15 +00:00
|
|
|
{"ReadLastActorList", ActorFunctions::ReadLastActorList},\
|
2017-04-30 21:49:58 +00:00
|
|
|
{"ReadCellActorList", ActorFunctions::ReadCellActorList},\
|
2017-04-30 14:12:15 +00:00
|
|
|
{"InitializeActorList", ActorFunctions::InitializeActorList},\
|
2017-04-09 09:24:33 +00:00
|
|
|
\
|
2017-04-10 03:15:03 +00:00
|
|
|
{"GetActorListSize", ActorFunctions::GetActorListSize},\
|
2017-04-30 14:12:15 +00:00
|
|
|
{"GetActorListAction", ActorFunctions::GetActorListAction},\
|
2017-04-09 13:32:44 +00:00
|
|
|
\
|
2017-04-27 11:59:49 +00:00
|
|
|
{"GetActorCell", ActorFunctions::GetActorCell},\
|
2017-04-10 03:15:03 +00:00
|
|
|
{"GetActorRefId", ActorFunctions::GetActorRefId},\
|
|
|
|
{"GetActorRefNumIndex", ActorFunctions::GetActorRefNumIndex},\
|
|
|
|
{"GetActorMpNum", ActorFunctions::GetActorMpNum},\
|
2017-04-28 22:15:19 +00:00
|
|
|
\
|
2017-04-27 21:05:12 +00:00
|
|
|
{"GetActorPosX", ActorFunctions::GetActorPosX},\
|
|
|
|
{"GetActorPosY", ActorFunctions::GetActorPosY},\
|
|
|
|
{"GetActorPosZ", ActorFunctions::GetActorPosZ},\
|
|
|
|
{"GetActorRotX", ActorFunctions::GetActorRotX},\
|
|
|
|
{"GetActorRotY", ActorFunctions::GetActorRotY},\
|
|
|
|
{"GetActorRotZ", ActorFunctions::GetActorRotZ},\
|
2017-04-10 03:15:03 +00:00
|
|
|
\
|
2017-04-28 22:15:19 +00:00
|
|
|
{"GetActorHealthBase", ActorFunctions::GetActorHealthBase},\
|
|
|
|
{"GetActorHealthCurrent", ActorFunctions::GetActorHealthCurrent},\
|
|
|
|
{"GetActorMagickaBase", ActorFunctions::GetActorMagickaBase},\
|
|
|
|
{"GetActorMagickaCurrent", ActorFunctions::GetActorMagickaCurrent},\
|
|
|
|
{"GetActorFatigueBase", ActorFunctions::GetActorFatigueBase},\
|
|
|
|
{"GetActorFatigueCurrent", ActorFunctions::GetActorFatigueCurrent},\
|
|
|
|
\
|
2017-05-01 17:55:36 +00:00
|
|
|
{"DoesActorHavePosition", ActorFunctions::DoesActorHavePosition},\
|
|
|
|
{"DoesActorHaveStatsDynamic", ActorFunctions::DoesActorHaveStatsDynamic},\
|
|
|
|
\
|
2017-04-30 14:12:15 +00:00
|
|
|
{"SetActorListCell", ActorFunctions::SetActorListCell},\
|
|
|
|
{"SetActorListAction", ActorFunctions::SetActorListAction},\
|
2017-04-10 03:15:03 +00:00
|
|
|
\
|
2017-04-28 15:44:01 +00:00
|
|
|
{"SetActorCell", ActorFunctions::SetActorCell},\
|
2017-04-10 03:15:03 +00:00
|
|
|
{"SetActorRefId", ActorFunctions::SetActorRefId},\
|
|
|
|
{"SetActorRefNumIndex", ActorFunctions::SetActorRefNumIndex},\
|
|
|
|
{"SetActorMpNum", ActorFunctions::SetActorMpNum},\
|
2017-04-28 23:10:14 +00:00
|
|
|
\
|
2017-04-28 15:44:01 +00:00
|
|
|
{"SetActorPosition", ActorFunctions::SetActorPosition},\
|
|
|
|
{"SetActorRotation", ActorFunctions::SetActorRotation},\
|
2017-04-10 03:15:03 +00:00
|
|
|
\
|
2017-04-28 23:10:14 +00:00
|
|
|
{"SetActorHealthBase", ActorFunctions::SetActorHealthBase},\
|
|
|
|
{"SetActorHealthCurrent", ActorFunctions::SetActorHealthCurrent},\
|
|
|
|
{"SetActorMagickaBase", ActorFunctions::SetActorMagickaBase},\
|
|
|
|
{"SetActorMagickaCurrent", ActorFunctions::SetActorMagickaCurrent},\
|
|
|
|
{"SetActorFatigueBase", ActorFunctions::SetActorFatigueBase},\
|
|
|
|
{"SetActorFatigueCurrent", ActorFunctions::SetActorFatigueCurrent},\
|
|
|
|
\
|
2017-04-10 03:15:03 +00:00
|
|
|
{"AddActor", ActorFunctions::AddActor},\
|
|
|
|
\
|
|
|
|
{"SendActorList", ActorFunctions::SendActorList},\
|
2017-04-28 15:44:01 +00:00
|
|
|
{"SendActorAuthority", ActorFunctions::SendActorAuthority},\
|
2017-05-01 17:58:40 +00:00
|
|
|
{"SendActorPosition", ActorFunctions::SendActorPosition},\
|
2017-04-28 23:10:14 +00:00
|
|
|
{"SendActorStatsDynamic", ActorFunctions::SendActorStatsDynamic},\
|
2017-04-28 15:44:01 +00:00
|
|
|
{"SendActorCellChange", ActorFunctions::SendActorCellChange}
|
2017-04-09 09:24:33 +00:00
|
|
|
|
|
|
|
class ActorFunctions
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-04-30 14:12:15 +00:00
|
|
|
static void ReadLastActorList() noexcept;
|
2017-04-30 21:49:58 +00:00
|
|
|
static void ReadCellActorList(const char* cellDescription) noexcept;
|
2017-04-30 14:12:15 +00:00
|
|
|
static void InitializeActorList(unsigned short pid) noexcept;
|
2017-04-09 09:24:33 +00:00
|
|
|
|
|
|
|
static unsigned int GetActorListSize() noexcept;
|
2017-04-30 14:12:15 +00:00
|
|
|
static unsigned char GetActorListAction() noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
|
2017-04-27 11:59:49 +00:00
|
|
|
static const char *GetActorCell(unsigned int i) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
static const char *GetActorRefId(unsigned int i) noexcept;
|
|
|
|
static int GetActorRefNumIndex(unsigned int i) noexcept;
|
|
|
|
static int GetActorMpNum(unsigned int i) noexcept;
|
2017-04-28 22:15:19 +00:00
|
|
|
|
2017-04-27 21:05:12 +00:00
|
|
|
static double GetActorPosX(unsigned int i) noexcept;
|
|
|
|
static double GetActorPosY(unsigned int i) noexcept;
|
|
|
|
static double GetActorPosZ(unsigned int i) noexcept;
|
|
|
|
static double GetActorRotX(unsigned int i) noexcept;
|
|
|
|
static double GetActorRotY(unsigned int i) noexcept;
|
|
|
|
static double GetActorRotZ(unsigned int i) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
|
2017-04-28 22:15:19 +00:00
|
|
|
static double GetActorHealthBase(unsigned int i) noexcept;
|
|
|
|
static double GetActorHealthCurrent(unsigned int i) noexcept;
|
|
|
|
static double GetActorMagickaBase(unsigned int i) noexcept;
|
|
|
|
static double GetActorMagickaCurrent(unsigned int i) noexcept;
|
|
|
|
static double GetActorFatigueBase(unsigned int i) noexcept;
|
|
|
|
static double GetActorFatigueCurrent(unsigned int i) noexcept;
|
|
|
|
|
2017-05-01 17:55:36 +00:00
|
|
|
static bool DoesActorHavePosition(unsigned int i) noexcept;
|
|
|
|
static bool DoesActorHaveStatsDynamic(unsigned int i) noexcept;
|
|
|
|
|
2017-04-30 14:12:15 +00:00
|
|
|
static void SetActorListCell(const char* cellDescription) noexcept;
|
|
|
|
static void SetActorListAction(unsigned char action) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
|
2017-04-28 15:44:01 +00:00
|
|
|
static void SetActorCell(const char* cellDescription) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
static void SetActorRefId(const char* refId) noexcept;
|
|
|
|
static void SetActorRefNumIndex(int refNumIndex) noexcept;
|
|
|
|
static void SetActorMpNum(int mpNum) noexcept;
|
2017-04-28 23:10:14 +00:00
|
|
|
|
2017-04-28 15:44:01 +00:00
|
|
|
static void SetActorPosition(double x, double y, double z) noexcept;
|
|
|
|
static void SetActorRotation(double x, double y, double z) noexcept;
|
2017-04-10 03:15:03 +00:00
|
|
|
|
2017-04-28 23:10:14 +00:00
|
|
|
static void SetActorHealthBase(double value) noexcept;
|
|
|
|
static void SetActorHealthCurrent(double value) noexcept;
|
|
|
|
static void SetActorMagickaBase(double value) noexcept;
|
|
|
|
static void SetActorMagickaCurrent(double value) noexcept;
|
|
|
|
static void SetActorFatigueBase(double value) noexcept;
|
|
|
|
static void SetActorFatigueCurrent(double value) noexcept;
|
|
|
|
|
2017-04-10 03:15:03 +00:00
|
|
|
static void AddActor() noexcept;
|
2017-04-09 13:32:44 +00:00
|
|
|
|
|
|
|
static void SendActorList() noexcept;
|
|
|
|
static void SendActorAuthority() noexcept;
|
2017-05-01 17:58:40 +00:00
|
|
|
static void SendActorPosition() noexcept;
|
2017-04-28 23:10:14 +00:00
|
|
|
static void SendActorStatsDynamic() noexcept;
|
2017-04-28 15:44:01 +00:00
|
|
|
static void SendActorCellChange() noexcept;
|
2017-04-09 09:24:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-04-09 09:28:38 +00:00
|
|
|
#endif //OPENMW_ACTORAPI_HPP
|