Core/Player:
* sprinkle some consts * replace some C-style casts by static_cast * replace NULL by nullptr
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -30,7 +30,6 @@
|
||||
#include "SpellMgr.h"
|
||||
#include "SpellHistory.h"
|
||||
#include "Unit.h"
|
||||
#include "Opcodes.h"
|
||||
#include "WorldSession.h"
|
||||
#include "PlayerTaxi.h"
|
||||
#include "TradeData.h"
|
||||
@@ -159,7 +158,7 @@ enum TalentSpecialization // talent tabs
|
||||
// Spell modifier (used for modify other spells)
|
||||
struct SpellModifier
|
||||
{
|
||||
SpellModifier(Aura* _ownerAura = NULL) : op(SPELLMOD_DAMAGE), type(SPELLMOD_FLAT), charges(0), value(0), mask(), spellId(0), ownerAura(_ownerAura) { }
|
||||
SpellModifier(Aura* _ownerAura = nullptr) : op(SPELLMOD_DAMAGE), type(SPELLMOD_FLAT), charges(0), value(0), mask(), spellId(0), ownerAura(_ownerAura) { }
|
||||
SpellModOp op : 8;
|
||||
SpellModType type : 8;
|
||||
int16 charges : 16;
|
||||
@@ -247,7 +246,7 @@ struct CUFProfile
|
||||
|
||||
CUFProfile(const std::string& name, uint16 frameHeight, uint16 frameWidth, uint8 sortBy, uint8 healthText, uint32 boolOptions,
|
||||
uint8 topPoint, uint8 bottomPoint, uint8 leftPoint, uint16 topOffset, uint16 bottomOffset, uint16 leftOffset)
|
||||
: ProfileName(name), BoolOptions((int)boolOptions)
|
||||
: ProfileName(name), BoolOptions(int(boolOptions))
|
||||
{
|
||||
FrameHeight = frameHeight;
|
||||
FrameWidth = frameWidth;
|
||||
@@ -389,7 +388,7 @@ typedef std::list<SkillRaceClassInfoEntry const*> PlayerCreateInfoSkills;
|
||||
struct PlayerInfo
|
||||
{
|
||||
// existence checked by displayId != 0
|
||||
PlayerInfo() : mapId(0), areaId(0), positionX(0.0f), positionY(0.0f), positionZ(0.0f), orientation(0.0f), displayId_m(0), displayId_f(0), levelInfo(NULL) { }
|
||||
PlayerInfo() : mapId(0), areaId(0), positionX(0.0f), positionY(0.0f), positionZ(0.0f), orientation(0.0f), displayId_m(0), displayId_f(0), levelInfo(nullptr) { }
|
||||
|
||||
uint32 mapId;
|
||||
uint32 areaId;
|
||||
@@ -421,7 +420,7 @@ struct PvPInfo
|
||||
|
||||
struct DuelInfo
|
||||
{
|
||||
DuelInfo() : initiator(NULL), opponent(NULL), startTimer(0), startTime(0), outOfBound(0), isMounted(false) { }
|
||||
DuelInfo() : initiator(nullptr), opponent(nullptr), startTimer(0), startTime(0), outOfBound(0), isMounted(false) { }
|
||||
|
||||
Player* initiator;
|
||||
Player* opponent;
|
||||
@@ -483,7 +482,7 @@ struct Runes
|
||||
|
||||
struct EnchantDuration
|
||||
{
|
||||
EnchantDuration() : item(NULL), slot(MAX_ENCHANTMENT_SLOT), leftduration(0) { }
|
||||
EnchantDuration() : item(nullptr), slot(MAX_ENCHANTMENT_SLOT), leftduration(0) { }
|
||||
EnchantDuration(Item* _item, EnchantmentSlot _slot, uint32 _leftduration) : item(_item), slot(_slot),
|
||||
leftduration(_leftduration){ ASSERT(item); }
|
||||
|
||||
@@ -1013,7 +1012,7 @@ struct InstancePlayerBind
|
||||
/* permanent PlayerInstanceBinds are created in Raid/Heroic instances for players
|
||||
that aren't already permanently bound when they are inside when a boss is killed
|
||||
or when they enter an instance that the group leader is permanently bound to. */
|
||||
InstancePlayerBind() : save(NULL), perm(false) { }
|
||||
InstancePlayerBind() : save(nullptr), perm(false) { }
|
||||
};
|
||||
|
||||
struct AccessRequirement
|
||||
@@ -1214,12 +1213,12 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void SendInitialPacketsBeforeAddToMap();
|
||||
void SendInitialPacketsAfterAddToMap();
|
||||
void SendSupercededSpell(uint32 oldSpell, uint32 newSpell);
|
||||
void SendTransferAborted(uint32 mapid, TransferAbortReason reason, uint8 arg = 0);
|
||||
void SendInstanceResetWarning(uint32 mapid, Difficulty difficulty, uint32 time, bool welcome);
|
||||
void SendSupercededSpell(uint32 oldSpell, uint32 newSpell) const;
|
||||
void SendTransferAborted(uint32 mapid, TransferAbortReason reason, uint8 arg = 0) const;
|
||||
void SendInstanceResetWarning(uint32 mapid, Difficulty difficulty, uint32 time, bool welcome) const;
|
||||
|
||||
bool CanInteractWithQuestGiver(Object* questGiver);
|
||||
Creature* GetNPCIfCanInteractWith(ObjectGuid guid, uint64 npcflagmask);
|
||||
bool CanInteractWithQuestGiver(Object* questGiver) const;
|
||||
Creature* GetNPCIfCanInteractWith(ObjectGuid guid, uint64 npcflagmask) const;
|
||||
GameObject* GetGameObjectIfCanInteractWith(ObjectGuid guid, GameobjectTypes type) const;
|
||||
|
||||
void ToggleAFK();
|
||||
@@ -1229,17 +1228,17 @@ class Player : public Unit, public GridObject<Player>
|
||||
uint8 GetChatFlags() const;
|
||||
std::string autoReplyMsg;
|
||||
|
||||
uint32 GetBarberShopCost(BarberShopStyleEntry const* newHairStyle, uint8 newHairColor, BarberShopStyleEntry const* newFacialHair, BarberShopStyleEntry const* newSkin = nullptr, BarberShopStyleEntry const* newFace = nullptr);
|
||||
uint32 GetBarberShopCost(BarberShopStyleEntry const* newHairStyle, uint8 newHairColor, BarberShopStyleEntry const* newFacialHair, BarberShopStyleEntry const* newSkin = nullptr, BarberShopStyleEntry const* newFace = nullptr) const;
|
||||
|
||||
PlayerSocial* GetSocial() { return m_social; }
|
||||
PlayerSocial* GetSocial() const { return m_social; }
|
||||
void RemoveSocial();
|
||||
|
||||
PlayerTaxi m_taxi;
|
||||
void InitTaxiNodesForLevel() { m_taxi.InitTaxiNodesForLevel(getRace(), getClass(), getLevel()); }
|
||||
bool ActivateTaxiPathTo(std::vector<uint32> const& nodes, Creature* npc = NULL, uint32 spellid = 0);
|
||||
bool ActivateTaxiPathTo(std::vector<uint32> const& nodes, Creature* npc = nullptr, uint32 spellid = 0);
|
||||
bool ActivateTaxiPathTo(uint32 taxi_path_id, uint32 spellid = 0);
|
||||
void CleanupAfterTaxiFlight();
|
||||
void ContinueTaxiFlight();
|
||||
void ContinueTaxiFlight() const;
|
||||
// mount_id can be used in scripting calls
|
||||
bool isAcceptWhispers() const { return (m_ExtraFlags & PLAYER_EXTRA_ACCEPT_WHISPERS) != 0; }
|
||||
void SetAcceptWhispers(bool on) { if (on) m_ExtraFlags |= PLAYER_EXTRA_ACCEPT_WHISPERS; else m_ExtraFlags &= ~PLAYER_EXTRA_ACCEPT_WHISPERS; }
|
||||
@@ -1303,8 +1302,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetVirtualItemSlot(uint8 i, Item* item);
|
||||
void SetSheath(SheathState sheathed) override; // overwrite Unit version
|
||||
uint8 FindEquipSlot(ItemTemplate const* proto, uint32 slot, bool swap) const;
|
||||
uint32 GetItemCount(uint32 item, bool inBankAlso = false, Item* skipItem = NULL) const;
|
||||
uint32 GetItemCountWithLimitCategory(uint32 limitCategory, Item* skipItem = NULL) const;
|
||||
uint32 GetItemCount(uint32 item, bool inBankAlso = false, Item* skipItem = nullptr) const;
|
||||
uint32 GetItemCountWithLimitCategory(uint32 limitCategory, Item* skipItem = nullptr) const;
|
||||
Item* GetItemByGuid(ObjectGuid guid) const;
|
||||
Item* GetItemByEntry(uint32 entry) const;
|
||||
std::vector<Item*> GetItemListByEntry(uint32 entry, bool inBankAlso = false) const;
|
||||
@@ -1323,18 +1322,18 @@ class Player : public Unit, public GridObject<Player>
|
||||
static bool IsBagPos(uint16 pos);
|
||||
static bool IsBankPos(uint16 pos) { return IsBankPos(pos >> 8, pos & 255); }
|
||||
static bool IsBankPos(uint8 bag, uint8 slot);
|
||||
bool IsValidPos(uint16 pos, bool explicit_pos) { return IsValidPos(pos >> 8, pos & 255, explicit_pos); }
|
||||
bool IsValidPos(uint8 bag, uint8 slot, bool explicit_pos);
|
||||
bool IsValidPos(uint16 pos, bool explicit_pos) const { return IsValidPos(pos >> 8, pos & 255, explicit_pos); }
|
||||
bool IsValidPos(uint8 bag, uint8 slot, bool explicit_pos) const;
|
||||
uint8 GetBankBagSlotCount() const { return GetByteValue(PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_BANK_BAG_SLOTS); }
|
||||
void SetBankBagSlotCount(uint8 count) { SetByteValue(PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_BANK_BAG_SLOTS, count); }
|
||||
bool HasItemCount(uint32 item, uint32 count = 1, bool inBankAlso = false) const;
|
||||
bool HasItemFitToSpellRequirements(SpellInfo const* spellInfo, Item const* ignoreItem = NULL) const;
|
||||
bool HasItemFitToSpellRequirements(SpellInfo const* spellInfo, Item const* ignoreItem = nullptr) const;
|
||||
bool CanNoReagentCast(SpellInfo const* spellInfo) const;
|
||||
bool HasItemOrGemWithIdEquipped(uint32 item, uint32 count, uint8 except_slot = NULL_SLOT) const;
|
||||
bool HasItemOrGemWithLimitCategoryEquipped(uint32 limitCategory, uint32 count, uint8 except_slot = NULL_SLOT) const;
|
||||
InventoryResult CanTakeMoreSimilarItems(Item* pItem, uint32* offendingItemId = nullptr) const { return CanTakeMoreSimilarItems(pItem->GetEntry(), pItem->GetCount(), pItem, nullptr, offendingItemId); }
|
||||
InventoryResult CanTakeMoreSimilarItems(uint32 entry, uint32 count, uint32* offendingItemId = nullptr) const { return CanTakeMoreSimilarItems(entry, count, nullptr, nullptr, offendingItemId); }
|
||||
InventoryResult CanStoreNewItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, uint32 item, uint32 count, uint32* no_space_count = NULL) const;
|
||||
InventoryResult CanStoreNewItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, uint32 item, uint32 count, uint32* no_space_count = nullptr) const;
|
||||
InventoryResult CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, Item* pItem, bool swap = false) const;
|
||||
InventoryResult CanStoreItems(Item** items, int count, uint32* offendingItemId) const;
|
||||
InventoryResult CanEquipNewItem(uint8 slot, uint16& dest, uint32 item, bool swap) const;
|
||||
@@ -1360,7 +1359,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void StoreLootItem(uint8 lootSlot, Loot* loot);
|
||||
|
||||
InventoryResult CanTakeMoreSimilarItems(uint32 entry, uint32 count, Item* pItem, uint32* no_space_count = nullptr, uint32* offendingItemId = nullptr) const;
|
||||
InventoryResult CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, uint32 entry, uint32 count, Item* pItem = NULL, bool swap = false, uint32* no_space_count = NULL) const;
|
||||
InventoryResult CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& dest, uint32 entry, uint32 count, Item* pItem = nullptr, bool swap = false, uint32* no_space_count = nullptr) const;
|
||||
|
||||
void AddRefundReference(ObjectGuid it);
|
||||
void DeleteRefundReference(ObjectGuid it);
|
||||
@@ -1415,9 +1414,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
void AddItemToBuyBackSlot(Item* pItem);
|
||||
Item* GetItemFromBuyBackSlot(uint32 slot);
|
||||
void RemoveItemFromBuyBackSlot(uint32 slot, bool del);
|
||||
void SendEquipError(InventoryResult msg, Item* item1 = nullptr, Item* item2 = nullptr, uint32 itemId = 0);
|
||||
void SendBuyError(BuyResult msg, Creature* creature, uint32 item, uint32 param);
|
||||
void SendSellError(SellResult msg, Creature* creature, ObjectGuid guid);
|
||||
void SendEquipError(InventoryResult msg, Item* item1 = nullptr, Item* item2 = nullptr, uint32 itemId = 0) const;
|
||||
void SendBuyError(BuyResult msg, Creature* creature, uint32 item, uint32 param) const;
|
||||
void SendSellError(SellResult msg, Creature* creature, ObjectGuid guid) const;
|
||||
void AddWeaponProficiency(uint32 newflag) { m_WeaponProficiency |= newflag; }
|
||||
void AddArmorProficiency(uint32 newflag) { m_ArmorProficiency |= newflag; }
|
||||
uint32 GetWeaponProficiency() const { return m_WeaponProficiency; }
|
||||
@@ -1479,10 +1478,10 @@ class Player : public Unit, public GridObject<Player>
|
||||
void PrepareQuestMenu(ObjectGuid guid);
|
||||
void SendPreparedQuest(ObjectGuid guid);
|
||||
bool IsActiveQuest(uint32 quest_id) const;
|
||||
Quest const* GetNextQuest(ObjectGuid guid, Quest const* quest);
|
||||
Quest const* GetNextQuest(ObjectGuid guid, Quest const* quest) const;
|
||||
bool CanSeeStartQuest(Quest const* quest);
|
||||
bool CanTakeQuest(Quest const* quest, bool msg);
|
||||
bool CanAddQuest(Quest const* quest, bool msg);
|
||||
bool CanAddQuest(Quest const* quest, bool msg) const;
|
||||
bool CanCompleteQuest(uint32 quest_id);
|
||||
bool CanCompleteRepeatableQuest(Quest const* quest);
|
||||
bool CanRewardQuest(Quest const* quest, bool msg);
|
||||
@@ -1491,24 +1490,24 @@ class Player : public Unit, public GridObject<Player>
|
||||
void AddQuest(Quest const* quest, Object* questGiver);
|
||||
void CompleteQuest(uint32 quest_id);
|
||||
void IncompleteQuest(uint32 quest_id);
|
||||
uint32 GetQuestMoneyReward(Quest const* quest);
|
||||
uint32 GetQuestMoneyReward(Quest const* quest) const;
|
||||
uint32 GetQuestXPReward(Quest const* quest);
|
||||
void RewardQuest(Quest const* quest, uint32 reward, Object* questGiver, bool announce = true);
|
||||
void FailQuest(uint32 quest_id);
|
||||
bool SatisfyQuestSkill(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestLevel(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestLog(bool msg);
|
||||
bool SatisfyQuestLevel(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestLog(bool msg) const;
|
||||
bool SatisfyQuestPreviousQuest(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestClass(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestRace(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestRace(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestReputation(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestStatus(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestStatus(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestConditions(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestTimed(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestTimed(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestExclusiveGroup(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestNextChain(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestNextChain(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestPrevChain(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestDay(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestDay(Quest const* qInfo, bool msg) const;
|
||||
bool SatisfyQuestWeek(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestMonth(Quest const* qInfo, bool msg);
|
||||
bool SatisfyQuestSeasonal(Quest const* qInfo, bool msg);
|
||||
@@ -1544,7 +1543,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SwapQuestSlot(uint16 slot1, uint16 slot2);
|
||||
void SetQuestCompletedBit(uint32 questBit, bool completed);
|
||||
|
||||
uint16 GetReqKillOrCastCurrentCount(uint32 quest_id, int32 entry);
|
||||
uint16 GetReqKillOrCastCurrentCount(uint32 quest_id, int32 entry) const;
|
||||
void AreaExploredOrEventHappens(uint32 questId);
|
||||
void GroupEventHappens(uint32 questId, WorldObject const* pEventObject);
|
||||
void ItemAddedQuestCheck(uint32 entry, uint32 count);
|
||||
@@ -1563,15 +1562,15 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
int32 GetQuestObjectiveData(Quest const* quest, int8 storageIndex) const;
|
||||
void SetQuestObjectiveData(Quest const* quest, int8 storageIndex, int32 data);
|
||||
void SendQuestComplete(Quest const* quest);
|
||||
void SendQuestReward(Quest const* quest, uint32 XP);
|
||||
void SendQuestFailed(uint32 questID, InventoryResult reason = EQUIP_ERR_OK);
|
||||
void SendQuestTimerFailed(uint32 questID);
|
||||
void SendQuestComplete(Quest const* quest) const;
|
||||
void SendQuestReward(Quest const* quest, uint32 XP) const;
|
||||
void SendQuestFailed(uint32 questID, InventoryResult reason = EQUIP_ERR_OK) const;
|
||||
void SendQuestTimerFailed(uint32 questID) const;
|
||||
void SendCanTakeQuestResponse(QuestFailedReason reason, bool sendErrorMessage = true, std::string reasonText = "") const;
|
||||
void SendQuestConfirmAccept(Quest const* quest, Player* receiver);
|
||||
void SendPushToPartyResponse(Player* player, QuestPushReason reason);
|
||||
void SendQuestUpdateAddCredit(Quest const* quest, ObjectGuid guid, QuestObjective const& obj, uint16 count);
|
||||
void SendQuestUpdateAddPlayer(Quest const* quest, uint16 newCount, uint32 required);
|
||||
void SendQuestConfirmAccept(Quest const* quest, Player* receiver) const;
|
||||
void SendPushToPartyResponse(Player* player, QuestPushReason reason) const;
|
||||
void SendQuestUpdateAddCredit(Quest const* quest, ObjectGuid guid, QuestObjective const& obj, uint16 count) const;
|
||||
void SendQuestUpdateAddPlayer(Quest const* quest, uint16 newCount, uint32 required) const;
|
||||
|
||||
ObjectGuid GetDivider() const { return m_divider; }
|
||||
void SetDivider(ObjectGuid guid) { m_divider = guid; }
|
||||
@@ -1620,7 +1619,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void SaveToDB(bool create = false);
|
||||
void SaveInventoryAndGoldToDB(SQLTransaction& trans); // fast save function for item/money cheating preventing
|
||||
void SaveGoldToDB(SQLTransaction& trans);
|
||||
void SaveGoldToDB(SQLTransaction& trans) const;
|
||||
|
||||
static void SetUInt32ValueInArray(Tokenizer& data, uint16 index, uint32 value);
|
||||
static void SetFloatValueInArray(Tokenizer& data, uint16 index, float value);
|
||||
@@ -1633,8 +1632,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool m_mailsLoaded;
|
||||
bool m_mailsUpdated;
|
||||
|
||||
void SetBindPoint(ObjectGuid guid);
|
||||
void SendRespecWipeConfirm(ObjectGuid const& guid, uint32 cost);
|
||||
void SetBindPoint(ObjectGuid guid) const;
|
||||
void SendRespecWipeConfirm(ObjectGuid const& guid, uint32 cost) const;
|
||||
void ResetPetTalents();
|
||||
void CalcRage(uint32 damage, bool attacker);
|
||||
void RegenerateAll();
|
||||
@@ -1664,13 +1663,13 @@ class Player : public Unit, public GridObject<Player>
|
||||
uint8 GetComboPoints() const { return m_comboPoints; }
|
||||
ObjectGuid GetComboTarget() const { return m_comboTarget; }
|
||||
|
||||
void AddComboPoints(Unit* target, int8 count, Spell* spell = NULL);
|
||||
void AddComboPoints(Unit* target, int8 count, Spell* spell = nullptr);
|
||||
void GainSpellComboPoints(int8 count);
|
||||
void ClearComboPoints();
|
||||
void SendComboPoints();
|
||||
|
||||
void SendMailResult(uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError = 0, ObjectGuid::LowType item_guid = UI64LIT(0), uint32 item_count = 0);
|
||||
void SendNewMail();
|
||||
void SendMailResult(uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError = 0, ObjectGuid::LowType item_guid = UI64LIT(0), uint32 item_count = 0) const;
|
||||
void SendNewMail() const;
|
||||
void UpdateNextMailTimeAndUnreads();
|
||||
void AddNewMailDeliverTime(time_t deliver_time);
|
||||
bool IsMailsLoaded() const { return m_mailsLoaded; }
|
||||
@@ -1700,12 +1699,12 @@ class Player : public Unit, public GridObject<Player>
|
||||
void AddMItem(Item* it);
|
||||
bool RemoveMItem(ObjectGuid::LowType id);
|
||||
|
||||
void SendOnCancelExpectedVehicleRideAura();
|
||||
void SendOnCancelExpectedVehicleRideAura() const;
|
||||
void PetSpellInitialize();
|
||||
void CharmSpellInitialize();
|
||||
void PossessSpellInitialize();
|
||||
void VehicleSpellInitialize();
|
||||
void SendRemoveControlBar();
|
||||
void SendRemoveControlBar() const;
|
||||
bool HasSpell(uint32 spell) const override;
|
||||
bool HasActiveSpell(uint32 spell) const; // show in spellbook
|
||||
SpellInfo const* GetCastSpellInfo(SpellInfo const* spellInfo) const override;
|
||||
@@ -1714,7 +1713,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool IsNeedCastPassiveSpellAtLearn(SpellInfo const* spellInfo) const;
|
||||
bool IsCurrentSpecMasterySpell(SpellInfo const* spellInfo) const;
|
||||
|
||||
void SendProficiency(ItemClass itemClass, uint32 itemSubclassMask);
|
||||
void SendProficiency(ItemClass itemClass, uint32 itemSubclassMask) const;
|
||||
void SendKnownSpells();
|
||||
bool AddSpell(uint32 spellId, bool active, bool learning, bool dependent, bool disabled, bool loading = false, uint32 fromSkill = 0);
|
||||
void LearnSpell(uint32 spell_id, bool dependent, uint32 fromSkill = 0);
|
||||
@@ -1732,11 +1731,11 @@ class Player : public Unit, public GridObject<Player>
|
||||
void RemoveOverrideSpell(uint32 overridenSpellId, uint32 newSpellId);
|
||||
void LearnSpecializationSpells();
|
||||
void RemoveSpecializationSpells();
|
||||
void SendSpellCategoryCooldowns();
|
||||
void SendSpellCategoryCooldowns() const;
|
||||
|
||||
void SetReputation(uint32 factionentry, uint32 value);
|
||||
uint32 GetReputation(uint32 factionentry) const;
|
||||
std::string GetGuildName();
|
||||
std::string GetGuildName() const;
|
||||
|
||||
// Loot Spec
|
||||
void SetLootSpecId(uint32 id) { SetUInt32Value(PLAYER_FIELD_LOOT_SPEC_ID, id); }
|
||||
@@ -1790,24 +1789,24 @@ class Player : public Unit, public GridObject<Player>
|
||||
PlayerSpellMap & GetSpellMap() { return m_spells; }
|
||||
|
||||
void AddSpellMod(SpellModifier* mod, bool apply);
|
||||
bool IsAffectedBySpellmod(SpellInfo const* spellInfo, SpellModifier* mod, Spell* spell = NULL);
|
||||
template <class T> T ApplySpellMod(uint32 spellId, SpellModOp op, T &basevalue, Spell* spell = NULL);
|
||||
bool IsAffectedBySpellmod(SpellInfo const* spellInfo, SpellModifier* mod, Spell* spell = nullptr) const;
|
||||
template <class T> T ApplySpellMod(uint32 spellId, SpellModOp op, T &basevalue, Spell* spell = nullptr);
|
||||
void RemoveSpellMods(Spell* spell);
|
||||
void RestoreSpellMods(Spell* spell, uint32 ownerAuraId = 0, Aura* aura = NULL);
|
||||
void RestoreAllSpellMods(uint32 ownerAuraId = 0, Aura* aura = NULL);
|
||||
void RestoreSpellMods(Spell* spell, uint32 ownerAuraId = 0, Aura* aura = nullptr);
|
||||
void RestoreAllSpellMods(uint32 ownerAuraId = 0, Aura* aura = nullptr);
|
||||
void DropModCharge(SpellModifier* mod, Spell* spell);
|
||||
void SetSpellModTakingSpell(Spell* spell, bool apply);
|
||||
|
||||
void RemoveArenaSpellCooldowns(bool removeActivePetCooldowns = false);
|
||||
uint32 GetLastPotionId() const { return m_lastPotionId; }
|
||||
void SetLastPotionId(uint32 item_id) { m_lastPotionId = item_id; }
|
||||
void UpdatePotionCooldown(Spell* spell = NULL);
|
||||
void UpdatePotionCooldown(Spell* spell = nullptr);
|
||||
|
||||
void SetResurrectRequestData(Unit* caster, uint32 health, uint32 mana, uint32 appliedAura);
|
||||
void ClearResurrectRequestData()
|
||||
{
|
||||
delete _resurrectionData;
|
||||
_resurrectionData = NULL;
|
||||
_resurrectionData = nullptr;
|
||||
}
|
||||
|
||||
bool IsResurrectRequestedBy(ObjectGuid guid) const
|
||||
@@ -1818,10 +1817,10 @@ class Player : public Unit, public GridObject<Player>
|
||||
return !_resurrectionData->GUID.IsEmpty() && _resurrectionData->GUID == guid;
|
||||
}
|
||||
|
||||
bool IsResurrectRequested() const { return _resurrectionData != NULL; }
|
||||
bool IsResurrectRequested() const { return _resurrectionData != nullptr; }
|
||||
void ResurrectUsingRequestData();
|
||||
|
||||
uint8 getCinematic() { return m_cinematic; }
|
||||
uint8 getCinematic() const { return m_cinematic; }
|
||||
void setCinematic(uint8 cine) { m_cinematic = cine; }
|
||||
|
||||
ActionButton* AddActionButton(uint8 button, uint32 action, uint8 type);
|
||||
@@ -1829,7 +1828,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
ActionButton const* GetActionButton(uint8 button);
|
||||
void SendInitialActionButtons() const { SendActionButtons(0); }
|
||||
void SendActionButtons(uint32 state) const;
|
||||
bool IsActionButtonDataValid(uint8 button, uint32 action, uint8 type);
|
||||
bool IsActionButtonDataValid(uint8 button, uint32 action, uint8 type) const;
|
||||
|
||||
PvPInfo pvpInfo;
|
||||
void UpdatePvPState(bool onlyFFA = false);
|
||||
@@ -1856,7 +1855,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool IsInSameGroupWith(Player const* p) const;
|
||||
bool IsInSameRaidWith(Player const* p) const;
|
||||
void UninviteFromGroup();
|
||||
static void RemoveFromGroup(Group* group, ObjectGuid guid, RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker = ObjectGuid::Empty, const char* reason = NULL);
|
||||
static void RemoveFromGroup(Group* group, ObjectGuid guid, RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker = ObjectGuid::Empty, const char* reason = nullptr);
|
||||
void RemoveFromGroup(RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT) { RemoveFromGroup(GetGroup(), GetGUID(), method); }
|
||||
void SendUpdateToOutOfRangeGroupMembers();
|
||||
|
||||
@@ -1895,7 +1894,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
static Difficulty CheckLoadedDungeonDifficultyID(Difficulty difficulty);
|
||||
static Difficulty CheckLoadedRaidDifficultyID(Difficulty difficulty);
|
||||
static Difficulty CheckLoadedLegacyRaidDifficultyID(Difficulty difficulty);
|
||||
void SendRaidGroupOnlyMessage(RaidGroupReason reason, int32 delay);
|
||||
void SendRaidGroupOnlyMessage(RaidGroupReason reason, int32 delay) const;
|
||||
|
||||
bool UpdateSkill(uint32 skill_id, uint32 step);
|
||||
bool UpdateSkillPro(uint16 skillId, int32 chance, uint32 step);
|
||||
@@ -1927,10 +1926,10 @@ class Player : public Unit, public GridObject<Player>
|
||||
void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) override;
|
||||
|
||||
inline void RecalculateRating(CombatRating cr) { ApplyRatingMod(cr, 0, true);}
|
||||
float GetMeleeCritFromAgility();
|
||||
void GetDodgeFromAgility(float &diminishing, float &nondiminishing);
|
||||
float GetSpellCritFromIntellect();
|
||||
float OCTRegenMPPerSpirit();
|
||||
float GetMeleeCritFromAgility() const;
|
||||
void GetDodgeFromAgility(float &diminishing, float &nondiminishing) const;
|
||||
float GetSpellCritFromIntellect() const;
|
||||
float OCTRegenMPPerSpirit() const;
|
||||
float GetRatingMultiplier(CombatRating cr) const;
|
||||
float GetRatingBonusValue(CombatRating cr) const;
|
||||
|
||||
@@ -1971,23 +1970,22 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) const override;
|
||||
void DestroyForPlayer(Player* target) const override;
|
||||
void SendLogXPGain(uint32 givenXP, Unit* victim, uint32 bonusXP, bool recruitAFriend = false, float groupBonus = 1.0f);
|
||||
|
||||
// notifiers
|
||||
void SendAttackSwingCantAttack();
|
||||
void SendAttackSwingCancelAttack();
|
||||
void SendAttackSwingDeadTarget();
|
||||
void SendAttackSwingNotInRange();
|
||||
void SendAttackSwingBadFacingAttack();
|
||||
void SendAttackSwingCantAttack() const;
|
||||
void SendAttackSwingCancelAttack() const;
|
||||
void SendAttackSwingDeadTarget() const;
|
||||
void SendAttackSwingNotInRange() const;
|
||||
void SendAttackSwingBadFacingAttack() const;
|
||||
void SendAutoRepeatCancel(Unit* target);
|
||||
void SendExplorationExperience(uint32 Area, uint32 Experience);
|
||||
void SendExplorationExperience(uint32 Area, uint32 Experience) const;
|
||||
|
||||
void SendDungeonDifficulty(int32 forcedDifficulty = -1);
|
||||
void SendRaidDifficulty(bool legacy, int32 forcedDifficulty = -1);
|
||||
void SendDungeonDifficulty(int32 forcedDifficulty = -1) const;
|
||||
void SendRaidDifficulty(bool legacy, int32 forcedDifficulty = -1) const;
|
||||
void ResetInstances(uint8 method, bool isRaid, bool isLegacy);
|
||||
void SendResetInstanceSuccess(uint32 MapId);
|
||||
void SendResetInstanceFailed(ResetFailedReason reason, uint32 mapID);
|
||||
void SendResetFailedNotify(uint32 mapid);
|
||||
void SendResetInstanceSuccess(uint32 MapId) const;
|
||||
void SendResetInstanceFailed(ResetFailedReason reason, uint32 mapID) const;
|
||||
void SendResetFailedNotify(uint32 mapid) const;
|
||||
|
||||
virtual bool UpdatePosition(float x, float y, float z, float orientation, bool teleport = false) override;
|
||||
bool UpdatePosition(const Position &pos, bool teleport = false) { return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport); }
|
||||
@@ -2020,9 +2018,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void UpdateMirrorTimers();
|
||||
void StopMirrorTimers();
|
||||
bool IsMirrorTimerActive(MirrorTimerType type);
|
||||
bool IsMirrorTimerActive(MirrorTimerType type) const;
|
||||
|
||||
bool CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, AreaTableEntry const* zone);
|
||||
bool CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, AreaTableEntry const* zone) const;
|
||||
|
||||
void JoinedChannel(Channel* c);
|
||||
void LeftChannel(Channel* c);
|
||||
@@ -2100,8 +2098,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
uint32 GetDeathTimer() const { return m_deathTimer; }
|
||||
uint32 GetCorpseReclaimDelay(bool pvp) const;
|
||||
void UpdateCorpseReclaimDelay();
|
||||
int32 CalculateCorpseReclaimDelay(bool load = false);
|
||||
void SendCorpseReclaimDelay(uint32 delay);
|
||||
int32 CalculateCorpseReclaimDelay(bool load = false) const;
|
||||
void SendCorpseReclaimDelay(uint32 delay) const;
|
||||
|
||||
uint32 GetBlockPercent() const override { return GetUInt32Value(PLAYER_SHIELD_BLOCK); }
|
||||
bool CanParry() const { return m_canParry; }
|
||||
@@ -2133,7 +2131,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void _ApplyAllLevelScaleItemMods(bool apply);
|
||||
void _ApplyItemBonuses(Item* item, uint8 slot, bool apply);
|
||||
void _ApplyWeaponDamage(uint8 slot, Item* item, bool apply);
|
||||
bool EnchantmentFitsRequirements(uint32 enchantmentcondition, int8 slot);
|
||||
bool EnchantmentFitsRequirements(uint32 enchantmentcondition, int8 slot) const;
|
||||
void ToggleMetaGemsActive(uint8 exceptslot, bool apply);
|
||||
void CorrectMetaGemEnchants(uint8 slot, bool apply);
|
||||
void InitDataForForm(bool reapplyMods = false);
|
||||
@@ -2152,21 +2150,21 @@ class Player : public Unit, public GridObject<Player>
|
||||
void DeleteEquipmentSet(uint64 id);
|
||||
|
||||
void SendInitWorldStates(uint32 zone, uint32 area);
|
||||
void SendUpdateWorldState(uint32 variable, uint32 value, bool hidden = false);
|
||||
void SendUpdateWorldState(uint32 variable, uint32 value, bool hidden = false) const;
|
||||
void SendDirectMessage(WorldPacket const* data) const;
|
||||
void SendBGWeekendWorldStates();
|
||||
void SendBattlefieldWorldStates();
|
||||
void SendBGWeekendWorldStates() const;
|
||||
void SendBattlefieldWorldStates() const;
|
||||
|
||||
void SendAurasForTarget(Unit* target);
|
||||
void SendAurasForTarget(Unit* target) const;
|
||||
|
||||
PlayerMenu* PlayerTalkClass;
|
||||
std::vector<ItemSetEffect*> ItemSetEff;
|
||||
|
||||
void SendLoot(ObjectGuid guid, LootType loot_type);
|
||||
void SendLootError(ObjectGuid guid, LootError error);
|
||||
void SendLootRelease(ObjectGuid guid);
|
||||
void SendNotifyLootItemRemoved(ObjectGuid owner, ObjectGuid lootObj, uint8 lootSlot);
|
||||
void SendNotifyLootMoneyRemoved(ObjectGuid lootObj);
|
||||
void SendLootError(ObjectGuid guid, LootError error) const;
|
||||
void SendLootRelease(ObjectGuid guid) const;
|
||||
void SendNotifyLootItemRemoved(ObjectGuid owner, ObjectGuid lootObj, uint8 lootSlot) const;
|
||||
void SendNotifyLootMoneyRemoved(ObjectGuid lootObj) const;
|
||||
|
||||
/*********************************************************/
|
||||
/*** BATTLEGROUND SYSTEM ***/
|
||||
@@ -2187,7 +2185,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void SetBattlegroundId(uint32 val, BattlegroundTypeId bgTypeId);
|
||||
uint32 AddBattlegroundQueueId(BattlegroundQueueTypeId val);
|
||||
bool HasFreeBattlegroundQueueId();
|
||||
bool HasFreeBattlegroundQueueId() const;
|
||||
void RemoveBattlegroundQueueId(BattlegroundQueueTypeId val);
|
||||
void SetInviteForBattlegroundQueueType(BattlegroundQueueTypeId bgQueueTypeId, uint32 instanceId);
|
||||
bool IsInvitedForBattlegroundInstance(uint32 instanceId) const;
|
||||
@@ -2204,10 +2202,10 @@ class Player : public Unit, public GridObject<Player>
|
||||
void ClearAfkReports() { m_bgData.bgAfkReporter.clear(); }
|
||||
|
||||
bool GetBGAccessByLevel(BattlegroundTypeId bgTypeId) const;
|
||||
bool isTotalImmunity();
|
||||
bool CanUseBattlegroundObject(GameObject* gameobject);
|
||||
bool isTotalImmune();
|
||||
bool CanCaptureTowerPoint();
|
||||
bool isTotalImmunity() const;
|
||||
bool CanUseBattlegroundObject(GameObject* gameobject) const;
|
||||
bool isTotalImmune() const;
|
||||
bool CanCaptureTowerPoint() const;
|
||||
|
||||
bool GetRandomWinner() const { return m_IsBGRandomWinner; }
|
||||
void SetRandomWinner(bool isWinner);
|
||||
@@ -2218,13 +2216,13 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
OutdoorPvP* GetOutdoorPvP() const;
|
||||
// returns true if the player is in active state for outdoor pvp objective capturing, false otherwise
|
||||
bool IsOutdoorPvPActive();
|
||||
bool IsOutdoorPvPActive() const;
|
||||
|
||||
/*********************************************************/
|
||||
/*** ENVIROMENTAL SYSTEM ***/
|
||||
/*********************************************************/
|
||||
|
||||
bool IsImmuneToEnvironmentalDamage();
|
||||
bool IsImmuneToEnvironmentalDamage() const;
|
||||
uint32 EnvironmentalDamage(EnviromentalDamage type, uint32 damage);
|
||||
|
||||
/*********************************************************/
|
||||
@@ -2253,7 +2251,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetViewpoint(WorldObject* target, bool apply);
|
||||
WorldObject* GetViewpoint() const;
|
||||
void StopCastingCharm();
|
||||
void StopCastingBindSight();
|
||||
void StopCastingBindSight() const;
|
||||
|
||||
uint32 GetSaveTimer() const { return m_nextSave; }
|
||||
void SetSaveTimer(uint32 timer) { m_nextSave = timer; }
|
||||
@@ -2267,7 +2265,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SaveRecallPosition();
|
||||
|
||||
void SetHomebind(WorldLocation const& loc, uint32 areaId);
|
||||
void SendBindPointUpdate();
|
||||
void SendBindPointUpdate() const;
|
||||
|
||||
// Homebind coordinates
|
||||
uint32 m_homebindMapId;
|
||||
@@ -2287,7 +2285,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
bool IsVisibleGloballyFor(Player const* player) const;
|
||||
|
||||
void SendInitialVisiblePackets(Unit* target);
|
||||
void SendInitialVisiblePackets(Unit* target) const;
|
||||
void UpdateObjectVisibility(bool forced = true) override;
|
||||
void UpdateVisibilityForPlayer();
|
||||
void UpdateVisibilityOf(WorldObject* target);
|
||||
@@ -2304,8 +2302,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetAtLoginFlag(AtLoginFlags f) { m_atLoginFlags |= f; }
|
||||
void RemoveAtLoginFlag(AtLoginFlags flags, bool persist = false);
|
||||
|
||||
bool isUsingLfg();
|
||||
bool inRandomLfgDungeon();
|
||||
bool isUsingLfg() const;
|
||||
bool inRandomLfgDungeon() const;
|
||||
|
||||
typedef std::set<uint32> DFQuestsDoneList;
|
||||
DFQuestsDoneList m_DFQuests;
|
||||
@@ -2317,8 +2315,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
void ResummonPetTemporaryUnSummonedIfAny();
|
||||
bool IsPetNeedBeTemporaryUnsummoned() const;
|
||||
|
||||
void SendCinematicStart(uint32 CinematicSequenceId);
|
||||
void SendMovieStart(uint32 MovieId);
|
||||
void SendCinematicStart(uint32 CinematicSequenceId) const;
|
||||
void SendMovieStart(uint32 MovieId) const;
|
||||
|
||||
/*********************************************************/
|
||||
/*** INSTANCE SYSTEM ***/
|
||||
@@ -2356,10 +2354,10 @@ class Player : public Unit, public GridObject<Player>
|
||||
/*** GROUP SYSTEM ***/
|
||||
/*********************************************************/
|
||||
|
||||
Group* GetGroupInvite() { return m_groupInvite; }
|
||||
Group* GetGroupInvite() const { return m_groupInvite; }
|
||||
void SetGroupInvite(Group* group) { m_groupInvite = group; }
|
||||
Group* GetGroup() { return m_group.getTarget(); }
|
||||
const Group* GetGroup() const { return (const Group*)m_group.getTarget(); }
|
||||
Group const* GetGroup() const { return const_cast<Group const*>(m_group.getTarget()); }
|
||||
GroupReference& GetGroupRef() { return m_group; }
|
||||
void SetGroup(Group* group, int8 subgroup = -1);
|
||||
uint8 GetSubGroup() const { return m_group.getSubGroup(); }
|
||||
@@ -2372,7 +2370,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
// Battleground / Battlefield Group System
|
||||
void SetBattlegroundOrBattlefieldRaid(Group* group, int8 subgroup = -1);
|
||||
void RemoveFromBattlegroundOrBattlefieldRaid();
|
||||
Group* GetOriginalGroup() { return m_originalGroup.getTarget(); }
|
||||
Group* GetOriginalGroup() const { return m_originalGroup.getTarget(); }
|
||||
GroupReference& GetOriginalGroupRef() { return m_originalGroup; }
|
||||
uint8 GetOriginalSubGroup() const { return m_originalGroup.getSubGroup(); }
|
||||
void SetOriginalGroup(Group* group, int8 subgroup = -1);
|
||||
@@ -2406,8 +2404,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
void RemoveRunesByAuraEffect(AuraEffect const* aura);
|
||||
void RestoreBaseRune(uint8 index);
|
||||
void ConvertRune(uint8 index, RuneType newType);
|
||||
void ResyncRunes(uint8 count);
|
||||
void AddRunePower(uint8 index);
|
||||
void ResyncRunes(uint8 count) const;
|
||||
void AddRunePower(uint8 index) const;
|
||||
void InitRunes();
|
||||
|
||||
void SendRespondInspectAchievements(Player* player) const;
|
||||
@@ -2431,7 +2429,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetChampioningFaction(uint32 faction) { m_ChampioningFaction = faction; }
|
||||
Spell* m_spellModTakingSpell;
|
||||
|
||||
float GetAverageItemLevel();
|
||||
float GetAverageItemLevel() const;
|
||||
bool isDebugAreaTriggers;
|
||||
|
||||
void ClearWhisperWhiteList() { WhisperList.clear(); }
|
||||
@@ -2452,8 +2450,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
//! Return collision height sent to client
|
||||
float GetCollisionHeight(bool mounted) const;
|
||||
|
||||
std::string GetMapAreaAndZoneString();
|
||||
std::string GetCoordsMapAreaAndZoneString();
|
||||
std::string GetMapAreaAndZoneString() const;
|
||||
std::string GetCoordsMapAreaAndZoneString() const;
|
||||
|
||||
// Void Storage
|
||||
bool IsVoidStorageUnlocked() const { return HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_VOID_UNLOCKED); }
|
||||
@@ -2471,7 +2469,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void CreateGarrison(uint32 garrSiteId);
|
||||
void DeleteGarrison();
|
||||
Garrison* GetGarrison() { return _garrison.get(); }
|
||||
Garrison* GetGarrison() const { return _garrison.get(); }
|
||||
|
||||
bool IsAdvancedCombatLoggingEnabled() const { return _advancedCombatLoggingEnabled; }
|
||||
void SetAdvancedCombatLogging(bool enabled) { _advancedCombatLoggingEnabled = enabled; }
|
||||
@@ -2573,9 +2571,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
void _SaveSpells(SQLTransaction& trans);
|
||||
void _SaveEquipmentSets(SQLTransaction& trans);
|
||||
void _SaveBGData(SQLTransaction& trans);
|
||||
void _SaveGlyphs(SQLTransaction& trans);
|
||||
void _SaveGlyphs(SQLTransaction& trans) const;
|
||||
void _SaveTalents(SQLTransaction& trans);
|
||||
void _SaveStats(SQLTransaction& trans);
|
||||
void _SaveStats(SQLTransaction& trans) const;
|
||||
void _SaveInstanceTimeRestrictions(SQLTransaction& trans);
|
||||
void _SaveCurrency(SQLTransaction& trans);
|
||||
void _SaveCUFProfiles(SQLTransaction& trans);
|
||||
@@ -2587,7 +2585,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SendMirrorTimer(MirrorTimerType Type, uint32 MaxValue, uint32 CurrentValue, int32 Regen);
|
||||
void StopMirrorTimer(MirrorTimerType Type);
|
||||
void HandleDrowning(uint32 time_diff);
|
||||
int32 getMaxTimer(MirrorTimerType timer);
|
||||
int32 getMaxTimer(MirrorTimerType timer) const;
|
||||
|
||||
/*********************************************************/
|
||||
/*** HONOR SYSTEM ***/
|
||||
@@ -2629,7 +2627,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
uint32 GetCurrencyTotalCap(CurrencyTypesEntry const* currency) const;
|
||||
|
||||
/// Updates weekly conquest point cap (dynamic cap)
|
||||
void UpdateConquestCurrencyCap(uint32 currency);
|
||||
void UpdateConquestCurrencyCap(uint32 currency) const;
|
||||
|
||||
VoidStorageItem* _voidStorageItems[VOID_STORAGE_MAX_SLOT];
|
||||
|
||||
@@ -2761,7 +2759,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
GuidSet m_refundableItems;
|
||||
void SendRefundInfo(Item* item);
|
||||
void RefundItem(Item* item);
|
||||
void SendItemRefundResult(Item* item, ItemExtendedCostEntry const* iece, uint8 error);
|
||||
void SendItemRefundResult(Item* item, ItemExtendedCostEntry const* iece, uint8 error) const;
|
||||
|
||||
void AdjustQuestReqItemCount(Quest const* quest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user