[Server] Use clearer function name for checking creature name display

This commit is contained in:
David Cernat 2018-04-13 17:28:28 +03:00
parent a01fc577f1
commit db41704e52
2 changed files with 25 additions and 25 deletions

View file

@ -100,7 +100,7 @@ const char *MechanicsFunctions::GetCreatureRefId(unsigned short pid) noexcept
return player->creatureRefId.c_str(); return player->creatureRefId.c_str();
} }
bool MechanicsFunctions::DisplaysCreatureName(unsigned short pid) noexcept bool MechanicsFunctions::GetCreatureNameDisplayState(unsigned short pid) noexcept
{ {
Player *player; Player *player;
GET_PLAYER(pid, player, 0); GET_PLAYER(pid, player, 0);

View file

@ -6,34 +6,34 @@
#define MECHANICSAPI \ #define MECHANICSAPI \
{"GetMiscellaneousChangeType", MechanicsFunctions::GetMiscellaneousChangeType},\ {"GetMiscellaneousChangeType", MechanicsFunctions::GetMiscellaneousChangeType},\
\ \
{"GetMarkCell", MechanicsFunctions::GetMarkCell},\ {"GetMarkCell", MechanicsFunctions::GetMarkCell},\
{"GetMarkPosX", MechanicsFunctions::GetMarkPosX},\ {"GetMarkPosX", MechanicsFunctions::GetMarkPosX},\
{"GetMarkPosY", MechanicsFunctions::GetMarkPosY},\ {"GetMarkPosY", MechanicsFunctions::GetMarkPosY},\
{"GetMarkPosZ", MechanicsFunctions::GetMarkPosZ},\ {"GetMarkPosZ", MechanicsFunctions::GetMarkPosZ},\
{"GetMarkRotX", MechanicsFunctions::GetMarkRotX},\ {"GetMarkRotX", MechanicsFunctions::GetMarkRotX},\
{"GetMarkRotZ", MechanicsFunctions::GetMarkRotZ},\ {"GetMarkRotZ", MechanicsFunctions::GetMarkRotZ},\
{"GetSelectedSpellId", MechanicsFunctions::GetSelectedSpellId},\ {"GetSelectedSpellId", MechanicsFunctions::GetSelectedSpellId},\
\ \
{"GetScale", MechanicsFunctions::GetScale},\ {"GetScale", MechanicsFunctions::GetScale},\
{"IsWerewolf", MechanicsFunctions::IsWerewolf},\ {"IsWerewolf", MechanicsFunctions::IsWerewolf},\
{"GetCreatureRefId", MechanicsFunctions::GetCreatureRefId},\ {"GetCreatureRefId", MechanicsFunctions::GetCreatureRefId},\
{"DisplaysCreatureName", MechanicsFunctions::DisplaysCreatureName},\ {"GetCreatureNameDisplayState", MechanicsFunctions::GetCreatureNameDisplayState},\
\ \
{"SetMarkCell", MechanicsFunctions::SetMarkCell},\ {"SetMarkCell", MechanicsFunctions::SetMarkCell},\
{"SetMarkPos", MechanicsFunctions::SetMarkPos},\ {"SetMarkPos", MechanicsFunctions::SetMarkPos},\
{"SetMarkRot", MechanicsFunctions::SetMarkRot},\ {"SetMarkRot", MechanicsFunctions::SetMarkRot},\
{"SetSelectedSpellId", MechanicsFunctions::SetSelectedSpellId},\ {"SetSelectedSpellId", MechanicsFunctions::SetSelectedSpellId},\
\ \
{"SetScale", MechanicsFunctions::SetScale},\ {"SetScale", MechanicsFunctions::SetScale},\
{"SetWerewolfState", MechanicsFunctions::SetWerewolfState},\ {"SetWerewolfState", MechanicsFunctions::SetWerewolfState},\
{"SetCreatureRefId", MechanicsFunctions::SetCreatureRefId},\ {"SetCreatureRefId", MechanicsFunctions::SetCreatureRefId},\
\ \
{"SendMarkLocation", MechanicsFunctions::SendMarkLocation},\ {"SendMarkLocation", MechanicsFunctions::SendMarkLocation},\
{"SendSelectedSpell", MechanicsFunctions::SendSelectedSpell},\ {"SendSelectedSpell", MechanicsFunctions::SendSelectedSpell},\
{"SendShapeshift", MechanicsFunctions::SendShapeshift},\ {"SendShapeshift", MechanicsFunctions::SendShapeshift},\
\ \
{"Jail", MechanicsFunctions::Jail},\ {"Jail", MechanicsFunctions::Jail},\
{"Resurrect", MechanicsFunctions::Resurrect} {"Resurrect", MechanicsFunctions::Resurrect}
class MechanicsFunctions class MechanicsFunctions
{ {
@ -138,7 +138,7 @@ public:
* \param pid The player ID. * \param pid The player ID.
* \return The creature name display state. * \return The creature name display state.
*/ */
static bool DisplaysCreatureName(unsigned short pid) noexcept; static bool GetCreatureNameDisplayState(unsigned short pid) noexcept;
/** /**
* \brief Set the Mark cell of a player. * \brief Set the Mark cell of a player.