![]() |
TrinityCore
|
#include "Player.h"#include "AreaTrigger.h"#include "Account.h"#include "AccountMgr.h"#include "AchievementMgr.h"#include "ArenaTeam.h"#include "ArenaTeamMgr.h"#include "AzeriteEmpoweredItem.h"#include "AzeriteItem.h"#include "Bag.h"#include "Battlefield.h"#include "BattlefieldMgr.h"#include "Battleground.h"#include "BattlegroundMgr.h"#include "BattlegroundPackets.h"#include "BattlegroundScore.h"#include "BattlePetMgr.h"#include "CellImpl.h"#include "Channel.h"#include "ChannelMgr.h"#include "CharacterCache.h"#include "CharacterDatabaseCleaner.h"#include "CharacterTemplateDataStore.h"#include "CharacterPackets.h"#include "CharmInfo.h"#include "Chat.h"#include "ChatPackets.h"#include "ChatTextBuilder.h"#include "CinematicMgr.h"#include "ClubUtils.h"#include "CombatLogPackets.h"#include "CombatPackets.h"#include "Common.h"#include "ConditionMgr.h"#include "Containers.h"#include "CreatureAI.h"#include "DB2Stores.h"#include "DatabaseEnv.h"#include "DisableMgr.h"#include "DuelPackets.h"#include "EquipmentSetPackets.h"#include "Formulas.h"#include "GameEventMgr.h"#include "GameEventSender.h"#include "GameObjectAI.h"#include "Garrison.h"#include "GarrisonMgr.h"#include "GitRevision.h"#include "GossipDef.h"#include "GridNotifiers.h"#include "GridNotifiersImpl.h"#include "Group.h"#include "GroupMgr.h"#include "GameTables.h"#include "GameTime.h"#include "Guild.h"#include "GuildMgr.h"#include "InstanceLockMgr.h"#include "InstancePackets.h"#include "InstanceScript.h"#include "ItemPackets.h"#include "Language.h"#include "LanguageMgr.h"#include "LFGMgr.h"#include "ListUtils.h"#include "Log.h"#include "Loot.h"#include "LootItemStorage.h"#include "LootMgr.h"#include "LootPackets.h"#include "Mail.h"#include "MailPackets.h"#include "MapManager.h"#include "MapUtils.h"#include "MiscPackets.h"#include "MotionMaster.h"#include "MovementPackets.h"#include "ObjectAccessor.h"#include "ObjectMgr.h"#include "Opcodes.h"#include "OutdoorPvP.h"#include "OutdoorPvPMgr.h"#include "PartyPackets.h"#include "Pet.h"#include "PetPackets.h"#include "PoolMgr.h"#include "PetitionMgr.h"#include "PhasingHandler.h"#include "PlayerChoice.h"#include "QueryCallback.h"#include "QueryHolder.h"#include "QueryResultStructured.h"#include "QuestDef.h"#include "QuestMgr.h"#include "QuestObjectiveCriteriaMgr.h"#include "QuestPackets.h"#include "RealmList.h"#include "ReputationMgr.h"#include "RestMgr.h"#include "Scenario.h"#include "SkillDiscovery.h"#include "SocialMgr.h"#include "Spell.h"#include "SpellAuraEffects.h"#include "SpellAuras.h"#include "SpellCastRequest.h"#include "SpellHistory.h"#include "SpellMgr.h"#include "SpellPackets.h"#include "StringConvert.h"#include "TalentPackets.h"#include "TerrainMgr.h"#include "ToyPackets.h"#include "TradeData.h"#include "TraitMgr.h"#include "TraitPacketsCommon.h"#include "TransmogMgr.h"#include "TransmogrificationPackets.h"#include "Transport.h"#include "UpdateData.h"#include "Util.h"#include "Vehicle.h"#include "VehiclePackets.h"#include "Vignette.h"#include "VignettePackets.h"#include "World.h"#include "WorldPacket.h"#include "WorldSession.h"#include "WorldStateMgr.h"#include "WorldStatePackets.h"#include <boost/dynamic_bitset.hpp>#include <G3D/g3dmath.h>#include <sstream>
Include dependency graph for Player.cpp:Go to the source code of this file.
Macros | |
| #define | DEATH_EXPIRE_STEP (5*MINUTE) |
| #define | MAX_DEATH_COUNT 3 |
Enumerations | |
| enum | PlayerSpells { SPELL_EXPERIENCE_ELIMINATED = 206662 } |
Functions | |
| void | DeleteSpellFromAllPlayers (uint32 spellId) |
| float | GetGameTableColumnForCombatRating (GtCombatRatingsEntry const *row, uint32 rating) |
| int | SkillGainChance (uint32 SkillValue, uint32 GrayLevel, uint32 GreenLevel, uint32 YellowLevel) |
| uint8 | GetFishingStepsNeededToLevelUp (uint32 SkillValue) |
| template<typename iterator > | |
| void | SavePlayerCustomizations (CharacterDatabaseTransaction trans, ObjectGuid::LowType guid, Trinity::IteratorPair< iterator > customizations) |
| template<class T > | |
| void | BeforeVisibilityDestroy (T *, Player *) |
| template<> | |
| void | BeforeVisibilityDestroy< Creature > (Creature *t, Player *p) |
| template<> | |
| void | BeforeVisibilityDestroy< Player > (Player *t, Player *p) |
| template<> | |
| void | BeforeVisibilityDestroy< GameObject > (GameObject *t, Player *p) |
| template<typename T > | |
| static bool | ForEachEquipmentSlot (InventoryType inventoryType, bool canDualWield, bool canTitanGrip, T callback) |
Variables | |
| static uint32 | corpseReclaimDelay [MAX_DEATH_COUNT] = { 30, 60, 120 } |
| static constexpr Milliseconds | SPELL_QUEUE_TIME_WINDOW = 400ms |
| #define DEATH_EXPIRE_STEP (5*MINUTE) |
Definition at line 153 of file Player.cpp.
| #define MAX_DEATH_COUNT 3 |
Definition at line 154 of file Player.cpp.
| enum PlayerSpells |
| Enumerator | |
|---|---|
| SPELL_EXPERIENCE_ELIMINATED | |
Definition at line 156 of file Player.cpp.
|
inline |
Definition at line 24500 of file Player.cpp.
|
inline |
Definition at line 24503 of file Player.cpp.
References BaseEntity::GetGUID(), Unit::GetPetGUID(), Unit::GetVignette(), Unit::IsPet(), PET_SAVE_NOT_IN_SLOT, Pet::Remove(), WorldPackets::Vignette::VignetteUpdate::Removed, Player::SendDirectMessage(), Unit::ToPet(), and WorldPackets::Vignette::VignetteUpdate::Write().
Referenced by Player::UpdateVisibilityOf().
|
inline |
Definition at line 24534 of file Player.cpp.
References GameObject::GetVignette(), WorldPackets::Vignette::VignetteUpdate::Removed, Player::SendDirectMessage(), and WorldPackets::Vignette::VignetteUpdate::Write().
Referenced by Player::UpdateVisibilityOf().
|
inline |
Definition at line 24520 of file Player.cpp.
References Unit::GetVignette(), WorldPackets::Vignette::VignetteUpdate::Removed, Player::SendDirectMessage(), and WorldPackets::Vignette::VignetteUpdate::Write().
Referenced by Player::UpdateVisibilityOf().
| void DeleteSpellFromAllPlayers | ( | uint32 | spellId | ) |
Definition at line 2583 of file Player.cpp.
References CHAR_DEL_INVALID_SPELL_SPELLS, CharacterDatabase, and PreparedStatementBase::setUInt32().
Referenced by Player::AddSpell().
|
static |
Definition at line 30804 of file Player.cpp.
References EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_NECK, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, INVTYPE_2HWEAPON, INVTYPE_AMMO, INVTYPE_BAG, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_NON_EQUIP, INVTYPE_QUIVER, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, and INVTYPE_WRISTS.
Referenced by Player::UpdateAverageItemLevelTotal().
Definition at line 5490 of file Player.cpp.
Referenced by Player::UpdateFishingSkill().
|
inline |
Definition at line 5051 of file Player.cpp.
References GtCombatRatingsEntry::Amplify, GtCombatRatingsEntry::ArmorPenetration, GtCombatRatingsEntry::Avoidance, GtCombatRatingsEntry::Block, GtCombatRatingsEntry::Cleave, GtCombatRatingsEntry::Corruption, GtCombatRatingsEntry::CorruptionResistance, CR_AMPLIFY, CR_ARMOR_PENETRATION, CR_AVOIDANCE, CR_BLOCK, CR_CLEAVE, CR_CORRUPTION, CR_CORRUPTION_RESISTANCE, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_LIFESTEAL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_CRIT_TAKEN, CR_RESILIENCE_PLAYER_DAMAGE, CR_SPEED, CR_STURDINESS, CR_UNUSED_12, CR_UNUSED_7, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, GtCombatRatingsEntry::CritMelee, GtCombatRatingsEntry::CritRanged, GtCombatRatingsEntry::CritSpell, GtCombatRatingsEntry::DefenseSkill, GtCombatRatingsEntry::Dodge, GtCombatRatingsEntry::Expertise, GtCombatRatingsEntry::HasteMelee, GtCombatRatingsEntry::HasteRanged, GtCombatRatingsEntry::HasteSpell, GtCombatRatingsEntry::HitMelee, GtCombatRatingsEntry::HitRanged, GtCombatRatingsEntry::HitSpell, GtCombatRatingsEntry::Lifesteal, GtCombatRatingsEntry::Mastery, GtCombatRatingsEntry::Parry, GtCombatRatingsEntry::PvPPower, GtCombatRatingsEntry::ResilienceCritTaken, GtCombatRatingsEntry::ResiliencePlayerDamage, GtCombatRatingsEntry::Speed, GtCombatRatingsEntry::Sturdiness, GtCombatRatingsEntry::Unused12, GtCombatRatingsEntry::Unused7, GtCombatRatingsEntry::VersatilityDamageDone, GtCombatRatingsEntry::VersatilityDamageTaken, and GtCombatRatingsEntry::VersatilityHealingDone.
Referenced by Player::GetRatingMultiplier().
| void SavePlayerCustomizations | ( | CharacterDatabaseTransaction | trans, |
| ObjectGuid::LowType | guid, | ||
| Trinity::IteratorPair< iterator > | customizations | ||
| ) |
Definition at line 20802 of file Player.cpp.
References CHAR_DEL_CHARACTER_CUSTOMIZATIONS, CHAR_INS_CHARACTER_CUSTOMIZATION, CharacterDatabase, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by Player::_SaveCustomizations(), and Player::SaveCustomizations().
|
inline |
Definition at line 5398 of file Player.cpp.
References CONFIG_SKILL_CHANCE_GREEN, CONFIG_SKILL_CHANCE_GREY, CONFIG_SKILL_CHANCE_ORANGE, CONFIG_SKILL_CHANCE_YELLOW, and sWorld.
Referenced by Player::UpdateCraftSkill(), and Player::UpdateGatherSkill().
|
static |
Definition at line 161 of file Player.cpp.
Referenced by Player::BuildPlayerRepop(), Player::CalculateCorpseReclaimDelay(), Player::GetCorpseReclaimDelay(), and Player::KillPlayer().
|
staticconstexpr |
Definition at line 31528 of file Player.cpp.
Referenced by Player::CanRequestSpellCast().