Core: more 3.3.5a ports
This commit is contained in:
1 parent
dd02d8b004
commit
2f8205e012
2 files changed
+449
-446
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -154,7 +154,7 @@ enum TalentTree // 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;
|
||||
@@ -389,7 +389,7 @@ typedef std::list<PlayerCreateInfoSkill> 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 +421,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 +483,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); }
|
||||
|
||||
@@ -930,7 +930,7 @@ struct InstancePlayerBind
|
||||
EXTENDED - won't be promoted to EXPIRED at next reset period, will instead be promoted to NORMAL */
|
||||
BindExtensionState extendState;
|
||||
|
||||
InstancePlayerBind() : save(NULL), perm(false), extendState(EXTEND_STATE_NORMAL) { }
|
||||
InstancePlayerBind() : save(nullptr), perm(false), extendState(EXTEND_STATE_NORMAL) { }
|
||||
};
|
||||
|
||||
struct AccessRequirement
|
||||
@@ -1209,12 +1209,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 const& guid, uint32 npcflagmask);
|
||||
bool CanInteractWithQuestGiver(Object* questGiver) const;
|
||||
Creature* GetNPCIfCanInteractWith(ObjectGuid const& guid, uint32 npcflagmask) const;
|
||||
GameObject* GetGameObjectIfCanInteractWith(ObjectGuid const& guid) const;
|
||||
GameObject* GetGameObjectIfCanInteractWith(ObjectGuid const& guid, GameobjectTypes type) const;
|
||||
|
||||
@@ -1225,16 +1225,16 @@ class Player : public Unit, public GridObject<Player>
|
||||
uint8 GetChatTag() const;
|
||||
std::string autoReplyMsg;
|
||||
|
||||
uint32 GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const* newSkin=NULL);
|
||||
uint32 GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const* newSkin=nullptr);
|
||||
|
||||
PlayerSocial *GetSocial() { return m_social; }
|
||||
PlayerSocial *GetSocial() const { return m_social; }
|
||||
|
||||
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; }
|
||||
@@ -1299,8 +1299,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;
|
||||
Item* GetItemByPos(uint16 pos) const;
|
||||
@@ -1318,18 +1318,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, 2); }
|
||||
void SetBankBagSlotCount(uint8 count) { SetByteValue(PLAYER_BYTES_2, 2, 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* itemLimitCategory = NULL) const { return CanTakeMoreSimilarItems(pItem->GetEntry(), pItem->GetCount(), pItem, NULL, itemLimitCategory); }
|
||||
InventoryResult CanTakeMoreSimilarItems(uint32 entry, uint32 count, uint32* itemLimitCategory = NULL) const { return CanTakeMoreSimilarItems(entry, count, NULL, NULL, itemLimitCategory); }
|
||||
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* itemLimitCategory) const;
|
||||
InventoryResult CanEquipNewItem(uint8 slot, uint16& dest, uint32 item, bool swap) const;
|
||||
@@ -1411,9 +1411,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* pItem, Item* pItem2 = NULL, 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* pItem, Item* pItem2 = 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; }
|
||||
@@ -1477,10 +1477,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);
|
||||
@@ -1492,19 +1492,19 @@ class Player : public Unit, public GridObject<Player>
|
||||
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);
|
||||
@@ -1539,7 +1539,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetQuestSlotTimer(uint16 slot, uint32 timer);
|
||||
void SwapQuestSlot(uint16 slot1, uint16 slot2);
|
||||
|
||||
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);
|
||||
@@ -1557,13 +1557,13 @@ class Player : public Unit, public GridObject<Player>
|
||||
void UpdateForQuestWorldObjects();
|
||||
bool CanShareQuest(uint32 questId) const;
|
||||
|
||||
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 msg) const;
|
||||
void SendQuestConfirmAccept(Quest const* quest, Player* pReceiver);
|
||||
void SendPushToPartyResponse(Player* player, uint8 msg);
|
||||
void SendQuestConfirmAccept(Quest const* quest, Player* pReceiver) const;
|
||||
void SendPushToPartyResponse(Player* player, uint8 msg) const;
|
||||
void SendQuestUpdateAddCreatureOrGo(Quest const* quest, ObjectGuid guid, uint32 creatureOrGOIdx, uint16 oldCount, uint16 addCount);
|
||||
void SendQuestUpdateAddPlayer(Quest const* quest, uint16 oldCount, uint16 addCount);
|
||||
|
||||
@@ -1614,7 +1614,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);
|
||||
@@ -1628,8 +1628,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool m_mailsLoaded;
|
||||
bool m_mailsUpdated;
|
||||
|
||||
void SetBindPoint(ObjectGuid guid);
|
||||
void SendTalentWipeConfirm(ObjectGuid guid);
|
||||
void SetBindPoint(ObjectGuid guid) const;
|
||||
void SendTalentWipeConfirm(ObjectGuid guid) const;
|
||||
void ResetPetTalents();
|
||||
void CalcRage(uint32 damage, bool attacker);
|
||||
void RegenerateAll();
|
||||
@@ -1659,13 +1659,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 = 0, uint32 item_count = 0);
|
||||
void SendNewMail();
|
||||
void SendMailResult(uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError = 0, ObjectGuid::LowType item_guid = 0, uint32 item_count = 0) const;
|
||||
void SendNewMail() const;
|
||||
void UpdateNextMailTimeAndUnreads();
|
||||
void AddNewMailDeliverTime(time_t deliver_time);
|
||||
bool IsMailsLoaded() const { return m_mailsLoaded; }
|
||||
@@ -1696,12 +1696,12 @@ class Player : public Unit, public GridObject<Player>
|
||||
void AddMItem(Item* it);
|
||||
bool RemoveMItem(uint32 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
|
||||
TrainerSpellState GetTrainerSpellState(TrainerSpell const* trainer_spell) const;
|
||||
@@ -1709,7 +1709,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 SendInitialSpells();
|
||||
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);
|
||||
@@ -1725,7 +1725,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void RemoveTemporarySpell(uint32 spellId);
|
||||
void SetReputation(uint32 factionentry, uint32 value);
|
||||
uint32 GetReputation(uint32 factionentry) const;
|
||||
std::string GetGuildName();
|
||||
std::string GetGuildName() const;
|
||||
|
||||
// Talents
|
||||
uint32 GetFreeTalentPoints() const { return _talentMgr->FreeTalentPoints; }
|
||||
@@ -1780,18 +1780,18 @@ 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);
|
||||
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()
|
||||
@@ -1811,7 +1811,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool IsResurrectRequested() const { return _resurrectionData != NULL; }
|
||||
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);
|
||||
@@ -1819,7 +1819,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);
|
||||
@@ -1849,7 +1849,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();
|
||||
|
||||
@@ -1916,10 +1916,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;
|
||||
|
||||
@@ -1960,23 +1960,23 @@ class Player : public Unit, public GridObject<Player>
|
||||
|
||||
void BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) const override;
|
||||
void DestroyForPlayer(Player* target, bool onDeath = false) const override;
|
||||
void SendLogXPGain(uint32 GivenXP, Unit* victim, uint32 BonusXP, bool recruitAFriend = false, float group_rate=1.0f);
|
||||
void SendLogXPGain(uint32 GivenXP, Unit* victim, uint32 BonusXP, bool recruitAFriend = false, float group_rate=1.0f) const;
|
||||
|
||||
// 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(bool IsInGroup);
|
||||
void SendRaidDifficulty(bool IsInGroup, int32 forcedDifficulty = -1);
|
||||
void SendDungeonDifficulty(bool IsInGroup) const;
|
||||
void SendRaidDifficulty(bool IsInGroup, int32 forcedDifficulty = -1) const;
|
||||
void ResetInstances(uint8 method, bool isRaid);
|
||||
void SendResetInstanceSuccess(uint32 MapId);
|
||||
void SendResetInstanceFailed(uint32 reason, uint32 MapId);
|
||||
void SendResetFailedNotify(uint32 mapid);
|
||||
void SendResetInstanceSuccess(uint32 MapId) const;
|
||||
void SendResetInstanceFailed(uint32 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); }
|
||||
@@ -2009,9 +2009,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);
|
||||
@@ -2093,8 +2093,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 { return GetUInt32Value(PLAYER_SHIELD_BLOCK); }
|
||||
bool CanParry() const { return m_canParry; }
|
||||
@@ -2126,7 +2126,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void _ApplyAllLevelScaleItemMods(bool apply);
|
||||
void _ApplyItemBonuses(ItemTemplate const* proto, uint8 slot, bool apply, bool only_level_scale = false);
|
||||
void _ApplyWeaponDamage(uint8 slot, ItemTemplate const* proto, ScalingStatValuesEntry const* ssv, 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);
|
||||
@@ -2143,21 +2143,21 @@ class Player : public Unit, public GridObject<Player>
|
||||
void DeleteEquipmentSet(uint64 setGuid);
|
||||
|
||||
void SendInitWorldStates(uint32 zone, uint32 area);
|
||||
void SendUpdateWorldState(uint32 Field, uint32 Value);
|
||||
void SendDirectMessage(WorldPacket* data);
|
||||
void SendBGWeekendWorldStates();
|
||||
void SendBattlefieldWorldStates();
|
||||
void SendUpdateWorldState(uint32 Field, uint32 Value) const;
|
||||
void SendDirectMessage(WorldPacket* data) const;
|
||||
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(uint8 lootSlot);
|
||||
void SendNotifyLootMoneyRemoved();
|
||||
void SendLootError(ObjectGuid guid, LootError error) const;
|
||||
void SendLootRelease(ObjectGuid guid) const;
|
||||
void SendNotifyLootItemRemoved(uint8 lootSlot) const;
|
||||
void SendNotifyLootMoneyRemoved() const;
|
||||
|
||||
/*********************************************************/
|
||||
/*** BATTLEGROUND SYSTEM ***/
|
||||
@@ -2188,7 +2188,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;
|
||||
@@ -2205,10 +2205,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);
|
||||
@@ -2219,13 +2219,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);
|
||||
|
||||
/*********************************************************/
|
||||
@@ -2255,7 +2255,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; }
|
||||
@@ -2288,7 +2288,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);
|
||||
@@ -2305,8 +2305,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;
|
||||
@@ -2318,8 +2318,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 ***/
|
||||
@@ -2357,10 +2357,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(); }
|
||||
@@ -2374,7 +2374,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);
|
||||
@@ -2408,8 +2408,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;
|
||||
@@ -2434,7 +2434,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(); }
|
||||
@@ -2455,8 +2455,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); }
|
||||
@@ -2566,9 +2566,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);
|
||||
@@ -2580,7 +2580,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 ***/
|
||||
|
||||
Reference in new issue
Block a user