![]() |
TrinityCore
|
#include <Pet.h>
Inheritance diagram for Pet:Public Member Functions | |
| Pet (Player *owner, PetType type=MAX_PET_TYPE) | |
| virtual | ~Pet () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| float | GetNativeObjectScale () const override |
| void | SetDisplayId (uint32 modelId, bool setNative=false) override |
| PetType | getPetType () const |
| void | setPetType (PetType type) |
| bool | isControlled () const |
| bool | isTemporarySummoned () const |
| bool | IsPermanentPetFor (Player *owner) const |
| bool | Create (ObjectGuid::LowType guidlow, Map *map, uint32 Entry, uint32 pet_number) |
| bool | CreateBaseAtCreature (Creature *creature) |
| bool | CreateBaseAtCreatureInfo (CreatureTemplate const *cinfo, Unit *owner) |
| bool | CreateBaseAtTamed (CreatureTemplate const *cinfo, Map *map) |
| void | SendNewlyTamed (bool playPingFx=true) const |
| bool | LoadPetFromDB (Player *owner, uint32 petEntry, uint32 petnumber, bool current, Optional< PetSaveMode > forcedSlot={}) |
| bool | IsLoading () const override |
| void | SavePetToDB (PetSaveMode mode) |
| void | FillPetInfo (PetStable::PetInfo *petInfo, Optional< ReactStates > forcedReactState={}) const |
| void | Remove (PetSaveMode mode, bool returnreagent=false) |
| void | setDeathState (DeathState s) override |
| void | Update (uint32 diff) override |
| uint8 | GetPetAutoSpellSize () const override |
| uint32 | GetPetAutoSpellOnPos (uint8 pos) const override |
| void | GivePetXP (uint32 xp) |
| void | GivePetLevel (uint8 level) |
| void | SetPetExperience (uint32 xp) |
| void | SetPetNextLevelExperience (uint32 xp) |
| void | SynchronizeLevelWithOwner () |
| bool | HaveInDiet (ItemTemplate const *item) const |
| void | SetDuration (int32 dur) |
| int32 | GetDuration () const |
| void | ToggleAutocast (SpellInfo const *spellInfo, bool apply) |
| bool | HasSpell (uint32 spell) const override |
| void | LearnPetPassives () |
| void | CastPetAuras (bool current) |
| void | CastPetAura (PetAura const *aura) |
| bool | IsPetAura (Aura const *aura) |
| void | _LoadAuras (PreparedQueryResult auraResult, PreparedQueryResult effectResult, uint32 timediff) |
| void | _SaveAuras (CharacterDatabaseTransaction trans) |
| void | _LoadSpells (PreparedQueryResult result) |
| void | _SaveSpells (CharacterDatabaseTransaction trans) |
| bool | addSpell (uint32 spellId, ActiveStates active=ACT_DECIDE, PetSpellState state=PETSPELL_NEW, PetSpellType type=PETSPELL_NORMAL) |
| bool | learnSpell (uint32 spell_id) |
| void | learnSpells (std::vector< uint32 > const &spellIds) |
| void | learnSpellHighRank (uint32 spellid) |
| void | InitLevelupSpellsForLevel () |
| bool | unlearnSpell (uint32 spell_id, bool learn_prev, bool clear_ab=true) |
| void | unlearnSpells (std::vector< uint32 > const &spellIds, bool learn_prev, bool clear_ab=true) |
| bool | removeSpell (uint32 spell_id, bool learn_prev, bool clear_ab=true) |
| void | CleanupActionBar () |
| std::string | GenerateActionBarData () const |
| void | InitPetCreateSpells () |
| uint16 | GetSpecialization () const |
| void | SetSpecialization (uint16 spec) |
| void | LearnSpecializationSpells () |
| void | RemoveSpecializationSpells (bool clearActionBar) |
| uint32 | GetGroupUpdateFlag () const |
| void | SetGroupUpdateFlag (uint32 flag) |
| void | ResetGroupUpdateFlag () |
| DeclinedName const * | GetDeclinedNames () const |
| Player * | GetOwner () const |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from Guardian | |
| Guardian (SummonPropertiesEntry const *properties, Unit *owner, bool isWorldObject) | |
| void | InitStats (WorldObject *summoner, Milliseconds duration) override |
| bool | InitStatsForLevel (uint8 level) |
| void | InitSummon (WorldObject *summoner) override |
| bool | UpdateStats (Stats stat) override |
| bool | UpdateAllStats () override |
| void | UpdateResistances (uint32 school) override |
| void | UpdateArmor () override |
| void | UpdateMaxHealth () override |
| void | UpdateMaxPower (Powers power) override |
| void | UpdateAttackPowerAndDamage (bool ranged=false) override |
| void | UpdateDamagePhysical (WeaponAttackType attType) override |
| int32 | GetBonusDamage () const |
| float | GetBonusStatFromOwner (Stats stat) const |
| void | SetBonusDamage (int32 damage) |
Public Member Functions inherited from Minion | |
| Minion (SummonPropertiesEntry const *properties, Unit *owner, bool isWorldObject) | |
| void | InitStats (WorldObject *summoner, Milliseconds duration) override |
| Unit * | GetOwner () const |
| float | GetFollowAngle () const override |
| void | SetFollowAngle (float angle) |
| bool | IsPetImp () const |
| bool | IsPetFelhunter () const |
| bool | IsPetVoidwalker () const |
| bool | IsPetSayaad () const |
| bool | IsPetDoomguard () const |
| bool | IsPetFelguard () const |
| bool | IsWarlockPet () const |
| bool | IsPetGhoul () const |
| bool | IsSpiritWolf () const |
| bool | IsGuardianPet () const |
Public Member Functions inherited from TempSummon | |
| TempSummon (SummonPropertiesEntry const *properties, WorldObject *owner, bool isWorldObject) | |
| virtual | ~TempSummon () |
| void | Update (uint32 diff) override |
| void | UpdateObjectVisibilityOnCreate () override |
| void | UpdateObjectVisibilityOnDestroy () override |
| virtual void | UnSummon (uint32 msTime=0) |
| void | RemoveFromWorld () override |
| void | SetTempSummonType (TempSummonType type) |
| void | SaveToDB (uint32, std::vector< Difficulty > const &) override |
| WorldObject * | GetSummoner () const |
| Unit * | GetSummonerUnit () const |
| Creature * | GetSummonerCreatureBase () const |
| GameObject * | GetSummonerGameObject () const |
| ObjectGuid | GetSummonerGUID () const |
| TempSummonType | GetSummonType () const |
| Milliseconds | GetTimer () const |
| void | RefreshTimer () |
| void | ModifyTimer (Milliseconds mod) |
| Optional< uint32 > | GetCreatureIdVisibleToSummoner () const |
| Optional< uint32 > | GetDisplayIdVisibleToSummoner () const |
| bool | CanFollowOwner () const |
| void | SetCanFollowOwner (bool can) |
| bool | IsDismissedOnFlyingMount () const |
| void | SetDontDismissOnFlyingMount (bool dontDismissOnFlyingMount) |
| bool | IsAutoResummoned () const |
| void | SetDontAutoResummon (bool dontAutoResummon) |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from Creature | |
| Creature (bool isWorldObject=false) | |
| ~Creature () | |
| void | SetObjectScale (float scale) override |
| void | SetDisplayFromModel (uint32 modelIdx) |
| void | DisappearAndDie () |
| bool | Create (ObjectGuid::LowType guidlow, Map *map, uint32 entry, Position const &pos, CreatureData const *data, uint32 vehId, bool dynamic=false) |
| bool | LoadCreaturesAddon () |
| void | LoadCreaturesSparringHealth (bool force=false) |
| void | SelectLevel () |
| void | UpdateLevelDependantStats () |
| void | SelectWildBattlePetLevel () |
| void | LoadEquipment (int8 id=1, bool force=false) |
| void | SetSpawnHealth () |
| ObjectGuid::LowType | GetSpawnId () const |
| void | Heartbeat () override |
| Position | GetRespawnPosition (float *dist=nullptr) const |
| bool | IsSpawnedOnTransport () const |
| void | SetCorpseDelay (uint32 delay, bool ignoreCorpseDecayRatio=false) |
| uint32 | GetCorpseDelay () const |
| bool | IsRacialLeader () const |
| bool | IsCivilian () const |
| bool | IsTrigger () const |
| bool | IsGuard () const |
| void | InitializeMovementCapabilities () |
| void | UpdateMovementCapabilities () |
| CreatureMovementData const & | GetMovementTemplate () const |
| bool | IsAquatic () const |
| bool | IsAmphibious () const |
| bool | IsFloating () const |
| void | SetFloating (bool floating) |
| void | UpdateFloatingMovementFlags () |
| bool | IsSessile () const |
| void | SetSessile (bool sessile) |
| void | UpdateSessileMovementFlags () |
| bool | CannotPenetrateWater () const |
| void | SetCannotPenetrateWater (bool cannotPenetrateWater) |
| bool | IsSwimDisabled () const |
| bool | CanOnlySwimIfTargetSwims () const |
| bool | CanSwim () const override |
| bool | CanEnterWater () const override |
| bool | CanFly () const override |
| MovementGeneratorType | GetDefaultMovementType () const override |
| void | SetDefaultMovementType (MovementGeneratorType mgt) |
| CreatureClassifications | GetCreatureClassification () const |
| bool | HasClassification (CreatureClassifications classification) const |
| bool | IsDungeonBoss () const |
| bool | IsAffectedByDiminishingReturns () const override |
| Unit * | SelectVictim () |
| void | SetReactState (ReactStates st) |
| ReactStates | GetReactState () const |
| bool | HasReactState (ReactStates state) const |
| void | InitializeReactState () |
| void | SetImmuneToAll (bool apply) override |
| void | SetImmuneToPC (bool apply) override |
| void | SetImmuneToNPC (bool apply) override |
| void | SetUnkillable (bool unkillable) |
| bool | isCanInteractWithBattleMaster (Player *player, bool msg) const |
| bool | CanResetTalents (Player *player) const |
| bool | CanCreatureAttack (Unit const *victim, bool force=true) const |
| void | LoadTemplateImmunities (int32 creatureImmunitiesId) |
| bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const override |
| bool | IsElite () const |
| bool | isWorldBoss () const |
| void | SetInteractionAllowedWhileHostile (bool interactionAllowed) override |
| void | SetInteractionAllowedInCombat (bool interactionAllowed) override |
| void | UpdateNearbyPlayersInteractions () override |
| bool | HasScalableLevels () const |
| void | ApplyLevelScaling () |
| void | ApplyLevelScaling (int32 contentTuningId, int32 scalingLevelDelta) |
| uint8 | GetLevelForTarget (WorldObject const *target) const override |
| uint64 | GetMaxHealthByLevel (uint8 level) const |
| float | GetHealthMultiplierForTarget (WorldObject const *target) const override |
| float | GetBaseDamageForLevel (uint8 level) const |
| float | GetDamageMultiplierForTarget (WorldObject const *target) const override |
| float | GetBaseArmorForLevel (uint8 level) const |
| float | GetArmorMultiplierForTarget (WorldObject const *target) const override |
| bool | IsInEvadeMode () const |
| bool | IsEvadingAttacks () const |
| bool | IsStateRestoredOnEvade () const |
| void | SetRestoreStateOnEvade (bool restoreOnEvade) |
| bool | AIM_Destroy () |
| bool | AIM_Create (CreatureAI *ai=nullptr) |
| bool | AIM_Initialize (CreatureAI *ai=nullptr) |
| void | Motion_Initialize () |
| CreatureAI * | AI () const |
| SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType=BASE_ATTACK) const override |
| void | SetMeleeDamageSchool (SpellSchools school) |
| bool | CanMelee () const |
| void | SetCanMelee (bool canMelee, bool fleeFromMelee=false) |
| bool | CanIgnoreLineOfSightWhenCastingOnMe () const |
| bool | IsTreatedAsRaidUnit () const |
| void | SetTreatAsRaidUnit (bool treatAsRaidUnit) |
| void | StartDefaultCombatMovement (Unit *victim, Optional< float > range={}, Optional< float > angle={}) |
| bool | UpdateEntry (uint32 entry, CreatureData const *data=nullptr, bool updateLevel=true) |
| int32 | GetCreatePowerValue (Powers power) const override |
| uint32 | GetPowerIndex (Powers power) const override |
| ClassPowerTypes | GetPowerTypes () const override |
| void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const override |
| void | SetCanDualWield (bool value) override |
| int8 | GetOriginalEquipmentId () const |
| uint8 | GetCurrentEquipmentId () const |
| void | SetCurrentEquipmentId (uint8 id) |
| float | GetSpellDamageMod (CreatureClassifications classification) const |
| VendorItemData const * | GetVendorItems () const |
| uint32 | GetVendorItemCurrentCount (VendorItem const *vItem) |
| uint32 | UpdateVendorItemCurrentCount (VendorItem const *vItem, uint32 used_count) |
| void | SetVendor (NPCFlags flags, bool apply) |
| void | SetPetitioner (bool apply) |
| CreatureTemplate const * | GetCreatureTemplate () const |
| CreatureData const * | GetCreatureData () const |
| CreatureDifficulty const * | GetCreatureDifficulty () const |
| CreatureAddon const * | GetCreatureAddon () const |
| std::string const & | GetAIName () const |
| std::string | GetScriptName () const |
| uint32 | GetScriptId () const |
| void | InheritStringIds (Creature const *parent) |
| bool | HasStringId (std::string_view id) const |
| void | SetScriptStringId (std::string id) |
| std::string_view | GetStringId (StringIdType type) const |
| SpawnTrackingStateData const * | GetSpawnTrackingStateDataForPlayer (Player const *player) const override |
| std::string | GetNameForLocaleIdx (LocaleConstant locale) const override |
| bool | HasLabel (int32 cretureLabel) const |
| std::span< int32 const > | GetLabels () const |
| bool | LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool allowDuplicate) |
| void | SaveToDB () |
| bool | CanHaveLoot () const |
| void | SetCanHaveLoot (bool canHaveLoot) |
| uint32 | GetLootId () const |
| void | SetLootId (Optional< uint32 > lootId) |
| void | StartPickPocketRefillTimer () |
| void | ResetPickPocketRefillTimer () |
| bool | CanGeneratePickPocketLoot () const |
| GuidUnorderedSet const & | GetTapList () const |
| void | SetTapList (GuidUnorderedSet tapList) |
| bool | hasLootRecipient () const |
| bool | IsTapListNotClearedOnEvade () const |
| void | SetDontClearTapListOnEvade (bool dontClear) |
| bool | isTappedBy (Player const *player) const |
| Loot * | GetLootForPlayer (Player const *player) const override |
| bool | IsFullyLooted () const |
| bool | IsSkinnedBy (Player const *player) const |
| void | SetTappedBy (Unit const *unit, bool withGroup=true) |
| void | AllLootRemovedFromCorpse () |
| uint16 | GetLootMode () const |
| bool | HasLootMode (uint16 lootMode) const |
| void | SetLootMode (uint16 lootMode) |
| void | AddLootMode (uint16 lootMode) |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| bool | CanStartAttack (Unit const *u, bool force) const |
| float | GetAttackDistance (Unit const *player) const |
| float | GetAggroRange (Unit const *target) const |
| void | SendAIReaction (AiReaction reactionType) |
| Unit * | SelectNearestTarget (float dist=0, bool playerOnly=false) const |
| Unit * | SelectNearestTargetInAttackDistance (float dist=0) const |
| Unit * | SelectNearestHostileUnitInAggroRange (bool useLOS=false, bool ignoreCivilians=false) const |
| void | DoFleeToGetAssistance () |
| void | CallForHelp (float fRadius) |
| void | CallAssistance () |
| void | SetNoCallAssistance (bool val) |
| void | SetNoSearchAssistance (bool val) |
| bool | HasSearchedAssistance () const |
| bool | CanAssistTo (Unit const *u, Unit const *enemy, bool checkfaction=true) const |
| bool | _IsTargetAcceptable (Unit const *target) const |
| bool | IsIgnoringFeignDeath () const |
| void | SetIgnoreFeignDeath (bool ignoreFeignDeath) |
| bool | IsIgnoringSanctuarySpellEffect () const |
| void | SetIgnoreSanctuarySpellEffect (bool ignoreSanctuary) |
| void | RemoveCorpse (bool setSpawnTime=true, bool destroyForNearbyPlayers=true) |
| void | DespawnOrUnsummon (Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s) |
| time_t const & | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| void | SetRespawnTime (uint32 respawn) |
| void | Respawn (bool force=false) |
| void | SaveRespawnTime (uint32 forceDelay=0) |
| uint32 | GetRespawnDelay () const |
| void | SetRespawnDelay (uint32 delay) |
| float | GetWanderDistance () const |
| void | SetWanderDistance (float dist) |
| void | DoImmediateBoundaryCheck () |
| void | SendZoneUnderAttackMessage (Player *attacker) |
| Send a message to LocalDefense channel for players opposition team in the zone. | |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| bool | CanRegenerateHealth () const |
| void | SetRegenerateHealth (bool value) |
| float | GetPetChaseDistance () const |
| bool | IsIgnoringChaseRange () const |
| void | SetIgnoreChaseRange (bool ignoreChaseRange) |
| void | SetCannotReachTarget (bool cannotReach) |
| bool | CanNotReachTarget () const |
| void | SetDefaultMount (Optional< uint32 > mountCreatureDisplayId) |
| void | SetHomePosition (float x, float y, float z, float o) |
| void | SetHomePosition (Position const &pos) |
| void | GetHomePosition (float &x, float &y, float &z, float &ori) const |
| Position const & | GetHomePosition () const |
| void | SetTransportHomePosition (float x, float y, float z, float o) |
| void | SetTransportHomePosition (Position const &pos) |
| void | GetTransportHomePosition (float &x, float &y, float &z, float &ori) const |
| Position const & | GetTransportHomePosition () const |
| uint32 | GetWaypointPathId () const |
| void | LoadPath (uint32 pathid) |
| std::pair< uint32, uint32 > | GetCurrentWaypointInfo () const |
| void | UpdateCurrentWaypointInfo (uint32 nodeId, uint32 pathId) |
| bool | IsReturningHome () const |
| void | SearchFormation () |
| CreatureGroup * | GetFormation () |
| void | SetFormation (CreatureGroup *formation) |
| bool | IsFormationLeader () const |
| void | SignalFormationMovement () |
| bool | IsFormationLeaderMoveAllowed () const |
| void | SetDisableReputationGain (bool disable) |
| bool | IsReputationGainDisabled () const |
| void | LowerPlayerDamageReq (uint64 unDamage) |
| void | ResetPlayerDamageReq () |
| uint32 | GetOriginalEntry () const |
| void | SetOriginalEntry (uint32 entry) |
| void | SetRespawnCompatibilityMode (bool mode=true) |
| bool | GetRespawnCompatibilityMode () const |
| void | SetTarget (ObjectGuid const &guid) override |
| void | DoNotReacquireSpellFocusTarget () |
| void | SetSpellFocus (Spell const *focusSpell, WorldObject const *target) |
| bool | HasSpellFocus (Spell const *focusSpell=nullptr) const override |
| void | ReleaseSpellFocus (Spell const *focusSpell=nullptr, bool withDelay=true) |
| bool | IsMovementPreventedByCasting () const override |
| time_t | GetLastDamagedTime () const |
| void | SetLastDamagedTime (time_t val) |
| CreatureTextRepeatIds | GetTextRepeatGroup (uint8 textGroup) |
| void | SetTextRepeatId (uint8 textGroup, uint8 id) |
| void | ClearTextRepeatGroup (uint8 textGroup) |
| bool | IsEscorted () const |
| bool | CanGiveExperience () const |
| void | SetCanGiveExperience (bool xpEnabled) |
| bool | IsEngaged () const override |
| void | AtEngage (Unit *target) override |
| void | AtDisengage () override |
| bool | IsThreatFeedbackDisabled () const |
| void | SetNoThreatFeedback (bool noThreatFeedback) |
| void | ForcePartyMembersIntoCombat () |
| bool | IsAggroGracePeriodExpired () |
| void | OverrideSparringHealthPct (float healthPct) |
| void | OverrideSparringHealthPct (std::vector< float > const &healthPct) |
| float | GetSparringHealthPct () const |
| uint32 | CalculateDamageForSparring (Unit *attacker, uint32 damage) |
| bool | ShouldFakeDamageFrom (Unit *attacker) |
| void | ExitVehicle (Position const *exitPosition=nullptr) override |
| bool | HasFlag (CreatureStaticFlags flag) const |
| bool | HasFlag (CreatureStaticFlags2 flag) const |
| bool | HasFlag (CreatureStaticFlags3 flag) const |
| bool | HasFlag (CreatureStaticFlags4 flag) const |
| bool | HasFlag (CreatureStaticFlags5 flag) const |
| bool | HasFlag (CreatureStaticFlags6 flag) const |
| bool | HasFlag (CreatureStaticFlags7 flag) const |
| bool | HasFlag (CreatureStaticFlags8 flag) const |
| uint32 | GetGossipMenuId () const |
| void | SetGossipMenuId (uint32 gossipMenuId) |
| uint32 | GetTrainerId () const |
| void | SetTrainerId (Optional< uint32 > trainerId) |
| void | SummonGraveyardTeleporter () |
| void | InitializeInteractSpellId () |
| void | SetInteractSpellId (int32 interactSpellId) |
| void | BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| void | BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::UnitData::Mask const &requestedUnitMask, Player const *target, bool ignoreNestedChangesMask) const |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| virtual void | SetImmuneToAll (bool apply) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToPC (bool apply) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToNPC (bool apply) |
Public Member Functions inherited from Unit | |
| virtual | ~Unit () |
| bool | IsAIEnabled () const |
| void | AIUpdateTick (uint32 diff) |
| UnitAI * | GetAI () const |
| void | ScheduleAIChange () |
| void | PushAI (UnitAI *newAI) |
| bool | PopAI () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) const |
| void | IncrDiminishing (SpellInfo const *auraSpellInfo) |
| bool | ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| void | ClearDiminishings () |
| void | Heartbeat () override |
| void | TriggerAuraHeartbeat () |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
| bool | haveOffhandWeapon () const |
| bool | CanDualWield () const |
| float | GetCombatReach () const override |
| void | SetCombatReach (float combatReach) |
| float | GetBoundingRadius () const |
| void | SetBoundingRadius (float boundingRadius) |
| bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (Unit const *obj) const |
| bool | IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const |
| float | GetMeleeRange (Unit const *target) const |
| bool | IsWithinBoundaryRadius (const Unit *obj) const |
| void | _addAttacker (Unit *pAttacker) |
| void | _removeAttacker (Unit *pAttacker) |
| Unit * | getAttackerForHelper () const |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | CastStop (uint32 except_spellid=0) |
| bool | AttackStop () |
| void | RemoveAllAttackers () |
| AttackerSet const & | getAttackers () const |
| bool | isAttackingPlayer () const |
| Unit * | GetVictim () const |
| Unit * | EnsureVictim () const |
| void | ValidateAttackersAndOwnTarget () |
| void | CombatStop (bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr) |
| void | CombatStopWithPets (bool includingCast=false) |
| void | StopAttackFaction (uint32 faction_id) |
| Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendMeleeAttackStop (Unit const *victim=nullptr) const |
| void | SendMeleeAttackStart (Unit *victim) |
| void | AddUnitState (uint32 f) |
| bool | HasUnitState (const uint32 f) const |
| void | ClearUnitState (uint32 f) |
| bool | CanFreeMove () const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| void | AddUnitTypeMask (uint32 mask) |
| bool | IsSummon () const |
| bool | IsGuardian () const |
| bool | IsPet () const |
| bool | IsHunterPet () const |
| bool | IsTotem () const |
| bool | IsVehicle () const |
| int32 | GetContentTuning () const |
| uint8 | GetLevel () const |
| uint8 | GetEffectiveLevel () const |
| uint8 | GetLevelForTarget (WorldObject const *) const override |
| void | SetLevel (uint8 lvl, bool sendUpdate=true) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint64 | GetRaceMask () const |
| uint8 | GetClass () const |
| void | SetClass (uint8 classId) |
| uint32 | GetClassMask () const |
| Gender | GetGender () const |
| void | SetGender (Gender gender) |
| virtual Gender | GetNativeGender () const |
| virtual void | SetNativeGender (Gender gender) |
| float | GetStat (Stats stat) const |
| void | SetStat (Stats stat, int32 val) |
| uint32 | GetArmor () const |
| void | SetArmor (int32 val, int32 bonusVal) |
| int32 | GetResistance (SpellSchools school) const |
| int32 | GetBonusResistanceMod (SpellSchools school) const |
| int32 | GetResistance (SpellSchoolMask mask) const |
| void | SetResistance (SpellSchools school, int32 val) |
| void | SetBonusResistanceMod (SpellSchools school, int32 val) |
| uint64 | GetHealth () const |
| uint64 | GetMaxHealth () const |
| bool | IsFullHealth () const |
| bool | HealthBelowPct (float pct) const |
| bool | HealthBelowPctDamaged (float pct, uint32 damage) const |
| bool | HealthAbovePct (float pct) const |
| bool | HealthAbovePctHealed (float pct, uint32 heal) const |
| float | GetHealthPct () const |
| uint64 | CountPctFromMaxHealth (float pct) const |
| uint64 | CountPctFromCurHealth (float pct) const |
| void | SetHealth (uint64 val) |
| void | SetMaxHealth (uint64 val) |
| void | SetFullHealth () |
| int64 | ModifyHealth (int64 val) |
| int64 | GetHealthGain (int64 dVal) |
| void | TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal) |
| Powers | GetPowerType () const |
| void | SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false) |
| void | SetInitialPowerValue (Powers powerType) |
| void | SetOverrideDisplayPowerId (uint32 powerDisplayId) |
| Powers | CalculateDisplayPowerType () const |
| void | UpdateDisplayPower () |
| int32 | GetPower (Powers power) const |
| int32 | GetMinPower (Powers power) const |
| int32 | GetMaxPower (Powers power) const |
| float | GetPowerPct (Powers power) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| void | SetPower (Powers power, int32 val, bool withPowerUpdate=true) |
| void | SetMaxPower (Powers power, int32 val) |
| void | TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal) |
| void | SetFullPower (Powers power) |
| int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
| void | ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply) |
| void | ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply) |
| uint32 | GetBaseAttackTime (WeaponAttackType att) const |
| void | SetBaseAttackTime (WeaponAttackType att, uint32 val) |
| void | UpdateAttackTimeField (WeaponAttackType att) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | ApplySpellHastePercentMod (float val, bool apply) |
| void | ApplyHasteRegenPercentMod (float val, bool apply) |
| void | SetModCastingSpeed (float castingSpeed) |
| void | SetModCastingSpeedNeg (float castingSpeedNeg) |
| void | SetModSpellHaste (float spellHaste) |
| void | SetModHaste (float haste) |
| void | SetModRangedHaste (float rangedHaste) |
| void | SetModHasteRegen (float hasteRegen) |
| void | SetModTimeRate (float timeRate) |
| bool | HasUnitFlag (UnitFlags flags) const |
| void | SetUnitFlag (UnitFlags flags) |
| void | RemoveUnitFlag (UnitFlags flags) |
| void | ReplaceAllUnitFlags (UnitFlags flags) |
| bool | HasUnitFlag2 (UnitFlags2 flags) const |
| void | SetUnitFlag2 (UnitFlags2 flags) |
| void | RemoveUnitFlag2 (UnitFlags2 flags) |
| void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
| bool | HasUnitFlag3 (UnitFlags3 flags) const |
| void | SetUnitFlag3 (UnitFlags3 flags) |
| void | RemoveUnitFlag3 (UnitFlags3 flags) |
| void | ReplaceAllUnitFlags3 (UnitFlags3 flags) |
| void | SetCreatedBySpell (int32 spellId) |
| void | SetNameplateAttachToGUID (ObjectGuid guid) |
| Emote | GetEmoteState () const |
| void | SetEmoteState (Emote emote) |
| SheathState | GetSheath () const |
| void | SetSheath (SheathState sheathed) |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| bool | IsContestedGuard () const |
| UnitPVPStateFlags | GetPvpFlags () const |
| bool | HasPvpFlag (UnitPVPStateFlags flags) const |
| void | SetPvpFlag (UnitPVPStateFlags flags) |
| void | RemovePvpFlag (UnitPVPStateFlags flags) |
| void | ReplaceAllPvpFlags (UnitPVPStateFlags flags) |
| bool | IsInSanctuary () const |
| bool | IsPvP () const |
| bool | IsFFAPvP () const |
| virtual void | SetPvP (bool state) |
| UnitPetFlag | GetPetFlags () const |
| bool | HasPetFlag (UnitPetFlag flags) const |
| void | SetPetFlag (UnitPetFlag flags) |
| void | RemovePetFlag (UnitPetFlag flags) |
| void | ReplaceAllPetFlags (UnitPetFlag flags) |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| void | UpdateCreatureType () |
| UnitStandStateType | GetStandState () const |
| bool | IsSitState () const |
| bool | IsStandState () const |
| void | SetStandState (UnitStandStateType state, uint32 animKitID=0) |
| void | SetVisFlag (UnitVisFlags flags) |
| void | RemoveVisFlag (UnitVisFlags flags) |
| void | ReplaceAllVisFlags (UnitVisFlags flags) |
| AnimTier | GetAnimTier () const |
| void | SetAnimTier (AnimTier animTier, bool notifyClient=true) |
| bool | IsMounted () const |
| uint32 | GetMountDisplayId () const |
| void | SetMountDisplayId (uint32 mountDisplayId) |
| uint32 | GetCosmeticMountDisplayId () const |
| void | SetCosmeticMountDisplayId (uint32 mountDisplayId) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | Dismount () |
| void | CancelMountAura (bool force=false) |
| MountCapabilityEntry const * | GetMountCapability (uint32 mountType) const |
| void | UpdateMountCapability () |
| void | SendDurabilityLoss (Player *receiver, uint32 percent) |
| void | PlayOneShotAnimKitId (uint16 animKitId) |
| void | SetAIAnimKitId (uint16 animKitId) |
| uint16 | GetAIAnimKitId () const override |
| void | SetMovementAnimKitId (uint16 animKitId) |
| uint16 | GetMovementAnimKitId () const override |
| void | SetMeleeAnimKitId (uint16 animKitId) |
| uint16 | GetMeleeAnimKitId () const override |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
| void | KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false) |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo) |
| void | TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras) |
| void | HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0) |
| void | DoMeleeAttackIfReady () |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false) |
| void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
| void | SetLastExtraAttackSpell (uint32 spellId) |
| uint32 | GetLastExtraAttackSpell () const |
| void | AddExtraAttacks (uint32 count) |
| void | SetLastDamagedTargetGuid (ObjectGuid guid) |
| ObjectGuid | GetLastDamagedTargetGuid () const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr) |
| void | DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss) |
| uint32 | GetDamageReduction (uint32 damage) const |
| virtual bool | CanApplyResilience () const |
| int32 | CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const override |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override |
| float | GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitMissChance () const |
| float | GetUnitCriticalChanceDone (WeaponAttackType attackType) const |
| float | GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const |
| float | GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const |
| float | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| bool | CanUseAttackType (uint8 attacktype) const |
| virtual float | GetBlockPercent (uint8) const |
| float | GetWeaponProcChance () const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
| NPCFlags | GetNpcFlags () const |
| bool | HasNpcFlag (NPCFlags flags) const |
| void | SetNpcFlag (NPCFlags flags) |
| void | RemoveNpcFlag (NPCFlags flags) |
| void | ReplaceAllNpcFlags (NPCFlags flags) |
| NPCFlags2 | GetNpcFlags2 () const |
| bool | HasNpcFlag2 (NPCFlags2 flags) const |
| void | SetNpcFlag2 (NPCFlags2 flags) |
| void | RemoveNpcFlag2 (NPCFlags2 flags) |
| void | ReplaceAllNpcFlags2 (NPCFlags2 flags) |
| bool | IsVendor () const |
| bool | IsTrainer () const |
| bool | IsQuestGiver () const |
| bool | IsGossip () const |
| bool | IsTaxi () const |
| bool | IsGuildMaster () const |
| bool | IsBattleMaster () const |
| bool | IsBanker () const |
| bool | IsInnkeeper () const |
| bool | IsSpiritHealer () const |
| bool | IsAreaSpiritHealer () const |
| bool | IsTabardDesigner () const |
| bool | IsAuctioner () const |
| bool | IsArmorer () const |
| bool | IsWildBattlePet () const |
| bool | IsServiceProvider () const |
| bool | IsSpiritService () const |
| bool | IsAreaSpiritHealerIndividual () const |
| bool | IsCritter () const |
| bool | IsInFlight () const |
| bool | CanHaveThreatList () const |
| ====================== THREAT & COMBAT ==================== | |
| bool | IsEngagedBy (Unit const *who) const |
| void | EngageWithTarget (Unit *who) |
| CombatManager & | GetCombatManager () |
| CombatManager const & | GetCombatManager () const |
| void | AtTargetAttacked (Unit *target, bool canInitialAggro) |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| bool | IsUninteractible () const |
| void | SetUninteractible (bool apply) |
| bool | CannotTurn () const |
| void | SetCannotTurn (bool apply) |
| bool | IsInCombat () const |
| bool | IsInCombatWith (Unit const *who) const |
| void | SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false) |
| void | ClearInCombat () |
| void | UpdatePetCombatState () |
| bool | IsInteractionAllowedWhileHostile () const |
| bool | IsInteractionAllowedInCombat () const |
| bool | IsThreatened () const |
| bool | IsThreatenedBy (Unit const *who) const |
| ThreatManager & | GetThreatManager () |
| ThreatManager const & | GetThreatManager () const |
| void | SendClearTarget () |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const |
| bool | HasStealthAura () const |
| bool | HasInvisibilityAura () const |
| bool | IsFeared () const |
| bool | HasRootAura () const |
| bool | IsPolymorphed () const |
| bool | IsFrozen () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsInWater () const |
| bool | IsUnderWater () const |
| bool | IsOnOceanFloor () const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| void | SendHealSpellLog (HealInfo &healInfo, bool critical=false) |
| int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, int32 overEnergize, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f) |
| void | SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f) |
| void | SendCancelSpellVisual (uint32 id) |
| void | SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const |
| void | SendCancelSpellVisualKit (uint32 id) |
| void | CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false) |
| void | DeMorph () |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount, uint32 RageGained) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic) |
| void | NearTeleportTo (TeleportLocation const &target, bool casting=false) |
| void | NearTeleportTo (Position const &pos, bool casting=false) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | SendTeleportPacket (TeleportLocation const &teleportLocation) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| virtual bool | UpdatePosition (Position const &pos, bool teleport=false) |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | KnockbackFrom (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| bool | IsPlayingHoverAnim () const |
| void | SetPlayHoverAnim (bool enable, bool sendUpdate=true) |
| void | CalculateHoverHeight () |
| void | SetHoverHeight (float hoverHeight) |
| bool | IsGravityDisabled () const |
| bool | IsWalking () const |
| bool | IsHovering () const |
| bool | SetWalk (bool enable) |
| bool | SetDisableGravity (bool disable, bool updateAnimTier=true, bool updatePlayHoverAnim=true) |
| bool | SetFall (bool enable) |
| bool | SetSwim (bool enable) |
| bool | SetCanFly (bool enable) |
| bool | SetWaterWalking (bool enable) |
| bool | SetFeatherFall (bool enable) |
| bool | SetHover (bool enable, bool updateAnimTier=true) |
| bool | SetCollision (bool disable) |
| bool | SetStrafingDisabled (bool disable) |
| bool | SetJumpingDisabled (bool disable) |
| bool | SetEnableFullSpeedTurning (bool enable) |
| bool | SetEnableFullSpeedPitching (bool enable) |
| bool | SetAlwaysAllowPitching (bool enable) |
| bool | SetCanTransitionBetweenSwimAndFly (bool enable) |
| bool | SetCanTurnWhileFalling (bool enable) |
| bool | SetCanDoubleJump (bool enable) |
| bool | SetDisableInertia (bool disable) |
| bool | SetCanAdvFly (bool enable) |
| bool | SetMoveCantSwim (bool cantSwim) |
| void | SendSetVehicleRecId (uint32 vehicleId) |
| MovementForces const * | GetMovementForces () const |
| void | ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty) |
| void | RemoveMovementForce (ObjectGuid id) |
| bool | SetIgnoreMovementForces (bool ignore) |
| void | UpdateMovementForcesModMagnitude () |
| void | ApplyInertia (int32 id, Milliseconds duration) |
| void | RemoveInertia (int32 id) |
| void | SetGravityModifier (float gravityModifier) |
| void | SetInFront (WorldObject const *target) |
| void | SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToPoint (Position const &point, bool force=true) |
| bool | IsAlive () const |
| bool | isDying () const |
| bool | isDead () const |
| DeathState | getDeathState () const |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetCreatorGUID () const override |
| void | SetCreatorGUID (ObjectGuid creator) |
| ObjectGuid | GetMinionGUID () const |
| void | SetMinionGUID (ObjectGuid guid) |
| ObjectGuid | GetPetGUID () const |
| void | SetPetGUID (ObjectGuid guid) |
| ObjectGuid | GetCritterGUID () const |
| void | SetCritterGUID (ObjectGuid guid) |
| ObjectGuid | GetBattlePetCompanionGUID () const |
| void | SetBattlePetCompanionGUID (ObjectGuid guid) |
| ObjectGuid | GetDemonCreatorGUID () const |
| void | SetDemonCreatorGUID (ObjectGuid guid) |
| Unit * | GetDemonCreator () const |
| Player * | GetDemonCreatorPlayer () const |
| ObjectGuid | GetCharmerGUID () const |
| Unit * | GetCharmer () const |
| ObjectGuid | GetCharmedGUID () const |
| Unit * | GetCharmed () const |
| bool | IsControlledByPlayer () const |
| Player * | GetControllingPlayer () const |
| ObjectGuid | GetCharmerOrOwnerGUID () const override |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| Guardian * | GetGuardianPet () const |
| Minion * | GetFirstMinion () const |
| Unit * | GetCharmerOrOwner () const |
| void | SetMinion (Minion *minion, bool apply) |
| void | GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry) |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | SetCharm (Unit *target, bool apply) |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr) |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RestoreFaction () |
| Unit * | GetFirstControlled () const |
| void | RemoveAllControlled () |
| bool | IsCharmed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| CharmInfo * | GetCharmInfo () |
| CharmInfo * | InitCharmInfo () |
| void | DeleteCharmInfo () |
| void | SetPetNumberForClient (uint32 petNumber) |
| void | SetPetNameTimestamp (uint32 timestamp) |
| void | SetMovedUnit (Unit *target) |
| Unit * | GetUnitBeingMoved () const |
| Player * | GetPlayerMovingMe () const |
| SharedVisionList const & | GetSharedVisionList () |
| void | AddPlayerToVision (Player *player) |
| void | RemovePlayerFromVision (Player *player) |
| bool | HasSharedVision () const |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) |
| uint32 | GetBattlePetCompanionNameTimestamp () const |
| void | SetBattlePetCompanionNameTimestamp (uint32 timestamp) |
| uint32 | GetBattlePetCompanionExperience () const |
| void | SetBattlePetCompanionExperience (uint32 experience) |
| uint32 | GetWildBattlePetLevel () const |
| void | SetWildBattlePetLevel (uint32 wildBattlePetLevel) |
| Aura * | _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint32 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| void | _ApplyAura (AuraApplication *aurApp, uint32 effMask) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura, bool owned) |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| Aura * | GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, Aura *except=nullptr) const |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
| void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
| void | RemoveNotOwnSingleTargetAuras (bool onPhaseChange=false) |
| template<typename InterruptFlags > | |
| void | RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr) |
| void | RemoveAurasWithAttribute (SpellAttr0 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID) |
| void | RemoveAurasWithMechanic (uint64 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false) |
| void | RemoveMovementImpairingAuras (bool withRoot) |
| void | RemoveAurasByShapeShift () |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveAllAuras () |
| void | RemoveArenaAuras () |
| void | RemoveAurasOnEvade () |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID) |
| void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
| void | _RemoveAllAuraStatMods () |
| void | _ApplyAllAuraStatMods () |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| AuraEffectList & | GetAuraEffectsByType (AuraType type) |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (std::function< bool(Aura const *)> const &predicate) const |
| Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| Aura * | GetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const |
| Aura * | GetAura (std::function< bool(Aura const *)> const &predicate) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| void | GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| bool | HasAura (std::function< bool(Aura const *)> const &predicate) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const |
| bool | HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithValue (AuraType auraType, int32 value) const |
| bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
| template<typename InterruptFlags > | |
| bool | HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const |
| bool | HasAuraWithMechanic (uint64 mechanicMask) const |
| bool | HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false) |
| uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
| float | GetTotalAuraModifier (AuraType auraType) const |
| float | GetTotalAuraMultiplier (AuraType auraType) const |
| float | GetMaxPositiveAuraModifier (AuraType auraType) const |
| float | GetMaxNegativeAuraModifier (AuraType auraType) const |
| float | GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const |
| float | GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| void | InitStatBuffMods () |
| void | UpdateStatBuffMod (Stats stat) |
| void | UpdateStatBuffModForClient (Stats stat) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreateHealth (uint32 val) |
| uint32 | GetCreateHealth () const |
| void | SetCreateMana (uint32 val) |
| uint32 | GetCreateMana () const |
| float | GetPosStat (Stats stat) const |
| float | GetNegStat (Stats stat) const |
| float | GetCreateStat (Stats stat) const |
| uint32 | GetChannelSpellId () const |
| void | SetChannelSpellId (uint32 channelSpellId) |
| uint32 | GetChannelSpellXSpellVisualId () const |
| uint32 | GetChannelScriptVisualId () const |
| void | SetChannelVisual (SpellCastVisual channelVisual) |
| void | AddChannelObject (ObjectGuid guid) |
| void | SetChannelObject (uint32 slot, ObjectGuid guid) |
| void | RemoveChannelObject (ObjectGuid guid) |
| void | ClearChannelObjects () |
| void | SetChannelSpellData (uint32 startTimeMs, uint32 durationMs) |
| int8 | GetSpellEmpowerStage () const |
| void | SetSpellEmpowerStage (int8 stage) |
| void | SetCurrentCastSpell (Spell *pSpell) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}, ObjectGuid const &interrupter=ObjectGuid::Empty) |
| void | FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK) |
| void | CancelAutoRepeatSpell () |
| bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true, bool skipChanneledAllowingActions=false) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| GetCastSpellInfoResult | GetCastSpellInfo (SpellInfo const *spellInfo) const |
| virtual SpellInfo const * | GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const |
| uint32 | GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override |
| bool | CanCastSpellWhileMoving (SpellInfo const *spellInfo) const |
| bool | IsSilenced (SpellSchoolMask schoolMask) const |
| void | SetSilencedSchoolMask (SpellSchoolMask schoolMask) |
| void | ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask) |
| SpellHistory * | GetSpellHistory () |
| SpellHistory const * | GetSpellHistory () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| void | CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false) |
| void | CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false) |
| bool | IsInFeralForm () const |
| bool | IsInDisallowedMountForm () const |
| bool | IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) const |
| void | HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply) |
| void | ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount) |
| void | SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val) |
| void | SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val) |
| float | GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const |
| float | GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const |
| void | UpdateUnitMod (UnitMods unitMod) |
| void | HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply) |
| float | GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const |
| virtual bool | CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const |
| virtual void | UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1) |
| void | UpdateAllDamageDoneMods () |
| void | UpdateDamagePctDoneMods (WeaponAttackType attackType) |
| void | UpdateAllDamagePctDoneMods () |
| float | GetTotalStatValue (Stats stat) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| bool | CanModifyStats () const |
| void | SetCanModifyStats (bool modifyStats) |
| virtual void | UpdateAllResistances () |
| void | SetAttackPower (int32 attackPower) |
| void | SetAttackPowerModPos (int32 attackPowerMod) |
| void | SetAttackPowerModNeg (int32 attackPowerMod) |
| void | SetAttackPowerMultiplier (float attackPowerMult) |
| void | SetRangedAttackPower (int32 attackPower) |
| void | SetRangedAttackPowerModPos (int32 attackPowerMod) |
| void | SetRangedAttackPowerModNeg (int32 attackPowerMod) |
| void | SetRangedAttackPowerMultiplier (float attackPowerMult) |
| void | SetMainHandWeaponAttackPower (int32 attackPower) |
| void | SetOffHandWeaponAttackPower (int32 attackPower) |
| void | SetRangedWeaponAttackPower (int32 attackPower) |
| float | GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value) |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) const |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | IsVisible () const |
| void | SetVisible (bool x) |
| virtual void | OnPhaseChange () |
| void | UpdateObjectVisibility (bool forced=true) override |
| VisibleAuraContainer const & | GetVisibleAuras () const |
| bool | HasVisibleAura (AuraApplication *aurApp) const |
| void | SetVisibleAura (AuraApplication *aurApp) |
| void | RemoveVisibleAura (AuraApplication *aurApp) |
| void | SetVisibleAuraUpdate (AuraApplication *aurApp) |
| void | RemoveVisibleAuraUpdate (AuraApplication *aurApp) |
| bool | HasInterruptFlag (SpellAuraInterruptFlags flags) const |
| bool | HasInterruptFlag (SpellAuraInterruptFlags2 flags) const |
| void | AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2) |
| void | UpdateInterruptMask () |
| virtual void | RecalculateObjectScale () |
| uint32 | GetDisplayId () const |
| float | GetDisplayScale () const |
| uint32 | GetNativeDisplayId () const |
| float | GetNativeDisplayScale () const |
| void | RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false) |
| void | SetTransformSpell (uint32 spellid) |
| uint32 | GetTransformSpell () const |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| DynamicObject * | GetDynObject (uint32 spellId) const |
| std::vector< DynamicObject * > | GetDynObjects (uint32 spellId) const |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveAllDynObjects () |
| GameObject * | GetGameObject (uint32 spellId) const |
| std::vector< GameObject * > | GetGameObjects (uint32 spellId) const |
| void | AddGameObject (GameObject *gameObj) |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | RemoveAllGameObjects () |
| void | _RegisterAreaTrigger (AreaTrigger *areaTrigger) |
| void | _UnregisterAreaTrigger (AreaTrigger *areaTrigger) |
| AreaTrigger * | GetAreaTrigger (uint32 spellId) const |
| std::vector< AreaTrigger * > | GetAreaTriggers (uint32 spellId) const |
| void | RemoveAreaTrigger (uint32 spellId) |
| void | RemoveAreaTrigger (AuraEffect const *aurEff) |
| void | RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default) |
| void | EnterAreaTrigger (AreaTrigger *areaTrigger) |
| void | ExitAreaTrigger (AreaTrigger *areaTrigger) |
| std::vector< AreaTrigger * > const & | GetInsideAreaTriggers () const |
| void | ExitAllAreaTriggers () |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| uint32 | BuildAuraStateUpdateForTarget (Unit const *target) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
| void | UnsummonAllTotems () |
| bool | IsMagnet () const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const |
| float | SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const |
| int32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const |
| float | SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const |
| int32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const |
| int32 | SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const |
| float | SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const |
| int32 | SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const |
| int32 | MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) |
| int32 | MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | IsBlockCritical () const |
| float | SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const |
| float | SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const |
| void | ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply) |
| bool | IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const |
| uint32 | GetSchoolImmunityMask () const |
| uint32 | GetDamageImmunityMask () const |
| uint64 | GetMechanicImmunityMask () const |
| EnumFlag< SpellOtherImmunity > | GetSpellOtherImmunityMask () const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const |
| bool | IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) const |
| void | UpdateSpeed (UnitMoveType mtype) |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| void | SetSpeed (UnitMoveType mtype, float newValue) |
| void | SetSpeedRate (UnitMoveType mtype, float rate) |
| int32 | GetFlightCapabilityID () const |
| void | SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate) |
| float | GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const |
| float | GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const |
| float | GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const |
| void | UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate) |
| void | UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate) |
| void | FollowerAdded (AbstractFollower *f) |
| void | FollowerRemoved (AbstractFollower *f) |
| void | RemoveAllFollowers () |
| MotionMaster * | GetMotionMaster () |
| MotionMaster const * | GetMotionMaster () const |
| bool | IsStopped () const |
| void | StopMoving (bool force=false) |
| void | PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true) |
| void | ResumeMovement (uint32 timer=0, uint8 slot=0) |
| void | AddUnitMovementFlag (MovementFlags f) |
| void | RemoveUnitMovementFlag (MovementFlags f) |
| bool | HasUnitMovementFlag (MovementFlags f) const |
| MovementFlags | GetUnitMovementFlags () const |
| void | SetUnitMovementFlags (MovementFlags f) |
| bool | IsSplineEnabled () const |
| void | SetControlled (bool apply, UnitState state) |
| void | ApplyControlStatesIfNeeded () |
| void | SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const |
| -------—Pet responses methods--------------— | |
| void | SendPetActionSound (PetAction action) const |
| void | SendPetDismissSound () const |
| void | SendPetAIReaction (ObjectGuid guid) const |
| void | PropagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | ClearAllReactives () |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateAuraForGroup () |
| bool | CanProc () const |
| void | SetCantProc (bool apply) |
| int32 | GetProcChainLength () const |
| uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false) |
| void | RemoveVehicleKit (bool onRemoveFromWorld=false) |
| Vehicle * | GetVehicleKit () const |
| Trinity::unique_weak_ptr< Vehicle > | GetVehicleKitWeakPtr () const |
| Vehicle * | GetVehicle () const |
| void | SetVehicle (Vehicle *vehicle) |
| bool | IsOnVehicle (Unit const *vehicle) const |
| Unit * | GetVehicleBase () const |
| Unit * | GetVehicleRoot () const |
| Creature * | GetVehicleCreatureBase () const |
| ObjectGuid | GetTransGUID () const override |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) | |
| void | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| bool | HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | _ExitVehicle (Position const *exitPosition=nullptr) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
| bool | isMoving () const |
| bool | isTurning () const |
| bool | IsFlying () const |
| bool | IsFalling () const |
| float | GetHoverOffset () const |
| int32 | RewardRage (uint32 baseRage) |
| void | OutDebugInfo () const |
| bool | IsDuringRemoveFromWorld () const |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| ObjectGuid | GetTarget () const |
| void | SetInstantCast (bool set) |
| bool | CanInstantCast () const |
| SpellEffectValue | GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const |
| bool | IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false) |
| bool | IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, SpellEffectValue effectAmount, uint32 auraEffectMask, bool removeOtherAuraApplications=false) |
| virtual void | Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target) |
| virtual void | Say (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | Yell (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false) |
| virtual void | Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target) |
| virtual void | Say (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | Yell (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (uint32 textId, Player *target, bool isBossWhisper=false) |
| void | ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const |
| Clears boss emotes frame. | |
| float | GetCollisionHeight () const override |
| uint32 | GetVirtualItemId (uint32 slot) const |
| uint16 | GetVirtualItemAppearanceMod (uint32 slot) const |
| void | SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0) |
| bool | IsCombatDisallowed () const |
| void | SetIsCombatDisallowed (bool apply) |
| void | AddWorldEffect (int32 worldEffectId) |
| void | RemoveWorldEffect (int32 worldEffectId) |
| void | ClearWorldEffects () |
| Vignettes::VignetteData const * | GetVignette () const |
| void | SetVignette (uint32 vignetteId) |
| std::string | GetDebugInfo () const override |
| void | AtStartOfEncounter (EncounterType type) |
| void | AtEndOfEncounter (EncounterType type) |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) const |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| Position | GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const |
| uint32 | GetInstanceId () const |
| PhaseShift & | GetPhaseShift () |
| PhaseShift const & | GetPhaseShift () const |
| PhaseShift & | GetSuppressedPhaseShift () |
| PhaseShift const & | GetSuppressedPhaseShift () const |
| bool | InSamePhase (PhaseShift const &phaseShift) const |
| bool | InSamePhase (WorldObject const *obj) const |
| int32 | GetDBPhase () const |
| void | SetDBPhase (int32 p) |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| WmoLocation const * | GetCurrentWmo () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string | GetNameForLocaleIdx (LocaleConstant) const override |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (Position const *pos, float minRange, float maxRange) const |
| bool | IsInRange3d (Position const *pos, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| void | SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const |
| void | PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const |
| void | StopDistanceSound (Player const *target=nullptr) const |
| void | PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const |
| void | PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const |
| void | PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| ZoneScript * | FindZoneScript () const |
| ZoneScript * | GetZoneScript () const |
| Scenario * | GetScenario () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float range) const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| SpellRange | GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| SpellEffectValue | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendCancelOrphanSpellVisual (uint32 id) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| void | UpdatePositionData () |
| void | BuildUpdate (UpdateDataMapType &) override |
| bool | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| void | SetFarVisible (bool on) |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetIsStoredInWorldObjectGridContainer (bool apply) |
| bool | IsAlwaysStoredInWorldObjectGridContainer () const |
| bool | IsStoredInWorldObjectGridContainer () const |
| TransportBase * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| Position const & | GetTransOffset () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| void | SetTransport (TransportBase *t) |
| virtual Position const & | GetStationaryPosition () const |
| float | GetFloorZ () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
| SmoothPhasing * | GetOrCreateSmoothPhasing () |
| SmoothPhasing * | GetSmoothPhasing () |
| SmoothPhasing const * | GetSmoothPhasing () const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| void | SetDynamicFlag (uint32 flag) |
| void | RemoveDynamicFlag (uint32 flag) |
| void | ReplaceAllDynamicFlags (uint32 flag) |
| void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| SceneObject * | ToSceneObject () |
| SceneObject const * | ToSceneObject () const |
| Conversation * | ToConversation () |
| Conversation const * | ToConversation () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
Public Member Functions inherited from BaseEntity | |
| virtual | ~BaseEntity () |
| bool | IsInWorld () const |
| ObjectGuid const & | GetGUID () const |
| TypeID | GetTypeId () const |
| bool | isType (TypeMask mask) const |
| bool | IsWorldObject () const |
| bool | IsItem () const |
| bool | IsUnit () const |
| bool | IsCreature () const |
| bool | IsPlayer () const |
| bool | IsGameObject () const |
| bool | IsDynObject () const |
| bool | IsCorpse () const |
| bool | IsAreaTrigger () const |
| bool | IsSceneObject () const |
| bool | IsConversation () const |
| bool | IsMeshObject () const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildDestroyUpdateBlock (UpdateData *data) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
| void | SendOutOfRangeForPlayer (Player const *target) const |
| void | ClearUpdateMask (bool remove) |
| void | SetIsNewObject (bool enable) |
| bool | IsDestroyedObject () const |
| void | SetDestroyedObject (bool destroyed) |
| void | BuildUpdateChangesMask () |
| void | BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const |
| template<typename T > | |
| void | ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &) |
Public Member Functions inherited from WorldLocation | |
| constexpr | WorldLocation () |
| constexpr | WorldLocation (uint32 mapId, float x, float y) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z, float o) |
| constexpr | WorldLocation (uint32 mapId, Position const &position) |
| constexpr void | WorldRelocate (WorldLocation const &loc) |
| constexpr void | WorldRelocate (WorldLocation const *loc) |
| constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
| constexpr void | WorldRelocate (uint32 mapId, float x, float y, float z, float o) |
| constexpr WorldLocation | GetWorldLocation () const |
| constexpr uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| Position | GetPositionOffsetTo (Position const &endPos) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< Creature > | |
| virtual | ~GridObject () |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefManager< Creature > &m) |
| void | RemoveFromGrid () |
Static Public Member Functions | |
| static std::pair< PetStable::PetInfo const *, PetSaveMode > | GetLoadPetInfo (PetStable const &stable, uint32 petEntry, uint32 petnumber, Optional< PetSaveMode > slot) |
| static void | DeleteFromDB (uint32 petNumber) |
Static Public Member Functions inherited from Creature | |
| static Creature * | CreateCreature (uint32 entry, Map *map, Position const &pos, uint32 vehId=0) |
| static Creature * | CreateCreatureFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap=true, bool allowDuplicate=false) |
| static bool | DeleteFromDB (ObjectGuid::LowType spawnId) |
| static float | GetDamageMod (CreatureClassifications classification) |
Static Public Member Functions inherited from Unit | |
| static std::vector< AuraEffect * > | CopyAuraEffectList (AuraEffectList const &list) |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *attacker, Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, int32 *damage) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (Object *o) |
| static Conversation const * | ToConversation (Object const *o) |
Static Public Member Functions inherited from BaseEntity | |
| static ObjectGuid | GetGUID (BaseEntity const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Private Member Functions | |
| void | SaveToDB (uint32, std::vector< Difficulty > const &) override |
Additional Inherited Members | |
Public Types inherited from Unit | |
| enum class | AreaTriggerRemoveReason : uint8 { Default , UnitDespawn } |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::forward_list< AuraEffect * > | AuraEffectList |
| typedef std::forward_list< Aura * > | AuraList |
| typedef std::forward_list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint32, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::set< AuraApplication *, VisibleAuraSlotCompare > | VisibleAuraContainer |
Protected Types inherited from Unit | |
| typedef std::vector< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
| typedef std::vector< AreaTrigger * > | AreaTriggerList |
Protected Member Functions inherited from TempSummon | |
| std::ptrdiff_t | FindUsableTotemSlot (Unit const *summoner) const |
Protected Member Functions inherited from Creature | |
| void | BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| void | BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| bool | CreateFromProto (ObjectGuid::LowType guidlow, uint32 entry, CreatureData const *data=nullptr, uint32 vehId=0) |
| bool | InitEntry (uint32 entry, CreatureData const *data=nullptr) |
| void | RegenerateHealth () |
| void | Regenerate (Powers power) |
| bool | IsInvisibleDueToDespawn (WorldObject const *seer) const override |
| bool | CanAlwaysSee (WorldObject const *obj) const override |
Protected Member Functions inherited from Unit | |
| void | SetAI (UnitAI *newAI) |
| UnitAI * | GetTopAI () const |
| void | RefreshAI () |
| UnitAI * | GetScheduledChangeAI () |
| bool | HasScheduledAIChange () const |
| Unit (bool isWorldObject) | |
| UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const override |
| void | DestroyForPlayer (Player const *target) const override |
| void | ClearValuesChangesMask () override |
| void | _UpdateSpells (uint32 time) |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | RemoveGameObjectImpl (GameObject *gameObj, bool del) |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| void | DisableSpline () |
| void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
| void | UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData) |
| virtual void | AtEnterCombat () |
| virtual void | AtExitCombat () |
| void | SetFeared (bool apply) |
| void | SetConfused (bool apply) |
| void | SetStunned (bool apply) |
| void | SetRooted (bool apply) |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const |
| virtual bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const |
Protected Member Functions inherited from Object | |
| Object () | |
| void | BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const |
Protected Member Functions inherited from BaseEntity | |
| BaseEntity () | |
| void | _Create (ObjectGuid const &guid) |
| template<typename T > | |
| void | SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| void | RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename K , typename V > | |
| void | RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key) |
| template<typename T > | |
| void | InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter) |
| template<typename T > | |
| void | SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply) |
| template<typename T > | |
| void | ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply) |
| template<typename Action > | |
| void | DoWithSuppressingObjectUpdates (Action &&action) |
| void | BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const |
| void | AddToObjectUpdateIfNeeded () |
Protected Member Functions inherited from MapObject | |
| MapObject () | |
Static Protected Member Functions inherited from Creature | |
| static float | GetHealthMod (CreatureClassifications classification) |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
|
explicit |
Definition at line 46 of file Pet.cpp.
References ASSERT, GetOwner(), HUNTER_PET, Unit::InitCharmInfo(), m_focusRegenTimer, WorldObject::m_name, Unit::m_unitTypeMask, PET_FOCUS_REGEN_INTERVAL, UNIT_MASK_CONTROLABLE_GUARDIAN, UNIT_MASK_HUNTER_PET, and UNIT_MASK_PET.
|
virtualdefault |
| void Pet::_LoadAuras | ( | PreparedQueryResult | auraResult, |
| PreparedQueryResult | effectResult, | ||
| uint32 | timediff | ||
| ) |
Definition at line 1182 of file Pet.cpp.
References AuraLoadEffectInfo::Amounts, AuraLoadEffectInfo::BaseAmounts, ObjectGuid::BytesSize, DIFFICULTY_NONE, Field::GetBinaryView(), Field::GetDouble(), BaseEntity::GetGUID(), Field::GetInt32(), WorldObject::GetMap(), WorldLocation::GetMapId(), Field::GetUInt32(), Field::GetUInt8(), SpellInfo::HasAttribute(), SpellInfo::Id, IN_MILLISECONDS, ObjectGuid::IsEmpty(), SpellInfo::IsPositive(), MAX_SPELL_EFFECTS, SpellInfo::ProcCharges, sDifficultyStore, AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCasterGUID(), ObjectGuid::SetRawValue(), AuraCreateInfo::SetStackAmount(), SPELL_ATTR4_AURA_EXPIRES_OFFLINE, SPELL_CAST_SOURCE_NORMAL, sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), and Aura::TryCreate().
| void Pet::_LoadSpells | ( | PreparedQueryResult | result | ) |
Definition at line 1119 of file Pet.cpp.
References addSpell(), and PETSPELL_UNCHANGED.
| void Pet::_SaveAuras | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 1301 of file Pet.cpp.
References AuraKey::Caster, CHAR_DEL_PET_AURA_EFFECTS, CHAR_DEL_PET_AURAS, CHAR_INS_PET_AURA, CHAR_INS_PET_AURA_EFFECT, CharacterDatabase, ObjectGuid::Clear(), AuraKey::EffectMask, Aura::GenerateKey(), Aura::GetAuraEffects(), Aura::GetCastDifficulty(), Aura::GetCharges(), Aura::GetDuration(), BaseEntity::GetGUID(), Aura::GetMaxDuration(), ObjectGuid::GetRawValue(), Aura::GetStackAmount(), IsPetAura(), Unit::m_charmInfo, Unit::m_ownedAuras, PreparedStatementBase::setBinary(), PreparedStatementBase::setDouble(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and AuraKey::SpellId.
Referenced by SavePetToDB().
| void Pet::_SaveSpells | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 1133 of file Pet.cpp.
References CHAR_DEL_PET_SPELL_BY_SPELL, CHAR_INS_PET_SPELL, CharacterDatabase, Unit::m_charmInfo, m_spells, PETSPELL_CHANGED, PETSPELL_FAMILY, PETSPELL_NEW, PETSPELL_REMOVED, PETSPELL_UNCHANGED, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by SavePetToDB().
| bool Pet::addSpell | ( | uint32 | spellId, |
| ActiveStates | active = ACT_DECIDE, |
||
| PetSpellState | state = PETSPELL_NEW, |
||
| PetSpellType | type = PETSPELL_NORMAL |
||
| ) |
Definition at line 1356 of file Pet.cpp.
References ACT_DECIDE, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, PetSpell::active, SpellInfo::CasterAuraState, CastSpell, CHAR_DEL_INVALID_PET_SPELL, CharacterDatabase, DIFFICULTY_NONE, Unit::HasAuraState(), SpellInfo::IsAutocastable(), SpellInfo::IsAutocastEnabledByDefault(), SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), SpellInfo::IsPassive(), SpellInfo::IsRanked(), Unit::m_charmInfo, m_spells, PETSPELL_CHANGED, PETSPELL_REMOVED, PETSPELL_UNCHANGED, PreparedStatementBase::setUInt32(), sSpellMgr, PetSpell::state, TC_LOG_ERROR, ToggleAutocast(), PetSpell::type, and unlearnSpell().
Referenced by _LoadSpells(), LearnPetPassives(), learnSpell(), and learnSpells().
|
overridevirtual |
Reimplemented from Creature.
Definition at line 69 of file Pet.cpp.
References Unit::AddToWorld(), Creature::AIM_Initialize(), COMMAND_FOLLOW, Unit::GetCharmInfo(), WorldObject::GetInstanceScript(), WorldObject::GetMap(), Map::GetObjectsStore(), WorldObject::GetZoneScript(), CharmInfo::HasCommandState(), TypeListContainer< UnderlyingContainer, Types >::Insert(), BaseEntity::IsInWorld(), CharmInfo::SetIsAtStay(), CharmInfo::SetIsCommandAttack(), CharmInfo::SetIsCommandFollow(), CharmInfo::SetIsFollowing(), and CharmInfo::SetIsReturning().
| void Pet::CastPetAura | ( | PetAura const * | aura | ) |
Definition at line 1758 of file Pet.cpp.
References CastSpellExtraArgs::AddSpellMod(), CalculatePct(), CastSpell, PetAura::GetAura(), PetAura::GetDamage(), Object::GetEntry(), Unit::GetStat(), SPELLVALUE_BASE_POINT0, STAT_INTELLECT, STAT_STAMINA, TRIGGERED_FULL_MASK, and CastSpellExtraArgsInit::TriggerFlags.
Referenced by CastPetAuras().
| void Pet::CastPetAuras | ( | bool | current | ) |
Definition at line 1739 of file Pet.cpp.
References CastPetAura(), GetOwner(), IsPermanentPetFor(), PetAura::IsRemovedOnChangePet(), Player::m_petAuras, and Player::RemovePetAura().
Referenced by InitPetCreateSpells(), and setDeathState().
| void Pet::CleanupActionBar | ( | ) |
Definition at line 1596 of file Pet.cpp.
References ACT_ENABLED, ACT_PASSIVE, DIFFICULTY_NONE, HasSpell(), Unit::m_charmInfo, MAX_UNIT_ACTION_BAR_INDEX, sSpellMgr, and ToggleAutocast().
Referenced by LoadPetFromDB(), and SetSpecialization().
| bool Pet::Create | ( | ObjectGuid::LowType | guidlow, |
| Map * | map, | ||
| uint32 | Entry, | ||
| uint32 | pet_number | ||
| ) |
Definition at line 1689 of file Pet.cpp.
References BaseEntity::_Create(), ASSERT, Entry, Map::GetId(), Unit::GetThreatManager(), Creature::InitEntry(), ThreatManager::Initialize(), Creature::m_originalEntry, WorldObject::SetMap(), Unit::SetSheath(), Unit::SetUnitFlag2(), SHEATH_STATE_MELEE, and UNIT_FLAG2_REGENERATE_POWER.
Referenced by CreateBaseAtTamed(), LoadPetFromDB(), and Player::SummonPet().
| bool Pet::CreateBaseAtCreature | ( | Creature * | creature | ) |
Definition at line 768 of file Pet.cpp.
References ASSERT, CreateBaseAtTamed(), CreatureTemplate::family, Creature::GetCreatureTemplate(), Unit::GetDisplayId(), BaseEntity::GetGUID(), WorldObject::GetMap(), Creature::GetNameForLocaleIdx(), Position::GetOrientation(), GetOwner(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Position::IsPositionValid(), Position::Relocate(), sCreatureFamilyStore, SetDisplayId(), WorldObject::SetName(), sObjectMgr, TC_LOG_ERROR, and Position::ToString().
Referenced by Unit::CreateTamedPetFrom().
| bool Pet::CreateBaseAtCreatureInfo | ( | CreatureTemplate const * | cinfo, |
| Unit * | owner | ||
| ) |
Definition at line 801 of file Pet.cpp.
References CreateBaseAtTamed(), CreatureTemplate::family, WorldObject::GetMap(), Position::GetOrientation(), GetOwner(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Position::Relocate(), sCreatureFamilyStore, and WorldObject::SetName().
Referenced by Unit::CreateTamedPetFrom().
| bool Pet::CreateBaseAtTamed | ( | CreatureTemplate const * | cinfo, |
| Map * | map | ||
| ) |
Definition at line 814 of file Pet.cpp.
References CLASS_WARRIOR, Create(), CREATURE_TYPE_BEAST, CreatureTemplate::Entry, GENDER_NONE, Map::GenerateLowGuid(), Unit::GetLevel(), Pet, PET_XP_FACTOR, POWER_FOCUS, Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Unit::ReplaceAllPetFlags(), Unit::SetClass(), Unit::SetGender(), SetPetExperience(), Unit::SetPetNameTimestamp(), SetPetNextLevelExperience(), Unit::SetPowerType(), Unit::SetSheath(), SHEATH_STATE_MELEE, sObjectMgr, TC_LOG_DEBUG, CreatureTemplate::type, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_NONE, UNIT_PET_FLAG_CAN_BE_ABANDONED, and UNIT_PET_FLAG_CAN_BE_RENAMED.
Referenced by CreateBaseAtCreature(), and CreateBaseAtCreatureInfo().
|
static |
Definition at line 563 of file Pet.cpp.
References CHAR_DEL_CHAR_PET_BY_ID, CHAR_DEL_CHAR_PET_DECLINEDNAME, CHAR_DEL_PET_AURA_EFFECTS, CHAR_DEL_PET_AURAS, CHAR_DEL_PET_SPELL_CHARGES, CHAR_DEL_PET_SPELL_COOLDOWNS, CHAR_DEL_PET_SPELLS, CharacterDatabase, and PreparedStatementBase::setUInt32().
Referenced by Player::DeleteFromDB(), Player::DeletePetFromDB(), and SavePetToDB().
| void Pet::FillPetInfo | ( | PetStable::PetInfo * | petInfo, |
| Optional< ReactStates > | forcedReactState = {} |
||
| ) | const |
Definition at line 544 of file Pet.cpp.
References PetStable::PetInfo::ActionBar, PetStable::PetInfo::CreatedBySpellId, PetStable::PetInfo::CreatureId, PetStable::PetInfo::DisplayId, PetStable::PetInfo::Experience, GenerateActionBarData(), Object::GetEntry(), GameTime::GetGameTime(), Unit::GetHealth(), Unit::GetLevel(), WorldObject::GetName(), Unit::GetNativeDisplayId(), getPetType(), Unit::GetPower(), Creature::GetReactState(), GetSpecialization(), Unit::HasPetFlag(), PetStable::PetInfo::Health, PetStable::PetInfo::LastSaveTime, PetStable::PetInfo::Level, Unit::m_charmInfo, Unit::m_unitData, PetStable::PetInfo::Mana, PetStable::PetInfo::Name, PetStable::PetInfo::PetNumber, POWER_MANA, PetStable::PetInfo::ReactState, PetStable::PetInfo::SpecializationId, PetStable::PetInfo::Type, UNIT_PET_FLAG_CAN_BE_RENAMED, and PetStable::PetInfo::WasRenamed.
Referenced by Unit::InitTamedPet(), SavePetToDB(), and Player::SummonPet().
| std::string Pet::GenerateActionBarData | ( | ) | const |
Definition at line 1939 of file Pet.cpp.
References ACTION_BAR_INDEX_END, ACTION_BAR_INDEX_START, and Unit::m_charmInfo.
Referenced by FillPetInfo(), and SavePetToDB().
|
overridevirtual |
Reimplemented from Guardian.
Definition at line 1952 of file Pet.cpp.
References Guardian::GetDebugInfo(), getPetType(), and Unit::m_charmInfo.
Referenced by Unit::Kill().
|
inline |
|
inline |
Definition at line 90 of file Pet.h.
Referenced by Player::PetSpellInitialize().
|
static |
Definition at line 105 of file Pet.cpp.
References PetStable::ActivePets, PetStable::GetCurrentActivePetIndex(), PET_SAVE_AS_CURRENT, PET_SAVE_AS_DELETED, PET_SAVE_FIRST_ACTIVE_SLOT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_LAST_ACTIVE_SLOT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, PetStable::StabledPets, and PetStable::UnslottedPets.
Referenced by Player::_LoadPetStable(), Spell::CheckCast(), LoadPetFromDB(), and Player::SetPetSlot().
|
overridevirtual |
Reimplemented from Creature.
Definition at line 1814 of file Pet.cpp.
References Creature::GetCreatureTemplate(), Unit::GetLevel(), Creature::GetNativeObjectScale(), getPetType(), HUNTER_PET, CreatureFamilyEntry::MaxScale, CreatureFamilyEntry::MaxScaleLevel, CreatureFamilyEntry::MinScale, CreatureFamilyEntry::MinScaleLevel, and sCreatureFamilyStore.
| Player * Pet::GetOwner | ( | ) | const |
Definition at line 1809 of file Pet.cpp.
References Minion::GetOwner(), and Object::ToPlayer().
Referenced by spell_warl_pet_passive_voidwalker::spell_warl_pet_passive_voidwalker_AuraScript::CalculateAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), CastPetAuras(), Spell::CheckCast(), CreateBaseAtCreature(), CreateBaseAtCreatureInfo(), Spell::EffectLearnPetSpell(), GivePetXP(), pet_commandscript::HandlePetLevelCommand(), IsPetAura(), learnSpell(), learnSpells(), Pet(), Remove(), removeSpell(), ResetGroupUpdateFlag(), SavePetToDB(), SetGroupUpdateFlag(), SetSpecialization(), SynchronizeLevelWithOwner(), unlearnSpell(), unlearnSpells(), and Update().
|
inlineoverridevirtual |
|
inline |
Definition at line 51 of file Pet.h.
Referenced by Spell::CheckCast(), FillPetInfo(), GetDebugInfo(), GetNativeObjectScale(), GivePetLevel(), GivePetXP(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), IsPermanentPetFor(), LoadPetFromDB(), SavePetToDB(), setDeathState(), SynchronizeLevelWithOwner(), and Update().
|
inline |
Definition at line 133 of file Pet.h.
Referenced by FillPetInfo(), AuraEffect::HandleOverridePetSpecs(), LoadPetFromDB(), Player::PetSpellInitialize(), and SavePetToDB().
| void Pet::GivePetLevel | ( | uint8 | level | ) |
Definition at line 753 of file Pet.cpp.
References Unit::GetLevel(), getPetType(), HUNTER_PET, InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), PET_XP_FACTOR, SetPetExperience(), SetPetNextLevelExperience(), and sObjectMgr.
Referenced by GivePetXP(), pet_commandscript::HandlePetLevelCommand(), and SynchronizeLevelWithOwner().
| void Pet::GivePetXP | ( | uint32 | xp | ) |
Definition at line 716 of file Pet.cpp.
References CONFIG_MAX_PLAYER_LEVEL, Unit::GetLevel(), GetOwner(), getPetType(), GivePetLevel(), HUNTER_PET, Unit::IsAlive(), Unit::m_unitData, SetPetExperience(), and sWorld.
|
overridevirtual |
Reimplemented from Creature.
Definition at line 1711 of file Pet.cpp.
References m_spells, and PETSPELL_REMOVED.
Referenced by CleanupActionBar(), pet_commandscript::HandlePetLearnCommand(), and pet_commandscript::HandlePetUnlearnCommand().
| bool Pet::HaveInDiet | ( | ItemTemplate const * | item | ) | const |
Definition at line 1101 of file Pet.cpp.
References CreatureTemplate::family, ItemTemplate::FoodType, Creature::GetCreatureTemplate(), CreatureFamilyEntry::PetFoodMask, and sCreatureFamilyStore.
Referenced by Spell::CheckCast().
| void Pet::InitLevelupSpellsForLevel | ( | ) |
Definition at line 1494 of file Pet.cpp.
References DIFFICULTY_NONE, Creature::GetCreatureTemplate(), Object::GetEntry(), Unit::GetLevel(), SpellInfo::Id, learnSpell(), SpellInfo::SpellLevel, sSpellMgr, and unlearnSpell().
Referenced by GivePetLevel(), and InitPetCreateSpells().
| void Pet::InitPetCreateSpells | ( | ) |
Definition at line 1612 of file Pet.cpp.
References CastPetAuras(), InitLevelupSpellsForLevel(), LearnPetPassives(), Unit::m_charmInfo, and m_spells.
Referenced by Unit::InitTamedPet(), and Player::SummonPet().
|
inline |
Definition at line 53 of file Pet.h.
References HUNTER_PET, and SUMMON_PET.
Referenced by Spell::EffectSummonPet(), Unit::Kill(), LoadPetFromDB(), Player::RemovePet(), SavePetToDB(), SetDisplayId(), Player::UnsummonPetTemporaryIfAny(), Update(), and Unit::UpdateAuraForGroup().
|
inlineoverridevirtual |
| bool Pet::IsPermanentPetFor | ( | Player * | owner | ) | const |
Definition at line 1666 of file Pet.cpp.
References CLASS_DEATH_KNIGHT, CLASS_MAGE, CLASS_WARLOCK, CREATURE_TYPE_DEMON, CREATURE_TYPE_ELEMENTAL, CREATURE_TYPE_UNDEAD, Unit::GetClass(), Creature::GetCreatureTemplate(), getPetType(), HUNTER_PET, SUMMON_PET, and CreatureTemplate::type.
Referenced by CastPetAuras(), LoadPetFromDB(), and Player::PetSpellInitialize().
| bool Pet::IsPetAura | ( | Aura const * | aura | ) |
Definition at line 1773 of file Pet.cpp.
References Object::GetEntry(), Aura::GetId(), GetOwner(), and Player::m_petAuras.
Referenced by _SaveAuras().
|
inline |
Definition at line 54 of file Pet.h.
Referenced by LoadPetFromDB(), and Player::UnsummonPetTemporaryIfAny().
| void Pet::LearnPetPassives | ( | ) |
Definition at line 1718 of file Pet.cpp.
References ACT_DECIDE, addSpell(), CreatureTemplate::family, Creature::GetCreatureTemplate(), PETSPELL_FAMILY, PETSPELL_NEW, sCreatureFamilyStore, and sPetFamilySpellsStore.
Referenced by InitPetCreateSpells().
| void Pet::LearnSpecializationSpells | ( | ) |
Definition at line 1859 of file Pet.cpp.
References DIFFICULTY_NONE, Unit::GetLevel(), learnSpells(), m_petSpecialization, sDB2Manager, SpecializationSpellsEntry::SpellID, SpellInfo::SpellLevel, and sSpellMgr.
Referenced by SetSpecialization().
| bool Pet::learnSpell | ( | uint32 | spell_id | ) |
Definition at line 1462 of file Pet.cpp.
References addSpell(), GetOwner(), m_loading, Player::PetSpellInitialize(), Player::SendDirectMessage(), WorldPackets::Pet::PetLearnedSpells::Spells, and WorldPackets::Pet::PetLearnedSpells::Write().
Referenced by Spell::EffectLearnPetSpell(), pet_commandscript::HandlePetLearnCommand(), InitLevelupSpellsForLevel(), learnSpellHighRank(), and removeSpell().
| void Pet::learnSpellHighRank | ( | uint32 | spellid | ) |
Definition at line 1785 of file Pet.cpp.
References learnSpell(), learnSpellHighRank(), and sSpellMgr.
Referenced by learnSpellHighRank().
| void Pet::learnSpells | ( | std::vector< uint32 > const & | spellIds | ) |
Definition at line 1478 of file Pet.cpp.
References addSpell(), GetOwner(), Player::GetSession(), m_loading, WorldSession::SendPacket(), WorldPackets::Pet::PetLearnedSpells::Spells, and WorldPackets::Pet::PetLearnedSpells::Write().
Referenced by LearnSpecializationSpells().
| bool Pet::LoadPetFromDB | ( | Player * | owner, |
| uint32 | petEntry, | ||
| uint32 | petnumber, | ||
| bool | current, | ||
| Optional< PetSaveMode > | forcedSlot = {} |
||
| ) |
Definition at line 205 of file Pet.cpp.
References PetStable::PetInfo::ActionBar, PetStable::ActivePets, WorldSession::AddQueryHolderCallback(), Map::AddToMap(), SQLQueryHolderCallback::AfterComplete(), ASSERT, ASSERT_NOTNULL, Player::CanTameExoticPets(), CharacterDatabase, CLASS_WARRIOR, CleanupActionBar(), COMMAND_FOLLOW, Create(), PetStable::PetInfo::CreatedBySpellId, PetStable::PetInfo::CreatureId, PetStable::CurrentPetIndex, PetLoadQueryHolder::DECLINED_NAMES, DIFFICULTY_NONE, Player::DisablePetControlsOnMount(), PetStable::PetInfo::DisplayId, PetStable::PetInfo::Experience, GENDER_NONE, Map::GenerateLowGuid(), WorldObject::GetClosePoint(), Unit::GetCombatReach(), ObjectGuid::GetCounter(), PetStable::GetCurrentPet(), CreatureTemplate::GetDifficulty(), Map::GetDifficultyID(), SpellInfo::GetDuration(), Unit::GetFaction(), Minion::GetFollowAngle(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Unit::GetLevel(), GetLoadPetInfo(), WorldObject::GetMap(), Position::GetOrientation(), Player::GetPet(), Player::GetPetStable(), getPetType(), Position::GetPositionX(), Position::GetPositionY(), SQLQueryHolderBase::GetPreparedResult(), Player::GetSession(), GetSpecialization(), Field::GetString(), BaseEntity::GetTypeId(), GROUP_UPDATE_PET_FULL, Unit::HasAuraType(), PetStable::PetInfo::Health, HUNTER_PET, PhasingHandler::InheritPhaseShift(), Guardian::InitStatsForLevel(), isControlled(), Unit::IsCritter(), Unit::IsMounted(), IsPermanentPetFor(), Minion::IsPetGhoul(), Player::IsPetNeedBeTemporaryUnsummoned(), Position::IsPositionValid(), CreatureTemplate::IsTameable(), isTemporarySummoned(), JUST_DIED, PetStable::PetInfo::LastSaveTime, PetStable::PetInfo::Level, Creature::LoadTemplateImmunities(), Unit::m_charmInfo, m_declinedname, m_loading, PetStable::PetInfo::Mana, MAX_DECLINED_NAME_CASES, PetStable::PetInfo::Name, Pet, PET_FOLLOW_DIST, PET_SAVE_FIRST_ACTIVE_SLOT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_LAST_ACTIVE_SLOT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, PET_SPEC_OVERRIDE_CLASS_INDEX, PetStable::PetInfo::PetNumber, Player::PetSpellInitialize(), POWER_MANA, REACT_PASSIVE, PetStable::PetInfo::ReactState, Position::Relocate(), Player::RemovePet(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Unit::ReplaceAllPetFlags(), Unit::ReplaceAllUnitFlags(), sChrSpecializationStore, sDB2Manager, Unit::SetCanModifyStats(), Unit::SetClass(), Unit::SetCreatedBySpell(), Unit::SetCreatorGUID(), PetStable::SetCurrentActivePetIndex(), PetStable::SetCurrentUnslottedPetIndex(), setDeathState(), SetDisplayId(), Unit::SetFaction(), Unit::SetFullPower(), Unit::SetGender(), SetGroupUpdateFlag(), Unit::SetHealth(), Player::SetLastPetNumber(), Unit::SetMinion(), WorldObject::SetName(), SetPetExperience(), Unit::SetPetNameTimestamp(), setPetType(), Unit::SetPower(), Creature::SetReactState(), Unit::SetSheath(), SetSpecialization(), Player::SetTemporaryUnsummonedPetNumber(), SHEATH_STATE_MELEE, sObjectMgr, PetStable::PetInfo::SpecializationId, SPELL_AURA_OVERRIDE_PET_SPECS, sSpellMgr, SUMMON_PET, SynchronizeLevelWithOwner(), TC_LOG_DEBUG, TC_LOG_ERROR, Object::ToCreature(), Object::ToPlayer(), Position::ToString(), PetStable::PetInfo::Type, TYPEID_PLAYER, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_NONE, UNIT_PET_FLAG_CAN_BE_ABANDONED, UNIT_PET_FLAG_CAN_BE_RENAMED, PetStable::UnslottedPets, and PetStable::PetInfo::WasRenamed.
Referenced by spell_gen_pet_summoned::HandleScript(), Player::ResummonPetTemporaryUnSummonedIfAny(), and Player::SummonPet().
| void Pet::Remove | ( | PetSaveMode | mode, |
| bool | returnreagent = false |
||
| ) |
Definition at line 711 of file Pet.cpp.
References GetOwner(), and Player::RemovePet().
Referenced by BeforeVisibilityDestroy< Creature >(), Spell::EffectDismissPet(), AuraEffect::HandleModPossessPet(), and TempSummon::UnSummon().
|
overridevirtual |
Reimplemented from Minion.
Definition at line 94 of file Pet.cpp.
References WorldObject::GetMap(), Map::GetObjectsStore(), BaseEntity::IsInWorld(), TypeListContainer< UnderlyingContainer, Types >::Remove(), and Unit::RemoveFromWorld().
| void Pet::RemoveSpecializationSpells | ( | bool | clearActionBar | ) |
Definition at line 1879 of file Pet.cpp.
References MAX_SPECIALIZATIONS, PET_SPEC_OVERRIDE_CLASS_INDEX, sDB2Manager, SpecializationSpellsEntry::SpellID, and unlearnSpells().
Referenced by SetSpecialization().
| bool Pet::removeSpell | ( | uint32 | spell_id, |
| bool | learn_prev, | ||
| bool | clear_ab = true |
||
| ) |
Definition at line 1562 of file Pet.cpp.
References GetOwner(), learnSpell(), Unit::m_charmInfo, m_loading, m_spells, PETSPELL_NEW, PETSPELL_REMOVED, Player::PetSpellInitialize(), Unit::RemoveAurasDueToSpell(), and sSpellMgr.
Referenced by pet_commandscript::HandlePetUnlearnCommand(), unlearnSpell(), and unlearnSpells().
| void Pet::ResetGroupUpdateFlag | ( | ) |
Definition at line 1852 of file Pet.cpp.
References GetOwner(), GROUP_UPDATE_FLAG_PET, GROUP_UPDATE_FLAG_PET_NONE, m_groupUpdateMask, and Player::RemoveGroupUpdateFlag().
| void Pet::SavePetToDB | ( | PetSaveMode | mode | ) |
Definition at line 451 of file Pet.cpp.
References _SaveAuras(), _SaveSpells(), ASSERT, CHAR_DEL_CHAR_PET_BY_ID, CHAR_INS_PET, CharacterDatabase, DeleteFromDB(), FillPetInfo(), GenerateActionBarData(), ObjectGuid::GetCounter(), PetStable::GetCurrentActivePetIndex(), PetStable::GetCurrentPet(), Object::GetEntry(), GameTime::GetGameTime(), Unit::GetHealth(), Unit::GetLevel(), Unit::GetNativeDisplayId(), GetOwner(), Unit::GetOwnerGUID(), Player::GetPetStable(), getPetType(), Unit::GetPower(), Creature::GetReactState(), GetSpecialization(), Unit::GetSpellHistory(), Player::GetTemporaryPetReactState(), Player::GetTemporaryUnsummonedPetNumber(), Unit::HasPetFlag(), HUNTER_PET, isControlled(), IsPlayer, Unit::m_charmInfo, WorldObject::m_name, Unit::m_unitData, PET_SAVE_AS_CURRENT, PET_SAVE_AS_DELETED, PET_SAVE_LAST_ACTIVE_SLOT, PET_SAVE_NOT_IN_SLOT, PetStable::PetInfo::PetNumber, POWER_MANA, Unit::RemoveAllAuras(), SpellHistory::SaveToDB(), PreparedStatementBase::setInt16(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and UNIT_PET_FLAG_CAN_BE_RENAMED.
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectLearnPetSpell(), Spell::EffectResurrectPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Player::RemovePet(), and Player::SummonPet().
|
inlineoverrideprivatevirtual |
| void Pet::SendNewlyTamed | ( | bool | playPingFx = true | ) | const |
Definition at line 838 of file Pet.cpp.
References BaseEntity::GetGUID(), WorldPackets::Pet::PetNewlyTamed::PlayPingFX, WorldObject::SendMessageToSet(), WorldPackets::Pet::PetNewlyTamed::UnitGUID, and WorldPackets::Pet::PetNewlyTamed::Write().
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), and pet_commandscript::HandlePetCreateCommand().
|
overridevirtual |
Reimplemented from Minion.
Definition at line 598 of file Pet.cpp.
References ALIVE, CastPetAuras(), CORPSE, Unit::getDeathState(), getPetType(), HUNTER_PET, Unit::RemoveUnitFlag(), Object::ReplaceAllDynamicFlags(), Creature::setDeathState(), UNIT_DYNFLAG_NONE, and UNIT_FLAG_SKINNABLE.
Referenced by Spell::EffectResurrectPet(), spell_gen_pet_summoned::HandleScript(), and LoadPetFromDB().
|
overridevirtual |
Reimplemented from Creature.
Definition at line 1833 of file Pet.cpp.
References GROUP_UPDATE_FLAG_PET_MODEL_ID, isControlled(), Creature::SetDisplayId(), and SetGroupUpdateFlag().
Referenced by CreateBaseAtCreature(), and LoadPetFromDB().
|
inline |
Definition at line 89 of file Pet.h.
Referenced by Player::SummonPet().
| void Pet::SetGroupUpdateFlag | ( | uint32 | flag | ) |
Definition at line 1843 of file Pet.cpp.
References GetOwner(), GROUP_UPDATE_FLAG_PET, m_groupUpdateMask, and Player::SetGroupUpdateFlag().
Referenced by WorldSession::HandlePetRename(), LoadPetFromDB(), SetDisplayId(), and Unit::UpdateAuraForGroup().
|
inline |
Definition at line 85 of file Pet.h.
References Unit::m_unitData, UF::UnitData::PetExperience, and BaseEntity::SetUpdateFieldValue().
Referenced by CreateBaseAtTamed(), GivePetLevel(), GivePetXP(), LoadPetFromDB(), and Player::SummonPet().
|
inline |
Definition at line 86 of file Pet.h.
References Unit::m_unitData, UF::UnitData::PetNextLevelExperience, and BaseEntity::SetUpdateFieldValue().
Referenced by CreateBaseAtTamed(), GivePetLevel(), Guardian::InitStatsForLevel(), and Player::SummonPet().
|
inline |
Definition at line 52 of file Pet.h.
Referenced by LoadPetFromDB().
| void Pet::SetSpecialization | ( | uint16 | spec | ) |
Definition at line 1913 of file Pet.cpp.
References CleanupActionBar(), GetOwner(), Player::GetSession(), LearnSpecializationSpells(), m_petSpecialization, Player::PetSpellInitialize(), RemoveSpecializationSpells(), sChrSpecializationStore, WorldSession::SendPacket(), WorldPackets::Pet::SetPetSpecialization::SpecID, and WorldPackets::Pet::SetPetSpecialization::Write().
Referenced by Spell::EffectActivateSpec(), AuraEffect::HandleOverridePetSpecs(), and LoadPetFromDB().
| void Pet::SynchronizeLevelWithOwner | ( | ) |
Definition at line 1793 of file Pet.cpp.
References Unit::GetLevel(), GetOwner(), getPetType(), GivePetLevel(), HUNTER_PET, and SUMMON_PET.
Referenced by LoadPetFromDB().
| void Pet::ToggleAutocast | ( | SpellInfo const * | spellInfo, |
| bool | apply | ||
| ) |
Definition at line 1623 of file Pet.cpp.
References ACT_DISABLED, ACT_ENABLED, ASSERT, SpellInfo::Id, SpellInfo::IsAutocastable(), m_autospells, m_spells, PETSPELL_CHANGED, and PETSPELL_NEW.
Referenced by addSpell(), and CleanupActionBar().
| bool Pet::unlearnSpell | ( | uint32 | spell_id, |
| bool | learn_prev, | ||
| bool | clear_ab = true |
||
| ) |
Definition at line 1531 of file Pet.cpp.
References GetOwner(), m_loading, removeSpell(), Player::SendDirectMessage(), WorldPackets::Pet::PetUnlearnedSpells::Spells, and WorldPackets::Pet::PetUnlearnedSpells::Write().
Referenced by addSpell(), and InitLevelupSpellsForLevel().
| void Pet::unlearnSpells | ( | std::vector< uint32 > const & | spellIds, |
| bool | learn_prev, | ||
| bool | clear_ab = true |
||
| ) |
Definition at line 1546 of file Pet.cpp.
References GetOwner(), Player::GetSession(), m_loading, removeSpell(), WorldSession::SendPacket(), WorldPackets::Pet::PetUnlearnedSpells::Spells, and WorldPackets::Pet::PetUnlearnedSpells::Write().
Referenced by RemoveSpecializationSpells().
|
overridevirtual |
Reimplemented from Creature.
Definition at line 619 of file Pet.cpp.
References ALIVE, ASSERT, CORPSE, Object::GetEntry(), GameTime::GetGameTime(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), GetOwner(), Unit::GetPetGUID(), getPetType(), WorldSession::GetPlayerInfo(), Unit::GetPowerType(), Player::GetSession(), WorldObject::GetVisibilityRange(), HUNTER_PET, isControlled(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), Creature::m_corpseRemoveTime, Unit::m_deathState, m_duration, m_focusRegenTimer, m_loading, m_removed, PET_FOCUS_REGEN_INTERVAL, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, POWER_FOCUS, Creature::Regenerate(), Remove, SUMMON_PET, TC_LOG_ERROR, and Creature::Update().
| AutoSpellList Pet::m_autospells |
Definition at line 129 of file Pet.h.
Referenced by ToggleAutocast().
|
protected |
Definition at line 157 of file Pet.h.
Referenced by LoadPetFromDB().
|
protected |
|
protected |
Definition at line 155 of file Pet.h.
Referenced by ResetGroupUpdateFlag(), and SetGroupUpdateFlag().
|
protected |
Definition at line 153 of file Pet.h.
Referenced by learnSpell(), learnSpells(), LoadPetFromDB(), removeSpell(), unlearnSpell(), unlearnSpells(), and Update().
|
protected |
Definition at line 159 of file Pet.h.
Referenced by LearnSpecializationSpells(), and SetSpecialization().
| bool Pet::m_removed |
Definition at line 144 of file Pet.h.
Referenced by Player::RemovePet(), and Update().
| PetSpellMap Pet::m_spells |
Definition at line 128 of file Pet.h.
Referenced by _SaveSpells(), addSpell(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), HasSpell(), InitPetCreateSpells(), Player::PetSpellInitialize(), removeSpell(), and ToggleAutocast().