|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Pet.h>
Public Member Functions | |
| void | _LoadAuras (uint32 timediff) |
| void | _LoadSpellCooldowns () |
| void | _LoadSpells () |
| void | _SaveAuras (SQLTransaction &trans) |
| void | _SaveSpellCooldowns (SQLTransaction &trans) |
| void | _SaveSpells (SQLTransaction &trans) |
| bool | addSpell (uint32 spellId, ActiveStates active=ACT_DECIDE, PetSpellState state=PETSPELL_NEW, PetSpellType type=PETSPELL_NORMAL) |
| void | AddToWorld () |
| void | CastPetAura (PetAura const *aura) |
| void | CastPetAuras (bool current) |
| void | CleanupActionBar () |
| void | ClearTransportExitGrace () |
| bool | Create (uint32 guidlow, Map *map, uint32 EntryEntry, uint32 pet_number) |
| bool | CreateBaseAtCreature (Creature *creature) |
| bool | CreateBaseAtCreatureInfo (CreatureTemplate const *cinfo, Unit *owner) |
| bool | CreateBaseAtTamed (CreatureTemplate const *cinfo, Map *map) |
| uint64 | GetAuraUpdateMaskForRaid () const |
| uint32 | GetCurrentFoodBenefitLevel (uint32 itemlevel) const |
| DeclinedName const * | GetDeclinedNames () const |
| int32 | GetDuration () const |
| uint8 | GetFreeTalentPoints () const |
| uint8 | GetMaxTalentPointsForLevel (uint8 level) |
| Player * | GetOwner () const |
| uint32 | GetPetAutoSpellOnPos (uint8 pos) const |
| uint8 | GetPetAutoSpellSize () const |
| uint16 | GetPetSpecByTalentTab (uint16 talenttab) |
| PetType | getPetType () const |
| uint16 | GetSpecialization () const |
| void | GivePetLevel (uint8 level) |
| void | GivePetXP (uint32 xp) |
| bool | HasSpell (uint32 spell) const |
| bool | HasTransportExitGrace () const |
| bool | HaveInDiet (ItemTemplate const *item) const |
| void | InitLevelupSpellsForLevel () |
| void | InitPetCreateSpells () |
| void | InitTalentForLevel () |
| bool | isBeingLoaded () const |
| bool | isControlled () const |
| bool | IsPermanentPetFor (Player *owner) const |
| bool | IsPetAura (Aura const *aura) |
| bool | isTemporarySummoned () const |
| void | LearnPetPassives () |
| void | LearnSpecializationSpells () |
| bool | learnSpell (uint32 spell_id) |
| void | learnSpellHighRank (uint32 spellid) |
| bool | LoadPetFromDB (Player *owner, uint32 petentry=0, uint32 petnumber=0, bool current=false) |
| Pet (Player *owner, PetType type=PetType::MAX_PET_TYPE) | |
| virtual void | ProhibitSpellSchool (SpellSchoolMask idSchoolMask, uint32 unTimeMs) |
| void | Remove (PetSaveMode mode, bool returnreagent=false) |
| void | RemoveFromWorld () |
| bool | removeSpell (uint32 spell_id, bool learn_prev, bool clear_ab=true) |
| void | ResetAuraUpdateMaskForRaid () |
| bool | resetTalents () |
| void | SavePetToDB (PetSaveMode mode) |
| void | SetAuraUpdateMaskForRaid (uint8 slot) |
| void | setDeathState (DeathState s) |
| void | SetDisplayId (uint32 modelId) |
| void | SetDuration (int32 dur) |
| void | SetFreeTalentPoints (uint8 points) |
| void | setPetType (PetType type) |
| void | SetSpec (uint16 spec) |
| void | StartTransportExitGrace (uint32 duration) |
| void | SynchronizeLevelWithOwner () |
| void | ToggleAutocast (SpellInfo const *spellInfo, bool apply) |
| void | UnlearnSpecializationSpells () |
| bool | unlearnSpell (uint32 spell_id, bool learn_prev, bool clear_ab=true) |
| void | Update (uint32 diff) |
| virtual | ~Pet () |
| Public Member Functions inherited from Guardian | |
| int32 | GetBonusDamage () const |
| Guardian (SummonPropertiesEntry const *properties, Unit *owner, bool isWorldObject) | |
| void | InitStats (uint32 duration) OVERRIDE |
| bool | InitStatsForLevel (uint8 level) |
| void | InitSummon () OVERRIDE |
| void | SetBonusDamage (int32 damage) |
| bool | UpdateAllStats () OVERRIDE |
| void | UpdateArmor () OVERRIDE |
| void | UpdateAttackPowerAndDamage (bool ranged=false) OVERRIDE |
| void | UpdateDamagePhysical (WeaponAttackType attType) OVERRIDE |
| void | UpdateMaxHealth () OVERRIDE |
| void | UpdateMaxPower (Powers power) OVERRIDE |
| void | UpdateResistances (uint32 school) OVERRIDE |
| bool | UpdateStats (Stats stat) OVERRIDE |
| Public Member Functions inherited from Minion | |
| float | GetFollowAngle () const OVERRIDE |
| Unit * | GetOwner () const |
| void | InitStats (uint32 duration) OVERRIDE |
| bool | IsGuardianPet () const |
| bool | IsPetGhoul () const |
| bool | IsSpiritWolf () const |
| bool | IsWhiteTiger () const |
| Minion (SummonPropertiesEntry const *properties, Unit *owner, bool isWorldObject) | |
| void | SetFollowAngle (float angle) |
| Public Member Functions inherited from TempSummon | |
| Unit * | GetSummoner () const |
| Creature * | GetSummonerCreatureBase () const |
| uint64 | GetSummonerGUID () const |
| TempSummonType const & | GetSummonType () const |
| uint32 | GetTimer () const |
| void | RemoveFromWorld () OVERRIDE |
| void | SaveToDB (uint32, uint32) OVERRIDE |
| void | SetTempSummonType (TempSummonType type) |
| TempSummon (SummonPropertiesEntry const *properties, Unit *owner, bool isWorldObject) | |
| virtual void | UnSummon (uint32 msTime=0) |
| void | Update (uint32 time) OVERRIDE |
| virtual | ~TempSummon () |
| Public Member Functions inherited from Creature | |
| void | _AddCreatureCategoryCooldown (uint32 category, time_t apply_time) |
| void | _AddCreatureSpellCooldown (uint32 spell_id, time_t end_time) |
| bool | _IsTargetAcceptable (const Unit *target) const |
| void | AddCreatureSpellCooldown (uint32 spellid) |
| void | AddLootMode (uint16 lootMode) |
| CreatureAI * | AI () const |
| bool | AIM_Initialize (CreatureAI *ai=NULL) |
| void | AllLootRemovedFromCorpse () |
| void | CallAssistance () |
| void | CallForHelp (float fRadius) |
| bool | CanAssistTo (const Unit *u, const Unit *enemy, bool checkfaction=true) const |
| bool | CanCreatureAttack (Unit const *victim, bool force=true) const |
| bool | CanFly () const OVERRIDE |
| bool | CanStartAttack (Unit const *u, bool force) const |
| bool | CanSwim () const |
| bool | CanWalk () const |
| bool | Create (uint32 guidlow, Map *map, uint32 EntryEntry, uint32 vehId, uint32 team, float x, float y, float z, float ang, const CreatureData *data=NULL) |
| Creature (bool isWorldObject=false) | |
| void | DespawnOrUnsummon (uint32 msTimeToDespawn=0) |
| void | DisappearAndDie () |
| void | DoFleeToGetAssistance () |
| void | FarTeleportTo (Map *map, float X, float Y, float Z, float O) |
| void | FocusTarget (Spell const *focusSpell, WorldObject const *target) |
| float | GetAggroRange (Unit const *target) const |
| std::string | GetAIName () const |
| float | GetAttackDistance (Unit const *player) const |
| uint32 | GetCorpseDelay () const |
| CreatureAddon const * | GetCreatureAddon () const |
| CreatureData const * | GetCreatureData () const |
| uint32 | GetCreatureSpellCooldownDelay (uint32 spellId) const |
| CreatureTemplate const * | GetCreatureTemplate () const |
| uint8 | GetCurrentEquipmentId () const |
| uint32 | GetCurrentWaypointID () const |
| uint32 | GetDBTableGUIDLow () const |
| MovementGeneratorType | GetDefaultMovementType () const |
| CreatureGroup * | GetFormation () |
| const Position & | GetHomePosition () const |
| void | GetHomePosition (float &x, float &y, float &z, float &ori) const |
| uint8 | getLevelForTarget (WorldObject const *target) const OVERRIDE |
| uint16 | GetLootMode () const |
| Player * | GetLootRecipient () const |
| Group * | GetLootRecipientGroup () const |
| SpellSchoolMask | GetMeleeDamageSchoolMask () const OVERRIDE |
| std::string const & | GetNameForLocaleIdx (LocaleConstant locale_idx) const OVERRIDE |
| uint32 | GetOriginalEntry () const |
| int8 | GetOriginalEquipmentId () const |
| ReactStates | GetReactState () const |
| uint32 | GetRespawnDelay () const |
| void | GetRespawnPosition (float &x, float &y, float &z, float *ori=NULL, float *dist=NULL) const |
| float | GetRespawnRadius () const |
| time_t const & | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| uint32 | GetScriptId () const |
| std::string | GetScriptName () const |
| float | GetSpellDamageMod (int32 Rank) const |
| TrainerSpellData const * | GetTrainerSpells () const |
| const Position & | GetTransportHomePosition () |
| void | GetTransportHomePosition (float &x, float &y, float &z, float &ori) |
| uint32 | GetVendorItemCurrentCount (VendorItem const *vItem) |
| VendorItemData const * | GetVendorItems () const |
| uint32 | GetWaypointPath () const |
| bool | HasCategoryCooldown (uint32 spell_id) const |
| bool | hasInvolvedQuest (uint32 quest_id) const OVERRIDE |
| bool | HasLootMode (uint16 lootMode) const |
| bool | hasLootRecipient () const |
| bool | hasQuest (uint32 quest_id) const OVERRIDE |
| bool | HasReactState (ReactStates state) const |
| bool | HasSearchedAssistance () const |
| bool | HasSpellCooldown (uint32 spell_id) const |
| void | InitializeReactState () |
| bool | isCanInteractWithBattleMaster (Player *player, bool msg) const |
| bool | isCanTrainingAndResetTalentsOf (Player *player) const |
| bool | IsCivilian () const |
| bool | IsDamageEnoughForLootingAndReward () const |
| bool | IsDungeonBoss () const |
| bool | isElite () const |
| bool | IsGuard () const |
| bool | IsImmunedToSpell (SpellInfo const *spellInfo) const OVERRIDE |
| bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const OVERRIDE |
| bool | IsInEvadeMode () const |
| bool | IsRacialLeader () const |
| bool | isRegeneratingHealth () const |
| bool | IsReputationGainDisabled () const |
| bool | isTappedBy (Player const *player) const |
| bool | IsTrigger () const |
| bool | isWorldBoss () const |
| bool | LoadCreatureFromDB (uint32 guid, Map *map, bool addToMap=true) |
| bool | LoadCreaturesAddon (bool reload=false) |
| void | LoadEquipment (int8 id=1, bool force=false) |
| bool | LoadFromDB (uint32 guid, Map *map) |
| void | LoadPath (uint32 pathid) |
| void | LowerPlayerDamageReq (uint32 unDamage) |
| void | Motion_Initialize () |
| SpellInfo const * | reachWithSpellAttack (Unit *victim) |
| SpellInfo const * | reachWithSpellCure (Unit *victim) |
| void | ReleaseFocus (Spell const *focusSpell) |
| void | RemoveCorpse (bool setSpawnTime=true) |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| void | ResetPlayerDamageReq () |
| void | Respawn (bool force=false) |
| void | SaveRespawnTime () OVERRIDE |
| void | SaveToDB () |
| void | SearchFormation () |
| void | SelectLevel (const CreatureTemplate *cinfo) |
| Unit * | SelectNearestHostileUnitInAggroRange (bool useLOS=false) const |
| Player * | SelectNearestPlayer (float distance=0) const |
| Unit * | SelectNearestTarget (float dist=0, bool playerOnly=false) const |
| Unit * | SelectNearestTargetInAttackDistance (float dist=0) const |
| Unit * | SelectVictim () |
| void | SendAIReaction (AiReaction reactionType) |
| void | SendZoneUnderAttackMessage (Player *attacker) |
| Send a message to LocalDefense channel for players opposition team in the zone. | |
| void | SetCorpseDelay (uint32 delay) |
| void | SetCurrentEquipmentId (uint8 id) |
| void | SetDefaultMovementType (MovementGeneratorType mgt) |
| void | SetDisableReputationGain (bool disable) |
| void | SetFlying (bool enable) |
| void | SetFormation (CreatureGroup *formation) |
| void | SetHomePosition (const Position &pos) |
| void | SetHomePosition (float x, float y, float z, float o) |
| void | SetInCombatWithZone () |
| void | SetLootMode (uint16 lootMode) |
| void | SetLootRecipient (Unit *unit) |
| void | SetMeleeDamageSchool (SpellSchools school) |
| void | SetNoCallAssistance (bool val) |
| void | SetNoSearchAssistance (bool val) |
| void | SetObjectScale (float scale) OVERRIDE |
| void | SetOriginalEntry (uint32 entry) |
| void | SetPosition (const Position &pos) |
| void | SetPosition (float x, float y, float z, float o) |
| void | SetReactState (ReactStates st) |
| void | setRegeneratingHealth (bool regenHealth) |
| void | SetRespawnDelay (uint32 delay) |
| void | SetRespawnRadius (float dist) |
| void | SetRespawnTime (uint32 respawn) |
| void | SetTarget (uint64 guid) OVERRIDE |
| void | SetTransportHomePosition (const Position &pos) |
| void | SetTransportHomePosition (float x, float y, float z, float o) |
| bool | UpdateEntry (uint32 entry, uint32 team=ALLIANCE, const CreatureData *data=NULL) |
| void | UpdateMovementFlags () |
| uint32 | UpdateVendorItemCurrentCount (VendorItem const *vItem, uint32 used_count) |
| void | UpdateWaypointID (uint32 wpID) |
| virtual | ~Creature () |
| Public Member Functions inherited from Unit | |
| void | _addAttacker (Unit *pAttacker) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| void | _ApplyAllAuraStatMods () |
| void | _ApplyAura (AuraApplication *aurApp, uint32 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint32 effMask) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=NULL) |
| void | _ExitVehicle (Position const *exitPosition=NULL) |
| bool | _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const |
| bool | _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=NULL) const |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _RemoveAllAuraStatMods () |
| void | _removeAttacker (Unit *pAttacker) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura) |
| Aura * | _TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint32 effMask, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| void | AddComboPointHolder (uint32 lowguid) |
| void | AddExtraUnitMovementFlag (uint16 f) |
| void | addFollower (FollowerReference *pRef) |
| void | AddGameObject (GameObject *gameObj) |
| void | addHatedBy (HostileReference *pHostileReference) |
| void | AddInterruptMask (uint32 mask) |
| void | AddPetAura (PetAura const *petSpell) |
| void | AddPlayerToVision (Player *player) |
| void | AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL) |
| void | AddToWorld () override |
| void | AddUnitMovementFlag (uint32 f) |
| void | AddUnitState (uint32 f) |
| void | AddUnitTypeMask (uint32 mask) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| float | ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration) |
| float | ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const |
| void | ApplyResilience (Unit const *victim, int32 *damage, bool isCrit) const |
| void | ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplySpellDispelImmunity (const SpellInfo *spellProto, DispelType type, bool apply) |
| void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply) |
| void | ApplyStatBuffMod (Stats stat, float val, bool apply) |
| void | ApplyStatPercentBuffMod (Stats stat, float val, bool apply) |
| float | ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, bool extra=false) |
| bool | AttackStop () |
| uint32 | BuildAuraStateUpdateForTarget (Unit *target) const |
| void | CalcAbsorbResist (Unit *victim, SpellSchoolMask schoolMask, DamageEffectType damagetype, uint32 const damage, uint32 *absorb, uint32 *resist, SpellInfo const *spellInfo=NULL) |
| uint32 | CalcArmorReducedDamage (Unit *victim, const uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::MAX_ATTACK) |
| void | CalcHealAbsorb (Unit *victim, SpellInfo const *spellInfo, uint32 &healAmount, uint32 &absorb) |
| int32 | CalcSpellDuration (SpellInfo const *spellProto) |
| uint32 | CalcSpellResistance (Unit *victim, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) const |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) |
| float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
| float | CalculateLevelPenalty (SpellInfo const *spellProto) const |
| void | CalculateMeleeDamage (Unit *victim, uint32 damage, CalcDamageInfo *damageInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) |
| int32 | CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=NULL) const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK, bool crit=false) |
| bool | CanDualWield () const |
| bool | CanFreeMove () const |
| bool | CanHaveThreatList () const |
| bool | CanModifyStats () const |
| bool | CanProc () const |
| bool | CanUseAttackType (WeaponAttackType attacktype) const |
| void | CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastStop (uint32 except_spellid=0) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | ClearAllReactives () |
| void | ClearComboPointHolders () |
| void | ClearDiminishings () |
| void | ClearInCombat () |
| void | ClearPhases (bool update=false) |
| void | ClearUnitState (uint32 f) |
| void | CombatStart (Unit *target, bool initialAggro=true) |
| void | CombatStop (bool includingCast=false) |
| void | CombatStopWithPets (bool includingCast=false) |
| uint32 | CountPctFromCurHealth (int32 pct) const |
| uint32 | CountPctFromMaxHealth (int32 pct) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false) |
| uint32 | DealDamage (Unit *victim, uint32 damage, CleanDamage const *cleanDamage=NULL, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=NULL, bool durabilityLoss=true) |
| void | DealDamageMods (Unit *victim, uint32 &damage, uint32 *absorb) |
| int32 | DealHeal (Unit *victim, uint32 addhealth) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss) |
| void | DelayOwnedAuras (uint32 spellId, uint64 caster, int32 delaytime) |
| void | DeleteCharmInfo () |
| void | DeleteThreatList () |
| void | DeMorph () |
| void | Dismount () |
| void | EnergizeBySpell (Unit *victim, uint32 SpellID, int32 Damage, Powers powertype) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | ExitVehicle (Position const *exitPosition=NULL) |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
| Player * | GetAffectingPlayer () const |
| UnitAI * | GetAI () |
| void | GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry) |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| uint32 | GetArmor () const |
| void | GetAttackableUnitListInRange (std::list< Unit * > &list, float fMaxSearchRange) const |
| Unit * | getAttackerForHelper () const |
| AttackerSet const & | getAttackers () const |
| uint32 | GetAttackTime (WeaponAttackType att) const |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| Aura * | GetAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID=0) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| virtual uint32 | GetBlockPercent () const |
| uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
| Unit * | GetCharm () const |
| Unit * | GetCharmer () const |
| uint64 | GetCharmerGUID () const |
| Unit * | GetCharmerOrOwner () const |
| uint64 | GetCharmerOrOwnerGUID () const |
| uint64 | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| uint64 | GetCharmGUID () const |
| CharmInfo * | GetCharmInfo () |
| uint8 | getClass () const |
| uint32 | getClassMask () const |
| float | GetCombatReach () const |
| uint32 | GetCombatTimer () const |
| uint32 | GetCreateHealth () const |
| uint32 | GetCreateMana () const |
| int32 | GetCreatePowers (Powers power) const |
| float | GetCreateStat (Stats stat) const |
| uint64 | GetCreatorGUID () const |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| uint32 | GetCritDamageReduction (uint32 damage) const |
| uint64 | GetCritterGUID () const |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | GetCurrentSpell (uint32 spellType) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| uint32 | GetDamageReduction (uint32 damage) const |
| DeathState | getDeathState () const |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle). | |
| uint32 | GetDiseasesByCaster (uint64 casterGUID, bool remove=false) |
| void | GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList) |
| uint32 | GetDisplayId () const |
| uint32 | GetDoTsByCaster (uint64 casterGUID) const |
| AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| DynamicObject * | GetDynObject (uint32 spellId) |
| uint16 | GetExtraUnitMovementFlags () const |
| uint32 | getFaction () const |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| Unit * | GetFirstControlled () const |
| Minion * | GetFirstMinion () const |
| GameObject * | GetGameObject (uint32 spellId) const |
| uint8 | getGender () const |
| Guardian * | GetGuardianPet () const |
| uint32 | GetHealth () const |
| int32 | GetHealthGain (int32 dVal) |
| float | GetHealthPct () const |
| HostileRefManager & | getHostileRefManager () |
| uint32 | GetInterruptMask () const |
| time_t | GetLastDamagedTime () const |
| uint8 | getLevel () const |
| uint8 | getLevelForTarget (WorldObject const *) const override |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| uint32 | GetMaxHealth () const |
| int32 | GetMaxNegativeAuraModifier (AuraType auratype) const |
| int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auratype) const |
| int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=NULL) const |
| int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPower (Powers power) const |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=NULL) const |
| uint32 | GetMechanicImmunityMask () const |
| int32 | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=NULL) |
| float | GetMeleeReach () const |
| uint64 | GetMinionGUID () const |
| int32 | GetMinPower (Powers power) const |
| uint32 | GetModelForForm (ShapeshiftForm form) const |
| uint32 | GetModelForTotem (uint32 totemType) const |
| float | GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const |
| MotionMaster * | GetMotionMaster () |
| const MotionMaster * | GetMotionMaster () const |
| MountCapabilityEntry const * | GetMountCapability (uint32 mountType) const |
| uint32 | GetMountID () const |
| uint32 | GetMovementCounter () const |
| uint32 | GetNativeDisplayId () const |
| float | GetNegStat (Stats stat) const |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| Aura * | GetOwnedAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, Aura *except=NULL) const |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| Unit * | GetOwner () const |
| uint64 | GetOwnerGUID () const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| uint64 | GetPetGUID () const |
| float | GetPositionZMinusOffset () const |
| float | GetPosStat (Stats stat) const |
| int32 | GetPower (Powers power) const |
| uint32 | GetPowerIndex (uint32 powerType) const |
| Powers | getPowerType () const |
| Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, const SpellInfo *spellProto) const |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationList &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo eventInfo) |
| uint8 | getRace () const |
| uint32 | getRaceMask () const |
| void | GetRandomContactPoint (const Unit *target, float &x, float &y, float &z, float distance2dMin, float distance2dMax) const |
| ReputationRank | GetReactionTo (Unit const *target) const |
| uint32 | GetRedirectThreatPercent () const |
| Unit * | GetRedirectThreatTarget () |
| uint32 | GetRemainingPeriodicAmount (uint64 caster, uint32 spellId, AuraType auraType, uint8 effectIndex=0) const |
| uint32 | GetResistance (SpellSchoolMask mask) const |
| uint32 | GetResistance (SpellSchools school) const |
| float | GetResistanceBuffMods (SpellSchools school, bool positive) const |
| uint32 | GetSchoolImmunityMask () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| SharedVisionList const & | GetSharedVisionList () |
| SheathState | GetSheath () const |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| Player * | GetSpellModOwner () const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| uint8 | getStandState () const |
| float | GetStat (Stats stat) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| uint64 | GetTarget () const |
| ThreatManager & | getThreatManager () |
| float | GetTotalAttackPowerValue (WeaponAttackType attType) const |
| int32 | GetTotalAuraModifier (AuraType auratype) const |
| int32 | GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| float | GetTotalAuraMultiplier (AuraType auratype) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalStatValue (Stats stat) const |
| uint32 | getTransForm () const |
| uint64 | GetTransGUID () const override |
| float | GetUnitBlockChance () const |
| float | GetUnitCriticalChance (WeaponAttackType attackType, const Unit *victim) const |
| float | GetUnitDodgeChance () const |
| uint32 | GetUnitMeleeSkill (Unit const *target=NULL) const |
| float | GetUnitMissChance (WeaponAttackType attType) const |
| uint32 | GetUnitMovementFlags () const |
| float | GetUnitParryChance () const |
| Vehicle * | GetVehicle () const |
| Unit * | GetVehicleBase () const |
| Creature * | GetVehicleCreatureBase () const |
| Vehicle * | GetVehicleKit () const |
| Unit * | GetVictim () const |
| uint32 | getVirtualRealm () const |
| AuraApplication * | GetVisibleAura (uint8 slot) const |
| VisibleAuraMap const * | GetVisibleAuras () |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const |
| float | GetWeaponProcChance () const |
| void | HandleEmoteCommand (uint32 anim_id) |
| void | HandleProcExtraAttackFor (Unit *victim) |
| bool | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| bool | HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply) |
| bool | HasAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, uint64 caster=0) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=NULL, Unit const *Caster=NULL) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithCaster (AuraType auratype, uint64 caster) const |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const |
| bool | HasAuraTypeWithValue (AuraType auratype, int32 value) const |
| bool | HasAuraWithMechanic (uint32 mechanicMask) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=NULL) const |
| uint16 | HasExtraUnitMovementFlag (uint16 f) const |
| bool | HasInvisibilityAura () const |
| bool | HasNegativeAuraWithAttribute (uint32 flag, uint64 guid=0) const |
| bool | HasNegativeAuraWithInterruptFlag (uint32 flag, uint64 guid=0) const |
| bool | HasSharedVision () const |
| bool | HasStealthAura () const |
| bool | HasUnitMovementFlag (uint32 f) const |
| bool | HasUnitState (const uint32 f) const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| bool | HasVisionObscured (Unit const *target) const |
| bool | haveOffhandWeapon () const |
| int32 | HealBySpell (Unit *victim, SpellInfo const *spellInfo, uint32 addHealth, bool critical=false) |
| bool | HealthAbovePct (int32 pct) const |
| bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
| bool | HealthBelowPct (int32 pct) const |
| bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
| void | IncrDiminishing (DiminishingGroup group) |
| CharmInfo * | InitCharmInfo () |
| void | InitStatBuffMods () |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true) |
| bool | IsAlive () const |
| bool | IsArmorer () const |
| bool | isAttackingPlayer () const |
| bool | isAttackReady (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) const |
| bool | IsAuctioner () const |
| bool | IsBanker () const |
| bool | IsBattleMaster () const |
| bool | isBlockCritical () |
| bool | IsBMAuctioner () const |
| bool | IsCharmed () const |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| bool | IsContestedGuard () const |
| bool | IsControlledByPlayer () const |
| bool | isDead () const |
| bool | IsDuringRemoveFromWorld () const |
| bool | isDying () const |
| bool | IsFalling () const |
| bool | isFeared () const |
| bool | IsFlying () const |
| bool | IsFriendlyTo (Unit const *unit) const |
| bool | isFrozen () const |
| bool | IsFullHealth () const |
| bool | IsGossip () const |
| bool | IsGuardian () const |
| bool | IsGuildMaster () const |
| bool | IsHostileTo (Unit const *unit) const |
| bool | IsHostileToPlayers () const |
| bool | IsHunterPet () const |
| bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsInCombat () const |
| bool | IsInDisallowedMountForm () const |
| bool | IsInFeralForm () const |
| bool | IsInFlight () const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsInnkeeper () const |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| bool | isInRoots () const |
| virtual bool | IsInWater () const |
| bool | IsLevitating () const |
| bool | IsMounted () const |
| bool | isMoving () const |
| bool | IsNeutralToAll () const |
| bool | IsNonMeleeSpellCasted (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
| bool | IsOnVehicle (const Unit *vehicle) const |
| bool | IsPet () const |
| bool | IsPolymorphed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| bool | IsPvP () const |
| bool | IsQuestGiver () const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| bool | IsServiceProvider () const |
| bool | IsSitState () const |
| bool | isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) |
| bool | isSpellCrit (Unit *victim, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) const |
| bool | IsSpiritGuide () const |
| bool | IsSpiritHealer () const |
| bool | IsSpiritService () const |
| bool | IsSplineEnabled () const |
| bool | IsStandState () const |
| bool | IsStopped () const |
| bool | IsSummon () const |
| bool | IsTabardDesigner () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsTaxi () const |
| bool | IsTotem () const |
| bool | IsTrainer () const |
| bool | isTurning () const |
| virtual bool | IsUnderWater () const |
| bool | IsValidAssistTarget (Unit const *target) const |
| bool | IsValidAttackTarget (Unit const *target) const |
| bool | IsVehicle () const |
| bool | IsVendor () const |
| bool | IsVisible () const |
| bool | IsWalking () const |
| bool | IsWithinCombatRange (const Unit *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (const Unit *obj, float dist=MELEE_RANGE) const |
| void | JumpTo (float speedXY, float speedZ, bool forward=true) |
| void | JumpTo (WorldObject *obj, float speedZ) |
| void | Kill (Unit *victim, bool durabilityLoss=true) |
| void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) |
| uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=NULL) |
| uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=NULL) |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, uint32 spellId) const |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| int32 | ModifyHealth (int32 val) |
| int32 | ModifyPower (Powers power, int32 val) |
| int32 | ModifyPowerPct (Powers power, float pct, bool apply=true) |
| void | ModifyRedirectThreat (int32 amount) |
| void | ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=NULL) |
| int32 | ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | OutDebugInfo () const |
| void | PlayOneShotAnimKit (uint32 id) |
| void | ProcDamageAndSpell (Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, SpellInfo const *procSpell=NULL, SpellInfo const *procAura=NULL) |
| void | ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpell, uint32 damage, SpellInfo const *procAura=NULL) |
| void | propagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | RemoveAllAttackers () |
| void | RemoveAllAuras () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllControlled () |
| void | RemoveAllDynObjects () |
| void | RemoveAllGameObjects () |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveArenaAuras () |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, uint64 casterGUID=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, uint64 casterGUID=0, Aura *except=NULL, bool negative=true, bool positive=true) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, uint64 castItemGuid) |
| void | RemoveAurasDueToSpell (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, uint64 casterGUID, Unit *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, uint64 casterGUID, Unit *stealer) |
| void | RemoveAurasWithAttribute (uint32 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID) |
| void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0) |
| void | RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0) |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RemoveComboPointHolder (uint32 lowguid) |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveExtraUnitMovementFlag (uint16 f) |
| void | removeFollower (FollowerReference *) |
| void | RemoveFromWorld () override |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | removeHatedBy (HostileReference *) |
| void | RemoveMovementImpairingAuras () |
| void | RemoveNotOwnSingleTargetAuras (uint32 newPhase=0, bool phaseid=false) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemovePetAura (PetAura const *petSpell) |
| void | RemovePlayerFromVision (Player *player) |
| void | RemoveStandFlags (uint8 flags) |
| void | RemoveUnitMovementFlag (uint32 f) |
| void | RemoveVehicleKit (bool remove=false) |
| void | RemoveVisibleAura (uint8 slot) |
| void | resetAttackTimer (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) |
| void | ResetRedirectThreat () |
| void | RestoreDisplayId () |
| void | RestoreFaction () |
| void | RewardRage (uint32 baseRage, bool attacker) |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const |
| Unit * | SelectNearbyTarget (Unit *exclude=NULL, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfoHitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
| void | SendChangeCurrentVictimOpcode (HostileReference *pHostileReference) |
| void | SendClearTarget () |
| void | SendClearThreatListOpcode (ObjectGuid UnitGUID) |
| void | SendDurabilityLoss (Player *receiver, uint32 percent) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellID, int32 damage, Powers powertype) |
| void | SendHealSpellLog (ObjectGuid CasterGUID, ObjectGuid TargetGUID, uint32 SpellID, uint32 Damage, uint32 OverHeal, uint32 Absorb, bool critical=false) |
| void | SendMeleeAttackStart (Unit *victim) |
| void | SendMeleeAttackStop (Unit *victim=NULL) |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendPetActionFeedback (uint8 msg) const |
| -------—Pet responses methods--------------— | |
| void | SendPetAIReaction (ObjectGuid UnitGUID) const |
| void | SendPetTalk (uint32 pettalk) const |
| void | SendPlaySpellVisual (uint32 SpellVisualId, float x, float y, float z, float orientation, uint8 SpeedTime, uint16 MissReason, uint16 ReflectStatus) |
| void | SendPlaySpellVisualKit (uint32 SpellVisualId, uint32 Duration, int32 Type) |
| void | SendRemoveFromThreatListOpcode (HostileReference *pHostileReference) |
| void | SendSetVehicleRecId (uint32 vehicleId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log) |
| void | SendSpellNonMeleeDamageLog (Unit *target, uint32 SpellID, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false) |
| void | SendTeleportPacket (Position &pos) |
| void | SendThreatListUpdate () |
| void | SetAI (UnitAI *newAI) |
| void | SetAnimTier (AnimTier tier) |
| void | SetArmor (int32 val) |
| void | SetAttackTime (WeaponAttackType att, uint32 val) |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SetAutoattackOverrideRange (uint32 range) |
| void | SetAutoattackOverrideSpell (SpellInfo const *spellInfo) |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value) |
| void | SetCanDualWield (bool value) |
| bool | SetCanFly (bool enable) |
| void | SetCanModifyStats (bool modifyStats) |
| void | SetCantProc (bool apply) |
| void | SetCharm (Unit *target, bool apply) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=NULL) |
| void | SetCharmerGUID (uint64 owner) |
| void | SetClass (uint8 newClass) |
| void | SetContestedPvP (Player *attackedPlayer=NULL) |
| void | SetControlled (bool apply, UnitState state) |
| void | SetCreateHealth (uint32 val) |
| void | SetCreateMana (uint32 val) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreatorGUID (uint64 creator) |
| void | SetCritterGUID (uint64 guid) |
| void | SetCurrentCastedSpell (Spell *pSpell) |
| bool | SetDisableGravity (bool disable, bool packetOnly=false) |
| void | SetExtraUnitMovementFlags (uint16 f) |
| void | SetFacingTo (float ori) |
| void | SetFacingToObject (WorldObject *object) |
| void | setFaction (uint32 faction) |
| bool | SetFall (bool enable) |
| bool | SetFeatherFall (bool enable, bool packetOnly=false) |
| void | SetFieldPowerType (uint32 powerType) |
| void | SetFullHealth () |
| void | SetGender (uint8 gender) |
| void | SetHealth (uint32 val) |
| bool | SetHover (bool enable, bool packetOnly=false) |
| void | SetInCombatState (bool PvP, Unit *enemy=NULL) |
| void | SetInCombatWith (Unit *enemy) |
| void | SetInFront (WorldObject const *target) |
| void | SetLastDamagedTime (time_t val) |
| void | SetLevel (uint8 lvl) |
| void | SetMaxHealth (uint32 val) |
| void | SetMaxPower (Powers power, int32 val) |
| void | SetMinion (Minion *minion, bool apply) |
| void | SetMinionGUID (uint64 guid) |
| void | SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value) |
| void | SetNativeDisplayId (uint32 modelId) |
| void | SetOwnerGUID (uint64 owner) |
| void | SetPetGUID (uint64 guid) |
| bool | SetPhased (uint32 id, bool update, bool apply) OVERRIDE |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | SetPower (Powers power, int32 val) |
| void | setPowerType (Powers power) |
| void | SetPvP (bool state) |
| void | SetRace (uint8 race) |
| void | SetRedirectThreat (uint64 guid, uint32 pct) |
| void | SetResistance (SpellSchools school, int32 val) |
| void | SetResistanceBuffMods (SpellSchools school, bool positive, float val) |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| virtual void | SetSheath (SheathState sheathed) |
| void | SetSpeed (UnitMoveType mtype, float rate, bool forced=false) |
| void | SetStandFlags (uint8 flags) |
| void | SetStandState (uint8 state) |
| void | SetStat (Stats stat, int32 val) |
| bool | SetSwim (bool enable) |
| void | setTransForm (uint32 spellid) |
| void | SetUnitMovementFlags (uint32 f) |
| void | SetVehicle (Vehicle *vehicle) |
| void | SetVisible (bool x) |
| void | SetVisibleAura (uint8 slot, AuraApplication *aur) |
| bool | SetWalk (bool enable) |
| bool | SetWaterWalking (bool enable, bool packetOnly=false) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) const |
| uint32 | SpellCriticalDamageBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| uint32 | SpellCriticalHealingBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) |
| uint32 | SpellNonMeleeDamageLog (Unit *victim, uint32 spellID, uint32 damage) |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | StopAttackFaction (uint32 faction_id) |
| void | StopMoving () |
| -------—End of Pet responses methods-------— | |
| void | TauntApply (Unit *victim) |
| void | TauntFadeOut (Unit *taunter) |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| void | TrackGameObject (GameObject *gameObj) |
| void | TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationList &procAuras) |
| void | UnsummonAllTotems () |
| void | Update (uint32 time) OVERRIDE |
| void | UpdateAuraForGroup (uint8 slot) |
| void | UpdateCharmAI () |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | UpdateInterruptMask () |
| void | UpdateObjectVisibility (bool forced=true) override |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| bool | UpdatePosition (const Position &pos, bool teleport=false) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateSpeed (UnitMoveType mtype, bool forced) |
| virtual void | UpdateUnderwaterState (Map *m, float x, float y, float z) |
| void | WriteMovementInfo (WorldPacket &data, Movement::ExtraMovementStatusElement *extras=NULL) |
| virtual | ~Unit () |
| Public Member Functions inherited from WorldObject | |
| void | _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask) |
| void | AddObjectToRemoveList () |
| void | AddToNotify (uint16 f) |
| void | BuildUpdate (UpdateDataMapType &) |
| bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const |
| void | ClearPhases (bool update=false) |
| void | DestroyForNearbyPlayers () |
| Map * | FindMap () const |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| uint32 | GetAreaId () const |
| Map const * | GetBaseMap () const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistance2d (WorldObject const *obj) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| void | GetFirstCollisionPosition (Position &pos, float dist, float angle) |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetGridActivationRange () const |
| uint32 | GetInstanceId () const |
| InstanceScript * | GetInstanceScript () |
| Map * | GetMap () const |
| std::string const & | GetName () const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle) const |
| void | GetNearPosition (Position &pos, float dist, float angle) |
| uint16 | GetNotifyFlags () const |
| float | GetObjectSize () const |
| uint32 | GetPhaseMask () const |
| std::set< uint32 > const & | GetPhases () const |
| void | GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const |
| void | GetRandomNearPosition (Position &pos, float radius) |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| void | GetRandomPoint (Position const &srcPos, float distance, Position &pos) const |
| float | GetSightRange (WorldObject const *target=NULL) const |
| virtual float | GetStationaryO () const |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| std::set< uint32 > const & | GetTerrainSwaps () const |
| float | GetTransOffsetO () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| Transport * | GetTransport () const |
| int8 | GetTransSeat () const |
| uint32 | GetTransTime () const |
| float | GetVisibilityRange () const |
| std::set< uint32 > const & | GetWorldMapSwaps () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| uint32 | GetZoneId () const |
| ZoneScript * | GetZoneScript () const |
| bool | HasPhaseList (uint32 phase) |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | isActiveObject () const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| bool | isInFront (WorldObject const *target, float arc=M_PI) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isNeedNotify (uint16 f) const |
| bool | IsPermanentWorldObject () const |
| bool | IsPhased (uint32 phase) const |
| bool | IsPhased (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsTerrainSwaped (uint32 terrainSwap) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinLOS (float x, float y, float z) const |
| bool | IsWithinLOSInMap (WorldObject const *obj) const |
| bool | IsWorldObject () const |
| void | MonsterSay (const char *text, Language language, WorldObject const *target) |
| void | MonsterSay (int32 textId, Language language, WorldObject const *target) |
| void | MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false) |
| void | MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false) |
| void | MonsterYell (const char *text, Language language, WorldObject const *target) |
| void | MonsterYell (int32 textId, Language language, WorldObject const *target) |
| void | MovePosition (Position &pos, float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| bool | NotifyExecuted (uint16 f) const |
| void | PlayDirectSound (uint32 sound_id, Player *target=NULL) |
| void | PlayDistanceSound (uint32 sound_id, Player *target) |
| void | RebuildTerrainSwaps () |
| void | RebuildWorldMapAreaSwaps () |
| void | ResetAllNotifies () |
| virtual void | ResetMap () |
| virtual void | SendMessageToSet (WorldPacket *data, bool self) |
| virtual void | SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr) |
| virtual void | SendMessageToSetInRange (WorldPacket *data, float dist, bool self) |
| void | SendObjectDeSpawnAnim (uint64 guid) |
| void | SendPlaySound (uint32 SoundSound, bool OnlySelf) |
| void | setActive (bool isActiveObject) |
| virtual void | SetMap (Map *map) |
| void | SetName (std::string const &newname) |
| void | SetNotified (uint16 f) |
| void | SetTransport (Transport *t) |
| void | SetWorldObject (bool apply) |
| void | SetZoneScript () |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const |
| TempSummon * | SummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL) |
| void | UpdateAllowedPositionZ (float x, float y, float &z) const |
| void | UpdateAreaPhase () |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| template<class NOTIFIER> | |
| void | VisitNearbyGridObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyWorldObject (float const &radius, NOTIFIER ¬ifier) const |
| virtual | ~WorldObject () |
| Public Member Functions inherited from Object | |
| bool | AddUInt64Value (uint16 index, uint64 value) |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | ClearUpdateMask (bool remove) |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| void | ForceValuesUpdateAtIndex (uint32) |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint32 | GetDynamicUInt32Value (uint32 tab, uint16 index) const |
| uint32 | GetEntry () const |
| float | GetFloatValue (uint16 index) const |
| uint64 | GetGUID () const |
| uint32 | GetGUIDHigh () const |
| uint32 | GetGUIDLow () const |
| uint32 | GetGUIDMid () const |
| int32 | GetInt32Value (uint16 index) const |
| ObjectGuid | GetObjectGUID () const |
| float | GetObjectScale () const |
| const ByteBuffer & | GetPackGUID () const |
| TypeID | GetTypeId () const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| uint16 | GetValuesCount () const |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| bool | HasFlag (uint16 index, uint32 flag) const |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| bool | IsInWorld () const |
| bool | isType (uint16 mask) const |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| bool | RemoveUInt64Value (uint16 index, uint64 value) |
| void | SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const |
| void | SendUpdateToPlayer (Player *player) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value) |
| void | SetEntry (uint32 entry) |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| virtual | ~Object () |
| Public Member Functions inherited from WorldLocation | |
| uint32 | GetMapId () const |
| WorldLocation (const WorldLocation &loc) | |
| WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0) | |
| void | WorldRelocate (const WorldLocation &loc) |
| Public Member Functions inherited from Position | |
| float | GetAngle (float x, float y) const |
| float | GetAngle (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDist2dSq (float x, float y) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| void | GetPosition (Position *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (WorldObject const *target, float width) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsPositionValid () const |
| bool | operator!= (Position const &a) |
| bool | operator== (Position const &a) |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| Position::PositionXYZStreamer | PositionXYZStream () |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| std::string | ToString () const |
| Public Member Functions inherited from GridObject< Creature > | |
| void | AddToGrid (GridRefManager< Creature > &m) |
| bool | IsInGrid () const |
| void | RemoveFromGrid () |
| virtual | ~GridObject () |
Static Public Member Functions | |
| static void | DeleteFromDB (uint32 guidlow) |
| static void | resetTalentsForAllPetsOf (Player *owner, Pet *online_pet=NULL) |
| Static Public Member Functions inherited from Creature | |
| static float | _GetDamageMod (int32 Rank) |
| Static Public Member Functions inherited from Unit | |
| static Creature * | GetCreature (WorldObject &object, uint64 guid) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target) |
| static Player * | GetPlayer (WorldObject &object, uint64 guid) |
| static Unit * | GetUnit (WorldObject &object, uint64 guid) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=NULL, uint8 effIndex=MAX_SPELL_EFFECTS) |
| Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Private Member Functions | |
| void | DeleteFromDB () |
| void | SaveToDB (uint32, uint32) |
Additional Inherited Members | |
| Public Types inherited from Unit | |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| 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::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| 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< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::set< uint32 > | ComboPointHolderSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::list< DiminishingReturn > | Diminishing |
| typedef std::set< PetAura const * > | PetAuraSet |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
| Protected Types inherited from Unit | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
| Protected Member Functions inherited from Creature | |
| bool | CanAlwaysSee (WorldObject const *obj) const OVERRIDE |
| bool | CreateFromProto (uint32 guidlow, uint32 EntryEntry, uint32 vehId, uint32 team, const CreatureData *data=NULL) |
| bool | InitEntry (uint32 entry, uint32 team=ALLIANCE, const CreatureData *data=NULL) |
| bool | IsInvisibleDueToDespawn () const OVERRIDE |
| void | Regenerate (Powers power) |
| void | RegenerateHealth () |
| void | RegenerateMana () |
| Protected Member Functions inherited from Unit | |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | _UpdateSpells (uint32 time) |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override |
| void | DisableSpline () |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| void | SendMissileCancel (uint32 spellId, bool cancel=true) |
| void | SetConfused (bool apply) |
| void | SetFeared (bool apply) |
| void | SetRooted (bool apply, bool packetOnly=false) |
| void | SetStunned (bool apply) |
| Unit (bool isWorldObject) | |
| Protected Member Functions inherited from WorldObject | |
| virtual bool | IsNeverVisible () const |
| void | SetLocationInstanceId (uint32 _instanceId) |
| void | SetLocationMapId (uint32 _mapId) |
| WorldObject (bool isWorldObject) | |
| Protected Member Functions inherited from Object | |
| std::string | _ConcatFields (uint16 startIndex, uint16 size) const |
| void | _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh) |
| void | _InitValues () |
| void | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| void | BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| Object () | |
| Protected Member Functions inherited from MapObject | |
| MapObject () | |
| Static Protected Member Functions inherited from Creature | |
| static float | _GetHealthMod (int32 Rank) |
|
explicit |
Definition at line 27 of file Pet.cpp.
References ASSERT, Guardian::Guardian(), HUNTER_PET, Unit::InitCharmInfo(), m_auraRaidUpdateMask, m_declinedname, m_duration, m_loading, WorldObject::m_name, Minion::m_owner, m_petSpec, m_petType, m_regenTimer, m_removed, m_transportExitGraceTimer, Unit::m_unitTypeMask, m_usedTalentCount, PET_FOCUS_REGEN_INTERVAL, TYPEID_PLAYER, UNIT_MASK_CONTROLABLE_GUARDIAN, UNIT_MASK_HUNTER_PET, and UNIT_MASK_PET.
Referenced by resetTalentsForAllPetsOf().
|
virtual |
Definition at line 47 of file Pet.cpp.
References m_declinedname.
| void Pet::_LoadAuras | ( | uint32 | timediff | ) |
Definition at line 1280 of file Pet.cpp.
References CHAR_SEL_PET_AURA, CharacterDatabase, Object::GetGUID(), Object::GetGUIDLow(), Field::GetInt32(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), SpellInfo::Id, IN_MILLISECONDS, SpellInfo::IsPositive(), Unit::m_charmInfo, SpellInfo::ProcCharges, PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, sSpellMgr, and Aura::TryCreate().
Referenced by LoadPetFromDB().
| void Pet::_LoadSpellCooldowns | ( | ) |
Definition at line 1118 of file Pet.cpp.
References Creature::_AddCreatureSpellCooldown(), ByteBuffer::bitwpos(), CHAR_SEL_PET_SPELL_COOLDOWN, CharacterDatabase, ByteBuffer::FlushBits(), Object::GetGUID(), GetOwner(), Player::GetSession(), Field::GetUInt32(), IN_MILLISECONDS, Unit::m_charmInfo, Creature::m_CreatureCategoryCooldowns, Creature::m_CreatureSpellCooldowns, ByteBuffer::PutBits(), WorldSession::SendPacket(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_ERROR, SMSG_SPELL_COOLDOWN, sSpellMgr, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by LoadPetFromDB().
| void Pet::_LoadSpells | ( | ) |
Definition at line 1214 of file Pet.cpp.
References addSpell(), CHAR_SEL_PET_SPELL, CharacterDatabase, Unit::m_charmInfo, PETSPELL_UNCHANGED, and PreparedStatement::setUInt32().
Referenced by LoadPetFromDB().
| void Pet::_SaveAuras | ( | SQLTransaction & | trans | ) |
Definition at line 1353 of file Pet.cpp.
References AuraEffect::CanBeRecalculated(), CHAR_DEL_PET_AURAS, CHAR_INS_PET_AURA, CharacterDatabase, AuraEffect::GetAmount(), AuraEffect::GetBaseAmount(), Aura::GetEffect(), Object::GetGUID(), IsPetAura(), Unit::m_charmInfo, Unit::m_ownedAuras, MAX_SPELL_EFFECTS, PreparedStatement::setInt32(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), and PreparedStatement::setUInt8().
Referenced by SavePetToDB().
| void Pet::_SaveSpellCooldowns | ( | SQLTransaction & | trans | ) |
Definition at line 1188 of file Pet.cpp.
References CHAR_DEL_PET_SPELL_COOLDOWNS, CHAR_INS_PET_SPELL_COOLDOWN, CharacterDatabase, Unit::m_charmInfo, Creature::m_CreatureSpellCooldowns, and PreparedStatement::setUInt32().
Referenced by SavePetToDB().
| void Pet::_SaveSpells | ( | SQLTransaction & | trans | ) |
Definition at line 1231 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, PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by SavePetToDB().
| bool Pet::addSpell | ( | uint32 | spellId, |
| ActiveStates | active = ACT_DECIDE, | ||
| PetSpellState | state = PETSPELL_NEW, | ||
| PetSpellType | type = PETSPELL_NORMAL ) |
Definition at line 1414 of file Pet.cpp.
References ACT_DECIDE, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, PetSpell::active, SpellInfo::CasterAuraState, Unit::CastSpell(), CHAR_DEL_INVALID_PET_SPELL, CharacterDatabase, Unit::getLevel(), GetMaxTalentPointsForLevel(), GetTalentSpellCost(), Unit::HasAuraState(), SpellInfo::IsAutocastable(), SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), SpellInfo::IsPassive(), SpellInfo::IsRanked(), Unit::m_charmInfo, m_spells, m_usedTalentCount, PETSPELL_CHANGED, PETSPELL_REMOVED, PETSPELL_UNCHANGED, SetFreeTalentPoints(), PreparedStatement::setUInt32(), SF_LOG_ERROR, sSpellMgr, PetSpell::state, ToggleAutocast(), PetSpell::type, and unlearnSpell().
Referenced by _LoadSpells(), LearnPetPassives(), and learnSpell().
|
virtual |
Reimplemented from Creature.
Definition at line 52 of file Pet.cpp.
References Unit::AddToWorld(), Creature::AIM_Initialize(), COMMAND_FOLLOW, Unit::GetCharmInfo(), Object::IsInWorld(), CharmInfo::SetIsAtStay(), CharmInfo::SetIsCommandAttack(), CharmInfo::SetIsCommandFollow(), CharmInfo::SetIsFollowing(), CharmInfo::SetIsReturning(), and sObjectAccessor.
| void Pet::CastPetAura | ( | PetAura const * | aura | ) |
Definition at line 1991 of file Pet.cpp.
References CalculatePct(), Unit::CastCustomSpell(), Unit::CastSpell(), PetAura::GetAura(), PetAura::GetDamage(), Object::GetEntry(), Unit::GetStat(), STAT_INTELLECT, and STAT_STAMINA.
Referenced by CastPetAuras().
| void Pet::CastPetAuras | ( | bool | current | ) |
Definition at line 1970 of file Pet.cpp.
References CastPetAura(), GetOwner(), Object::GetTypeId(), IsPermanentPetFor(), PetAura::IsRemovedOnChangePet(), Unit::m_petAuras, Unit::RemovePetAura(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by InitPetCreateSpells(), LoadPetFromDB(), and setDeathState().
| void Pet::CleanupActionBar | ( | ) |
Definition at line 1652 of file Pet.cpp.
References ACT_ENABLED, ACT_PASSIVE, HasSpell(), Unit::m_charmInfo, MAX_UNIT_ACTION_BAR_INDEX, sSpellMgr, and ToggleAutocast().
Referenced by LoadPetFromDB(), and SetSpec().
|
inline |
Definition at line 58 of file Pet.h.
References m_transportExitGraceTimer.
Referenced by Skyfire::PetTransport::AttachHunterPetToOwnerTransport().
Definition at line 1922 of file Pet.cpp.
References Object::_Create(), ASSERT, HIGHGUID_PET, Creature::InitEntry(), Creature::m_DBTableGuid, Creature::m_originalEntry, Object::SetFlag(), WorldObject::SetMap(), Unit::SetSheath(), SHEATH_STATE_MELEE, UNIT_FIELD_FLAGS2, and UNIT_FLAG2_REGENERATE_POWER.
Referenced by CreateBaseAtTamed(), LoadPetFromDB(), and Player::SummonPet().
| bool Pet::CreateBaseAtCreature | ( | Creature * | creature | ) |
Definition at line 755 of file Pet.cpp.
References ASSERT, CreateBaseAtTamed(), CreatureTemplate::family, Creature::GetCreatureTemplate(), Unit::GetDisplayId(), Object::GetEntry(), Object::GetGUIDLow(), WorldObject::GetMap(), Creature::GetNameForLocaleIdx(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Position::IsPositionValid(), Position::Relocate(), sCreatureFamilyStore, SetDisplayId(), WorldObject::SetName(), SF_LOG_ERROR, and sObjectMgr.
Referenced by Unit::CreateTamedPetFrom(), and pet_commandscript::HandlePetCreateCommand().
| bool Pet::CreateBaseAtCreatureInfo | ( | CreatureTemplate const * | cinfo, |
| Unit * | owner ) |
Definition at line 788 of file Pet.cpp.
References CreateBaseAtTamed(), CreatureTemplate::family, WorldObject::GetMap(), Position::GetOrientation(), 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 801 of file Pet.cpp.
References CLASS_WARRIOR, Create(), CREATURE_TYPE_BEAST, CreatureTemplate::Entry, GENDER_NONE, Unit::getLevel(), HIGHGUID_PET, PET_XP_FACTOR, POWER_FOCUS, Object::SetByteFlag(), Unit::SetClass(), Unit::SetFieldPowerType(), Unit::SetGender(), Unit::setPowerType(), Unit::SetSheath(), Object::SetUInt32Value(), SF_LOG_DEBUG, SHEATH_STATE_MELEE, sObjectMgr, CreatureTemplate::type, UNIT_CAN_BE_ABANDONED, UNIT_CAN_BE_RENAMED, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_PET_EXPERIENCE, UNIT_FIELD_PET_NAME_TIMESTAMP, UNIT_FIELD_PET_NEXT_LEVEL_EXPERIENCE, UNIT_FIELD_SHAPESHIFT_FORM, and UNIT_NPC_FLAG_NONE.
Referenced by CreateBaseAtCreature(), and CreateBaseAtCreatureInfo().
|
inlineprivatevirtual |
Reimplemented from Creature.
Definition at line 163 of file Pet.h.
References ASSERT.
Referenced by Player::DeleteFromDB(), and SavePetToDB().
|
static |
Definition at line 494 of file Pet.cpp.
References CHAR_DEL_CHAR_PET_BY_ID, CHAR_DEL_CHAR_PET_DECLINEDNAME, CHAR_DEL_PET_AURAS, CHAR_DEL_PET_SPELL_COOLDOWNS, CHAR_DEL_PET_SPELLS, CharacterDatabase, and PreparedStatement::setUInt32().
|
inline |
Definition at line 138 of file Pet.h.
References m_auraRaidUpdateMask.
Definition at line 1102 of file Pet.cpp.
References Unit::getLevel().
Referenced by Spell::CheckCast(), and Spell::EffectFeedPet().
|
inline |
Definition at line 142 of file Pet.h.
References m_declinedname.
|
inline |
Definition at line 76 of file Pet.h.
References m_duration.
Referenced by Player::PetSpellInitialize().
|
inline |
Definition at line 133 of file Pet.h.
References Object::GetByteValue(), and UNIT_FIELD_ANIM_TIER.
Referenced by Player::BuildPetTalentsInfoData().
Definition at line 1843 of file Pet.cpp.
References GetOwner(), and SPELL_AURA_MOD_PET_TALENT_POINTS.
Referenced by addSpell(), InitTalentForLevel(), and removeSpell().
| Player * Pet::GetOwner | ( | ) | const |
Definition at line 2117 of file Pet.cpp.
References Minion::GetOwner(), and Object::ToPlayer().
Referenced by _LoadSpellCooldowns(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateArcaneResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateArmorAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateArmorAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateAttackPowerAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateDamageDoneAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateFireResistanceAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateFrostResistanceAmount(), spell_warl_pet_scaling_02::spell_warl_pet_scaling_02_AuraScript::CalculateIntellectAmount(), spell_hun_pet_scaling_02::spell_hun_pet_scaling_02_AuraScript::CalculateNatureResistanceAmount(), spell_warl_pet_scaling_03::spell_warl_pet_scaling_03_AuraScript::CalculateNatureResistanceAmount(), spell_hun_pet_scaling_03::spell_hun_pet_scaling_03_AuraScript::CalculateShadowResistanceAmount(), spell_warl_pet_scaling_04::spell_warl_pet_scaling_04_AuraScript::CalculateShadowResistanceAmount(), spell_hun_pet_scaling_01::spell_hun_pet_scaling_01_AuraScript::CalculateStaminaAmount(), spell_warl_pet_scaling_01::spell_warl_pet_scaling_01_AuraScript::CalculateStaminaAmount(), CastPetAuras(), Spell::CheckCast(), Spell::EffectDismissPet(), Spell::EffectLearnPetSpell(), GetMaxTalentPointsForLevel(), GivePetXP(), InitTalentForLevel(), IsPetAura(), learnSpell(), ProhibitSpellSchool(), Remove(), removeSpell(), SavePetToDB(), SetDisplayId(), SetSpec(), SynchronizeLevelWithOwner(), unlearnSpell(), and Update().
|
inlinevirtual |
Definition at line 2143 of file Pet.cpp.
References ChrSpecializationEntry::classId, ChrSpecializationEntry::Id, m_petSpec, ChrSpecializationEntry::PetTabPage, and sChrSpecializationStore.
Referenced by WorldSession::HandleSetPetSpecialization().
|
inline |
Definition at line 38 of file Pet.h.
References m_petType.
Referenced by Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), Spell::EffectSummonPet(), GivePetLevel(), GivePetXP(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), isControlled(), IsPermanentPetFor(), LoadPetFromDB(), Player::ResetPetTalents(), SavePetToDB(), WorldSession::SendStablePetCallback(), setDeathState(), SynchronizeLevelWithOwner(), and Update().
|
inline |
Definition at line 108 of file Pet.h.
References m_petSpec.
Referenced by Player::PetSpellInitialize().
| void Pet::GivePetLevel | ( | uint8 | level | ) |
Definition at line 739 of file Pet.cpp.
References Unit::getLevel(), getPetType(), HUNTER_PET, InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), InitTalentForLevel(), PET_XP_FACTOR, Object::SetUInt32Value(), sObjectMgr, UNIT_FIELD_PET_EXPERIENCE, and UNIT_FIELD_PET_NEXT_LEVEL_EXPERIENCE.
Referenced by GivePetXP(), and SynchronizeLevelWithOwner().
| void Pet::GivePetXP | ( | uint32 | xp | ) |
Definition at line 702 of file Pet.cpp.
References CONFIG_MAX_PLAYER_LEVEL, Unit::getLevel(), GetOwner(), getPetType(), Object::GetUInt32Value(), GivePetLevel(), HUNTER_PET, Unit::IsAlive(), Object::SetUInt32Value(), sWorld, UNIT_FIELD_PET_EXPERIENCE, and UNIT_FIELD_PET_NEXT_LEVEL_EXPERIENCE.
|
virtual |
Reimplemented from Creature.
Definition at line 1942 of file Pet.cpp.
References m_spells, and PETSPELL_REMOVED.
Referenced by CleanupActionBar(), pet_commandscript::HandlePetLearnCommand(), pet_commandscript::HandlePetUnlearnCommand(), LearnSpecializationSpells(), and UnlearnSpecializationSpells().
|
inline |
Definition at line 59 of file Pet.h.
References m_transportExitGraceTimer.
Referenced by Update(), and Player::Update().
| bool Pet::HaveInDiet | ( | ItemTemplate const * | item | ) | const |
Definition at line 1084 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 1544 of file Pet.cpp.
References Creature::GetCreatureTemplate(), Object::GetEntry(), Unit::getLevel(), SpellInfo::Id, LearnSpecializationSpells(), learnSpell(), MAX_CREATURE_SPELL_DATA_SLOT, CreatureTemplate::PetSpellDataId, SpellInfo::SpellLevel, sSpellMgr, UnlearnSpecializationSpells(), and unlearnSpell().
Referenced by GivePetLevel(), InitPetCreateSpells(), and LoadPetFromDB().
| void Pet::InitPetCreateSpells | ( | ) |
Definition at line 1668 of file Pet.cpp.
References CastPetAuras(), InitLevelupSpellsForLevel(), LearnPetPassives(), Unit::m_charmInfo, and m_spells.
Referenced by pet_commandscript::HandlePetCreateCommand(), Unit::InitTamedPet(), and Player::SummonPet().
| void Pet::InitTalentForLevel | ( | ) |
Definition at line 1828 of file Pet.cpp.
References Unit::getLevel(), GetMaxTalentPointsForLevel(), GetOwner(), Object::GetTypeId(), m_usedTalentCount, resetTalents(), SetFreeTalentPoints(), and TYPEID_PLAYER.
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectTameCreature(), GivePetLevel(), LoadPetFromDB(), and Player::SummonPet().
|
inlinevirtual |
| bool Pet::isControlled | ( | ) | const |
Definition at line 2135 of file Pet.cpp.
References getPetType(), HUNTER_PET, and SUMMON_PET.
Referenced by Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), Spell::EffectSummonPet(), Unit::Kill(), LoadPetFromDB(), Player::RemovePet(), SavePetToDB(), SetDisplayId(), Player::UnsummonPetTemporaryIfAny(), Update(), and Unit::UpdateAuraForGroup().
| bool Pet::IsPermanentPetFor | ( | Player * | owner | ) | const |
Definition at line 1899 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(), reset_commandscript::HandleResetTalentsCommand(), LoadPetFromDB(), and Player::PetSpellInitialize().
| bool Pet::IsPetAura | ( | Aura const * | aura | ) |
Definition at line 2006 of file Pet.cpp.
References Object::GetEntry(), Aura::GetId(), GetOwner(), Object::GetTypeId(), Unit::m_petAuras, and TYPEID_PLAYER.
Referenced by _SaveAuras().
|
inline |
Definition at line 41 of file Pet.h.
References m_duration.
Referenced by LoadPetFromDB(), and Player::UnsummonPetTemporaryIfAny().
| void Pet::LearnPetPassives | ( | ) |
Definition at line 1949 of file Pet.cpp.
References ACT_DECIDE, addSpell(), CreatureTemplate::family, Creature::GetCreatureTemplate(), CreatureFamilyEntry::ID, PETSPELL_FAMILY, PETSPELL_NEW, sCreatureFamilyStore, and sPetFamilySpellsStore.
Referenced by InitPetCreateSpells(), and LoadPetFromDB().
| void Pet::LearnSpecializationSpells | ( | ) |
Definition at line 2178 of file Pet.cpp.
References Unit::getLevel(), GetSpecializationSpells(), HasSpell(), learnSpell(), m_petSpec, SpellInfo::SpellLevel, and sSpellMgr.
Referenced by InitLevelupSpellsForLevel(), and SetSpec().
| bool Pet::learnSpell | ( | uint32 | spell_id | ) |
Definition at line 1528 of file Pet.cpp.
References addSpell(), GetOwner(), Player::GetSession(), m_loading, Player::PetSpellInitialize(), WorldSession::SendPacket(), and SMSG_PET_LEARNED_SPELL.
Referenced by Spell::EffectLearnPetSpell(), pet_commandscript::HandlePetLearnCommand(), InitLevelupSpellsForLevel(), LearnSpecializationSpells(), learnSpellHighRank(), and removeSpell().
| void Pet::learnSpellHighRank | ( | uint32 | spellid | ) |
Definition at line 2022 of file Pet.cpp.
References learnSpell(), learnSpellHighRank(), and sSpellMgr.
Referenced by learnSpellHighRank().
| bool Pet::LoadPetFromDB | ( | Player * | owner, |
| uint32 | petentry = 0, | ||
| uint32 | petnumber = 0, | ||
| bool | current = false ) |
Definition at line 91 of file Pet.cpp.
References _LoadAuras(), _LoadSpellCooldowns(), _LoadSpells(), Map::AddToMap(), Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), Skyfire::PetTransport::BoardOwnerHunterPet(), Player::CanTameExoticPets(), CastPetAuras(), CHAR_SEL_CHAR_ACTIVE_PET, CHAR_SEL_CHAR_PET_BY_ENTRY, CHAR_SEL_CHAR_PET_BY_ENTRY_AND_SLOT_2, CHAR_SEL_CHAR_PET_BY_SLOT, CHAR_SEL_PET_DECLINED_NAME, CHAR_UDP_CHAR_PET_SLOT_BY_SLOT_EXCLUDE_ID, CHAR_UPD_CHAR_PET_ACTIVE_BY_ID, CHAR_UPD_CHAR_PET_ACTIVE_BY_OWNER, CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, CLASS_MAGE, CLASS_WARRIOR, CleanupActionBar(), Create(), CREATURE_TYPE_CRITTER, GENDER_NONE, Field::GetBool(), Unit::GetCharmInfo(), WorldObject::GetClosePoint(), Creature::GetCreatureTemplate(), SpellInfo::GetDuration(), Object::GetEntry(), Unit::getFaction(), Minion::GetFollowAngle(), Player::GetGroup(), Object::GetGUID(), Object::GetGUIDLow(), Unit::getLevel(), WorldObject::GetMap(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetObjectSize(), Position::GetOrientation(), getPetType(), WorldObject::GetPhases(), Position::GetPositionX(), Position::GetPositionY(), Field::GetString(), WorldObject::GetTransport(), Object::GetTypeId(), Field::GetUInt16(), Field::GetUInt32(), GROUP_UPDATE_PET, HIGHGUID_PET, HUNTER_PET, InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), InitTalentForLevel(), isControlled(), IsPermanentPetFor(), Minion::IsPetGhoul(), Player::IsPetNeedBeTemporaryUnsummoned(), Position::IsPositionValid(), CreatureTemplate::IsTameable(), isTemporarySummoned(), JUST_DIED, LearnPetPassives(), Unit::m_charmInfo, m_declinedname, m_loading, MAX_DECLINED_NAME_CASES, PET_FOLLOW_DIST, PET_SAVE_AS_CURRENT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, Player::PetSpellInitialize(), POWER_FOCUS, POWER_MANA, Position::Relocate(), Object::SetByteFlag(), Unit::SetCanModifyStats(), Unit::SetClass(), Unit::SetCreatorGUID(), setDeathState(), SetDisplayId(), Unit::setFaction(), Unit::SetFieldPowerType(), Unit::SetGender(), Player::SetGroupUpdateFlag(), Unit::SetHealth(), Player::SetLastPetNumber(), Unit::SetMinion(), WorldObject::SetName(), Unit::SetNativeDisplayId(), setPetType(), Unit::SetPhased(), Unit::SetPower(), Unit::setPowerType(), Creature::SetReactState(), Unit::SetSheath(), SetSpec(), Player::SetTemporaryUnsummonedPetNumber(), PreparedStatement::setUInt32(), Object::SetUInt32Value(), PreparedStatement::setUInt8(), SF_LOG_DEBUG, SF_LOG_ERROR, SHEATH_STATE_MELEE, sObjectMgr, sSpellMgr, SUMMON_PET, SynchronizeLevelWithOwner(), Object::ToCreature(), Object::ToPlayer(), CreatureTemplate::type, TYPEID_PLAYER, UNIT_CAN_BE_ABANDONED, UNIT_CAN_BE_RENAMED, UNIT_FIELD_CREATED_BY_SPELL, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_PET_EXPERIENCE, UNIT_FIELD_PET_NAME_TIMESTAMP, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG_PVP_ATTACKABLE, and UNIT_NPC_FLAG_NONE.
Referenced by WorldSession::HandlePlayerLogin(), WorldSession::HandleStableSwapPetCallback(), WorldSession::HandleUnstablePetCallback(), Player::LoadPet(), Player::ResummonPetTemporaryUnSummonedIfAny(), and Player::SummonPet().
|
virtual |
Reimplemented from Creature.
Definition at line 2054 of file Pet.cpp.
References Creature::_AddCreatureSpellCooldown(), ASSERT, ByteBuffer::bitwpos(), ByteBuffer::FlushBits(), Creature::GetCreatureSpellCooldownDelay(), Object::GetGUID(), GetOwner(), SpellInfo::GetSchoolMask(), IN_MILLISECONDS, SpellInfo::IsCooldownStartedOnEvent(), m_spells, PETSPELL_REMOVED, SpellInfo::PreventionType, ByteBuffer::PutBits(), SMSG_SPELL_COOLDOWN, SPELL_PREVENTION_TYPE_SILENCE, sSpellMgr, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
| void Pet::Remove | ( | PetSaveMode | mode, |
| bool | returnreagent = false ) |
Definition at line 697 of file Pet.cpp.
References GetOwner(), and Player::RemovePet().
Referenced by AuraEffect::HandleModPossessPet(), and Update().
|
virtual |
Reimplemented from Minion.
Definition at line 75 of file Pet.cpp.
References Object::IsInWorld(), Unit::RemoveFromWorld(), and sObjectAccessor.
| bool Pet::removeSpell | ( | uint32 | spell_id, |
| bool | learn_prev, | ||
| bool | clear_ab = true ) |
Definition at line 1601 of file Pet.cpp.
References Unit::getLevel(), GetMaxTalentPointsForLevel(), GetOwner(), GetTalentSpellCost(), learnSpell(), Unit::m_charmInfo, m_loading, m_spells, m_usedTalentCount, PETSPELL_NEW, PETSPELL_REMOVED, Unit::RemoveAurasDueToSpell(), SetFreeTalentPoints(), sSpellMgr, and TYPEID_PLAYER.
Referenced by pet_commandscript::HandlePetUnlearnCommand(), UnlearnSpecializationSpells(), and unlearnSpell().
|
inline |
Definition at line 140 of file Pet.h.
References m_auraRaidUpdateMask.
| bool Pet::resetTalents | ( | ) |
Definition at line 1679 of file Pet.cpp.
Referenced by reset_commandscript::HandleResetTalentsCommand(), InitTalentForLevel(), Player::ResetPetTalents(), and resetTalentsForAllPetsOf().
Definition at line 1752 of file Pet.cpp.
References AT_LOGIN_RESET_PET_TALENTS, CHAR_SEL_CHAR_PET, CHAR_SEL_PET_SPELL_LIST, CharacterDatabase, Unit::GetCharmInfo(), Object::GetGUIDLow(), CharmInfo::GetPetNumber(), GetTalentSpellCost(), Field::GetUInt32(), Player::HasAtLoginFlag(), Pet(), Player::RemoveAtLoginFlag(), resetTalents(), and PreparedStatement::setUInt32().
Referenced by WorldSession::HandlePlayerLogin().
| void Pet::SavePetToDB | ( | PetSaveMode | mode | ) |
Definition at line 365 of file Pet.cpp.
References _SaveAuras(), _SaveSpellCooldowns(), _SaveSpells(), ACTION_BAR_INDEX_END, ACTION_BAR_INDEX_START, CHAR_DEL_CHAR_PET_BY_ID, CHAR_DEL_CHAR_PET_BY_SLOT, CHAR_UDP_CHAR_PET_SLOT_BY_SLOT, CHAR_UPD_CHAR_PET_ACTIVE_BY_OWNER, CharacterDatabase, DeleteFromDB(), Object::GetEntry(), Object::GetGUID(), Unit::GetHealth(), Unit::getLevel(), Unit::GetNativeDisplayId(), GetOwner(), Unit::GetOwnerGUID(), Unit::GetPetGUID(), getPetType(), Unit::GetPower(), Creature::GetReactState(), Player::GetTemporaryUnsummonedPetNumber(), Object::GetUInt32Value(), GUID_LOPART(), Object::HasByteFlag(), HUNTER_PET, IS_PLAYER_GUID(), isControlled(), Unit::m_charmInfo, WorldObject::m_name, m_petSpec, PET_SAVE_AS_CURRENT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, POWER_MANA, Unit::RemoveAllAuras(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), UNIT_CAN_BE_RENAMED, UNIT_FIELD_CREATED_BY_SPELL, UNIT_FIELD_PET_EXPERIENCE, and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectLearnPetSpell(), Spell::EffectSummonDeadPet(), Spell::EffectTameCreature(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePlayerLogin(), Player::RemovePet(), and Player::SummonPet().
|
inline |
Definition at line 139 of file Pet.h.
References m_auraRaidUpdateMask.
Referenced by Unit::UpdateAuraForGroup().
|
virtual |
Reimplemented from Creature.
Definition at line 521 of file Pet.cpp.
References ALIVE, CastPetAuras(), CORPSE, Unit::getDeathState(), getPetType(), HUNTER_PET, OBJECT_FIELD_DYNAMIC_FLAGS, Object::RemoveFlag(), Creature::setDeathState(), Object::SetUInt32Value(), UNIT_DYNFLAG_NONE, UNIT_FIELD_FLAGS, and UNIT_FLAG_SKINNABLE.
Referenced by Spell::EffectSummonDeadPet(), WorldSession::HandlePetActionHelper(), and LoadPetFromDB().
|
virtual |
Reimplemented from Creature.
Definition at line 2122 of file Pet.cpp.
References GetOwner(), GROUP_UPDATE_FLAG_PET_MODEL_ID, isControlled(), Creature::SetDisplayId(), and Object::ToPlayer().
Referenced by CreateBaseAtCreature(), and LoadPetFromDB().
|
inline |
|
inline |
Definition at line 134 of file Pet.h.
References Object::SetByteValue(), and UNIT_FIELD_ANIM_TIER.
Referenced by addSpell(), InitTalentForLevel(), and removeSpell().
|
inline |
| void Pet::SetSpec | ( | uint16 | spec | ) |
Definition at line 2194 of file Pet.cpp.
References CleanupActionBar(), GetOwner(), LearnSpecializationSpells(), m_petSpec, Player::PetSpellInitialize(), sChrSpecializationStore, SMSG_SET_PET_SPEC, and UnlearnSpecializationSpells().
Referenced by WorldSession::HandleSetPetSpecialization(), and LoadPetFromDB().
| void Pet::StartTransportExitGrace | ( | uint32 | duration | ) |
Definition at line 86 of file Pet.cpp.
References m_transportExitGraceTimer.
Referenced by Skyfire::PetTransport::RemoveOwnerHunterPet().
| void Pet::SynchronizeLevelWithOwner | ( | ) |
Definition at line 2030 of file Pet.cpp.
References Unit::getLevel(), GetOwner(), getPetType(), Object::GetTypeId(), GivePetLevel(), HUNTER_PET, SUMMON_PET, and TYPEID_PLAYER.
Referenced by LoadPetFromDB().
| void Pet::ToggleAutocast | ( | SpellInfo const * | spellInfo, |
| bool | apply ) |
Definition at line 1852 of file Pet.cpp.
References ACT_DISABLED, ACT_ENABLED, SpellInfo::Id, SpellInfo::IsAutocastable(), m_autospells, m_spells, PETSPELL_CHANGED, and PETSPELL_NEW.
Referenced by addSpell(), and CleanupActionBar().
| void Pet::UnlearnSpecializationSpells | ( | ) |
Definition at line 2163 of file Pet.cpp.
References GetSpecializationSpells(), HasSpell(), m_petSpec, removeSpell(), and sSpellMgr.
Referenced by InitLevelupSpellsForLevel(), and SetSpec().
| bool Pet::unlearnSpell | ( | uint32 | spell_id, |
| bool | learn_prev, | ||
| bool | clear_ab = true ) |
Definition at line 1586 of file Pet.cpp.
References GetOwner(), Player::GetSession(), m_loading, removeSpell(), WorldSession::SendPacket(), and SMSG_PET_REMOVED_SPELL.
Referenced by addSpell(), and InitLevelupSpellsForLevel().
|
virtual |
Reimplemented from Creature.
Definition at line 541 of file Pet.cpp.
References ALIVE, Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), CORPSE, Object::GetEntry(), Object::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), GetOwner(), Unit::GetOwnerGUID(), Unit::GetPetGUID(), getPetType(), Unit::getPowerType(), WorldObject::GetTransport(), WorldObject::GetVisibilityRange(), HasTransportExitGrace(), HUNTER_PET, Unit::IsAlive(), isControlled(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), Creature::m_corpseRemoveTime, Unit::m_deathState, m_duration, m_loading, m_regenTimer, m_removed, m_transportExitGraceTimer, PET_FOCUS_REGEN_INTERVAL, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, POWER_FOCUS, Creature::Regenerate(), Remove(), SF_LOG_ERROR, Skyfire::PetTransport::ShouldReattachPetDuringOwnerTransportUpdate(), Skyfire::PetTransport::ShouldRemovePetForOwnerRange(), SUMMON_PET, and Creature::Update().
|
protected |
Definition at line 151 of file Pet.h.
Referenced by GetAuraUpdateMaskForRaid(), Pet(), ResetAuraUpdateMaskForRaid(), and SetAuraUpdateMaskForRaid().
| AutoSpellList Pet::m_autospells |
Definition at line 124 of file Pet.h.
Referenced by GetPetAutoSpellOnPos(), GetPetAutoSpellSize(), and ToggleAutocast().
|
protected |
Definition at line 156 of file Pet.h.
Referenced by GetDeclinedNames(), LoadPetFromDB(), Pet(), and ~Pet().
|
protected |
Definition at line 150 of file Pet.h.
Referenced by GetDuration(), isTemporarySummoned(), Pet(), SetDuration(), and Update().
|
protected |
Definition at line 152 of file Pet.h.
Referenced by isBeingLoaded(), learnSpell(), LoadPetFromDB(), Pet(), removeSpell(), unlearnSpell(), and Update().
| uint16 Pet::m_petSpec |
Definition at line 106 of file Pet.h.
Referenced by GetPetSpecByTalentTab(), GetSpecialization(), LearnSpecializationSpells(), Pet(), SavePetToDB(), SetSpec(), and UnlearnSpecializationSpells().
|
protected |
Definition at line 149 of file Pet.h.
Referenced by getPetType(), Pet(), and setPetType().
|
protected |
| bool Pet::m_removed |
Definition at line 144 of file Pet.h.
Referenced by Pet(), Player::RemovePet(), and Update().
| PetSpellMap Pet::m_spells |
Definition at line 123 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(), ProhibitSpellSchool(), removeSpell(), and ToggleAutocast().
|
protected |
Definition at line 154 of file Pet.h.
Referenced by ClearTransportExitGrace(), HasTransportExitGrace(), Pet(), StartTransportExitGrace(), and Update().
| uint32 Pet::m_usedTalentCount |
Definition at line 136 of file Pet.h.
Referenced by addSpell(), InitTalentForLevel(), Pet(), removeSpell(), and Player::ResetPetTalents().