|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Creature.h>
Public Member Functions | |
| 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) |
| void | AddToWorld () OVERRIDE |
| 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) | |
| virtual void | DeleteFromDB () |
| 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 |
| virtual uint32 | GetPetAutoSpellOnPos (uint8 pos) const |
| virtual uint8 | GetPetAutoSpellSize () 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 | HasSpell (uint32 spellID) const OVERRIDE |
| 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 () |
| virtual void | ProhibitSpellSchool (SpellSchoolMask idSchoolMask, uint32 unTimeMs) OVERRIDE |
| SpellInfo const * | reachWithSpellAttack (Unit *victim) |
| SpellInfo const * | reachWithSpellCure (Unit *victim) |
| void | ReleaseFocus (Spell const *focusSpell) |
| void | RemoveCorpse (bool setSpawnTime=true) |
| void | RemoveFromWorld () OVERRIDE |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| void | ResetPlayerDamageReq () |
| void | Respawn (bool force=false) |
| void | SaveRespawnTime () OVERRIDE |
| void | SaveToDB () |
| virtual void | SaveToDB (uint32 mapid, uint32 spawnMask) |
| 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 | setDeathState (DeathState s) OVERRIDE |
| void | SetDefaultMovementType (MovementGeneratorType mgt) |
| void | SetDisableReputationGain (bool disable) |
| void | SetDisplayId (uint32 modelId) OVERRIDE |
| 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) |
| void | Update (uint32 time) OVERRIDE |
| bool | UpdateAllStats () OVERRIDE |
| void | UpdateArmor () OVERRIDE |
| void | UpdateAttackPowerAndDamage (bool ranged=false) OVERRIDE |
| void | UpdateDamagePhysical (WeaponAttackType attType) OVERRIDE |
| bool | UpdateEntry (uint32 entry, uint32 team=ALLIANCE, const CreatureData *data=NULL) |
| void | UpdateMaxHealth () OVERRIDE |
| void | UpdateMaxPower (Powers power) OVERRIDE |
| void | UpdateMovementFlags () |
| void | UpdateResistances (uint32 school) OVERRIDE |
| bool | UpdateStats (Stats stat) OVERRIDE |
| 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 |
| virtual float | GetFollowAngle () 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 |
| virtual bool | isBeingLoaded () 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 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) |
Protected Member Functions | |
| 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 | |
| static float | _GetHealthMod (int32 Rank) |
Private Member Functions | |
| void | ForcedDespawn (uint32 timeMSToDespawn=0) |
Private Attributes | |
| Spell const * | _focusSpell |
| CreatureGroup * | m_formation |
| uint32 | m_path_id |
| uint32 | m_waypointID |
| bool | TriggerJustRespawned |
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 |
Definition at line 426 of file Creature.h.
|
explicit |
Definition at line 141 of file Creature.cpp.
References _focusSpell, CONFIG_SIGHT_MONSTER, CREATURE_MAX_SPELLS, CREATURE_REGEN_INTERVAL, DisableReputationGain, IDLE_MOTION_TYPE, lootForBody, lootForPickPocketed, lootingGroupLowGUID, m_AI_locked, m_AlreadyCallAssistance, m_AlreadySearchedAssistance, m_CombatDistance, m_corpseDelay, m_corpseRemoveTime, m_CreatureCategoryCooldowns, m_creatureData, m_creatureInfo, m_CreatureSpellCooldowns, m_DBTableGuid, m_defaultMovementType, m_equipmentId, m_formation, m_groupLootTimer, m_isTempWorldObject, m_lootRecipient, m_lootRecipientGroup, m_meleeDamageSchoolMask, m_originalEquipmentId, m_path_id, m_PlayerDamageReq, m_reactState, m_regenHealth, Unit::m_regenTimer, m_respawnDelay, m_respawnradius, m_respawnTime, m_SightDistance, m_spells, Object::m_valuesCount, MapObject::MapObject(), REACT_AGGRESSIVE, ResetLootMode(), SPELL_SCHOOL_MASK_NORMAL, sWorld, TriggerJustRespawned, Unit::Unit(), and UNIT_END.
Referenced by DoFleeToGetAssistance(), TempSummon::GetSummonerCreatureBase(), TempSummon::InitStats(), Respawn(), and TempSummon::TempSummon().
|
virtual |
Definition at line 168 of file Creature.cpp.
References Unit::i_AI.
| void Creature::_AddCreatureCategoryCooldown | ( | uint32 | category, |
| time_t | apply_time ) |
Definition at line 2153 of file Creature.cpp.
References m_CreatureCategoryCooldowns.
Referenced by AddCreatureSpellCooldown().
| void Creature::_AddCreatureSpellCooldown | ( | uint32 | spell_id, |
| time_t | end_time ) |
Definition at line 2148 of file Creature.cpp.
References m_CreatureSpellCooldowns.
Referenced by Pet::_LoadSpellCooldowns(), AddCreatureSpellCooldown(), ProhibitSpellSchool(), and Pet::ProhibitSpellSchool().
|
static |
Definition at line 1131 of file Creature.cpp.
References CREATURE_ELITE_ELITE, CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, RATE_CREATURE_ELITE_ELITE_DAMAGE, RATE_CREATURE_ELITE_RARE_DAMAGE, RATE_CREATURE_ELITE_RAREELITE_DAMAGE, RATE_CREATURE_ELITE_WORLDBOSS_DAMAGE, RATE_CREATURE_NORMAL_DAMAGE, and sWorld.
Referenced by ObjectMgr::CheckCreatureTemplate().
|
staticprotected |
Definition at line 1106 of file Creature.cpp.
References CREATURE_ELITE_ELITE, CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, RATE_CREATURE_ELITE_ELITE_HP, RATE_CREATURE_ELITE_RARE_HP, RATE_CREATURE_ELITE_RAREELITE_HP, RATE_CREATURE_ELITE_WORLDBOSS_HP, RATE_CREATURE_NORMAL_HP, and sWorld.
Referenced by LoadCreatureFromDB(), and SelectLevel().
| bool Creature::_IsTargetAcceptable | ( | const Unit * | target | ) | const |
Definition at line 1937 of file Creature.cpp.
References ASSERT, Unit::getAttackerForHelper(), Object::HasFlag(), Unit::HasUnitState(), Unit::IsFriendlyTo(), IsGuard(), Unit::IsHostileTo(), Unit::IsOnVehicle(), Unit::isTargetableForAttack(), Unit::m_vehicle, Unit::Unit(), UNIT_FIELD_FLAGS2, UNIT_FLAG2_FEIGN_DEATH, and UNIT_STATE_DIED.
Referenced by CanStartAttack(), and SelectVictim().
| void Creature::AddCreatureSpellCooldown | ( | uint32 | spellid | ) |
Definition at line 2158 of file Creature.cpp.
References _AddCreatureCategoryCooldown(), _AddCreatureSpellCooldown(), SpellInfo::GetCategory(), SpellInfo::GetRecoveryTime(), Unit::GetSpellModOwner(), IN_MILLISECONDS, SPELLMOD_COOLDOWN, and sSpellMgr.
Referenced by WorldSession::HandlePetActionHelper(), and WorldSession::HandlePetCancelAuraOpcode().
|
inline |
Definition at line 558 of file Creature.h.
References m_LootMode.
Referenced by LuaCreature::AddLootMode().
|
virtual |
Reimplemented from Object.
Reimplemented in Pet.
Definition at line 177 of file Creature.cpp.
References Unit::AddToWorld(), AIM_Initialize(), Unit::GetVehicleKit(), Vehicle::Install(), Object::IsInWorld(), Unit::IsVehicle(), WorldObject::m_zoneScript, SearchFormation(), and sObjectAccessor.
Referenced by AddObjectHelper().
|
inline |
Definition at line 483 of file Creature.h.
References Unit::i_AI.
Referenced by Player::AddQuest(), boss_moroes::boss_moroesAI::AddsAttack(), Unit::Attack(), LuaCreature::AttackStart(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), CanAlwaysSee(), CanCreatureAttack(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::CastConsumingMadness(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::ChannelerEngaged(), spell_razorscale_flame_breath::spell_razorscale_flame_breath_SpellScript::CheckDamage(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirementInternal(), netherspite_infernal::netherspite_infernalAI::Cleanup(), Unit::CombatStart(), CreatureUnitRelocationWorker(), Unit::DealDamage(), hyjalAI::DeSpawnVeins(), npc_head::npc_headAI::Disappear(), npc_halion_controller::npc_halion_controllerAI::DoAction(), npc_orb_carrier::npc_orb_carrierAI::DoAction(), SummonList::DoAction(), Spell::DoAllEffectOnTarget(), boss_four_horsemen::boss_four_horsemenAI::DoEncounteraction(), HomeMovementGenerator< Creature >::DoFinalize(), boss_brutallus::boss_brutallusAI::DoIntro(), hyjalAI::DoOverrun(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), boss_warbringer_omrogg::boss_warbringer_omroggAI::DoYellForThreat(), CreatureAI::DoZoneInCombat(), SummonList::DoZoneInCombat(), boss_alythess::boss_alythessAI::EnterCombat(), boss_emalon::boss_emalonAI::EnterCombat(), boss_freya::boss_freyaAI::EnterCombat(), boss_sacrolash::boss_sacrolashAI::EnterCombat(), boss_twinemperorsAI::EnterCombat(), npc_ethereal_beacon::npc_ethereal_beaconAI::EnterCombat(), AssistDelayEvent::Execute(), spell_malygos_surge_of_power_warning_selector_25::spell_malygos_surge_of_power_warning_selector_25_SpellScript::ExecuteMainSpell(), spell_scion_of_eternity_arcane_barrage::spell_scion_of_eternity_arcane_barrage_SpellScript::FilterMeleeHoverDiskPassangers(), spell_malygos_surge_of_power_25::spell_malygos_surge_of_power_25_SpellScript::FilterTargets(), EffectMovementGenerator::Finalize(), RotateMovementGenerator::Finalize(), TimedFleeingMovementGenerator::Finalize(), FindSceneActor(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), spell_thaddius_pos_neg_charge::spell_thaddius_pos_neg_charge_SpellScript::HandleDamage(), spell_algalon_trigger_3_adds::spell_algalon_trigger_3_adds_SpellScript::HandleDummy(), spell_q12096_q12092_bark::spell_q12096_q12092_bark_SpellScript::HandleDummy(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), npc_commandscript::HandleNpcSetDataCommand(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), WorldSession::HandlePetActionHelper(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), spell_festergut_pungent_blight::spell_festergut_pungent_blight_SpellScript::HandleScript(), spell_pursue::spell_pursue_SpellScript::HandleScript(), spell_putricide_unstable_experiment::spell_putricide_unstable_experiment_SpellScript::HandleScript(), spell_q13011_bear_flank_master::spell_q13011_bear_flank_master_SpellScript::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::spell_the_lich_king_vile_spirit_move_target_search_SpellScript::HandleScript(), Unit::HandleSpellClick(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), TempSummon::InitSummon(), boss_alythess::boss_alythessAI::IntroStep(), npc_meteor_strike_initial::npc_meteor_strike_initialAI::IsSummonedBy(), boss_priestess_lackey_commonAI::JustDied(), boss_twinemperorsAI::JustDied(), boss_warbringer_omrogg::boss_warbringer_omroggAI::JustDied(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::JustDied(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), npc_counselor_talbot::npc_counselor_talbotAI::JustDied(), npc_fel_crystal::npc_fel_crystalAI::JustDied(), npc_ferocious_rhino::npc_ferocious_rhinoAI::JustDied(), npc_frenzied_worgen::npc_frenzied_worgenAI::JustDied(), npc_massive_jormungar::npc_massive_jormungarAI::JustDied(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::JustDied(), npc_tito::npc_titoAI::JustDied(), npc_xt002_heart::npc_xt002_heartAI::JustDied(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), WorldBossAI::JustSummoned(), Unit::Kill(), boss_warbringer_omrogg::boss_warbringer_omroggAI::KilledUnit(), CreatureGroup::MemberAttackStart(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), Unit::Mount(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), ChaseMovementGenerator< T >::MovementInform(), FollowMovementGenerator< T >::MovementInform(), npc_jedoga_initiand::npc_jedoga_initiandAI::MovementInform(), PointMovementGenerator< Creature >::MovementInform(), WaypointMovementGenerator< Creature >::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), achievement_intense_cold::OnCheck(), containment_sphere::OnGossipHello(), go_manaforge_control_console::OnGossipHello(), go_manticron_cube::OnGossipHello(), go_ossirian_crystal::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), prince_taldaram_sphere::OnGossipHello(), go_amberpine_outhouse::OnGossipSelect(), npc_taretha::OnGossipSelect(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), go_crystal_prison::OnQuestAccept(), go_crystalline_tear::OnQuestAccept(), spell_taldaram_flame_ball_visual::spell_flame_ball_visual_AuraScript::OnRemove(), at_commander_dawnforge::OnTrigger(), at_kelthuzad_center::OnTrigger(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), item_dehta_trap_smasher::OnUse(), item_tainted_core::OnUse(), FrostwingGauntletRespawner::operator()(), OrderWhelpTargetSelector::operator()(), Skyfire::CallOfHelpCreatureInRangeDo::operator()(), spell_varos_energize_core_area_enemy::spell_varos_energize_core_area_enemySpellScript::PrepareSpellScript(), spell_varos_energize_core_area_entry::spell_varos_energize_core_area_entrySpellScript::PrepareSpellScript(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), instance_ulduar::instance_ulduar_InstanceMapScript::ProcessEvent(), RemoveCorpse(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), npc_ferocious_rhino::npc_ferocious_rhinoAI::Reset(), npc_frenzied_worgen::npc_frenzied_worgenAI::Reset(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), npc_massive_jormungar::npc_massive_jormungarAI::Reset(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Reset(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::Reset(), ResetCryForTheMoonActor(), Resurrect(), hyjalAI::Retreat(), SelectVictim(), LuaCreature::SendCreatureTalk(), spell_malygos_surge_of_power_warning_selector_25::spell_malygos_surge_of_power_warning_selector_25_SpellScript::SendThreeTargets(), Unit::SetCharmedBy(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), boss_midnight::boss_midnightAI::SetMidnight(), boss_cthun::cthunAI::SpawnEyeTentacle(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), npc_oliver_harris::npc_oliver_harrisAI::StartSceneImpl(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), hyjalAI::SummonCreature(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::SummonMinion(), go_wind_stone::SummonNPC(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::SummonSoul(), Unit::TauntApply(), Unit::TauntFadeOut(), boss_twinemperorsAI::TeleportToMyBrother(), TempSummon::UnSummon(), Update(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_attumen::boss_attumenAI::UpdateAI(), boss_blood_council_controller::boss_blood_council_controllerAI::UpdateAI(), boss_curator::boss_curatorAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::UpdateAI(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::UpdateAI(), boss_headless_horseman::boss_headless_horsemanAI::UpdateAI(), boss_julianne::boss_julianneAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_magtheridon::boss_magtheridonAI::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), boss_moroes::boss_moroesAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), boss_romulo::boss_romuloAI::UpdateAI(), boss_sacrolash::boss_sacrolashAI::UpdateAI(), boss_teron_gorefiend::boss_teron_gorefiendAI::UpdateAI(), boss_warbringer_omrogg::boss_warbringer_omroggAI::UpdateAI(), npc_akama_illidan::npc_akama_illidanAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_thassarian::npc_thassarianAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_toxic_sporebat::npc_toxic_sporebatAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_twilight_eggs::npc_twilight_eggsAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), and npc_ranger_lilatha::npc_ranger_lilathaAI::WaypointReached().
| bool Creature::AIM_Initialize | ( | CreatureAI * | ai = NULL | ) |
Definition at line 702 of file Creature.cpp.
References Unit::GetVehicleKit(), Unit::i_AI, Unit::IsAIEnabled, m_AI_locked, Motion_Initialize(), Vehicle::Reset(), FactorySelector::selectAI(), and SF_LOG_DEBUG.
Referenced by AddToWorld(), Pet::AddToWorld(), and WorldObject::SummonTrigger().
| void Creature::AllLootRemovedFromCorpse | ( | ) |
Definition at line 2275 of file Creature.cpp.
References GetCreatureTemplate(), Object::HasFlag(), m_corpseRemoveTime, m_respawnTime, RATE_CORPSE_DECAY_LOOTED, CreatureTemplate::SkinLootId, sWorld, UNIT_FIELD_FLAGS, and UNIT_FLAG_SKINNABLE.
Referenced by WorldSession::DoLootRelease().
| void Creature::CallAssistance | ( | ) |
Definition at line 1834 of file Creature.cpp.
References AssistDelayEvent::AddAssistant(), Skyfire::ComputeCellCoord(), CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY, CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS, Object::GetGUID(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetVictim(), Unit::IsCharmed(), Unit::IsPet(), m_AlreadyCallAssistance, Unit::m_Events, SetNoCallAssistance(), Cell::SetNoCreate(), sWorld, and Cell::Visit().
Referenced by Unit::Attack(), LuaCreature::CallAssistance(), and AssistanceMovementGenerator::Finalize().
| void Creature::CallForHelp | ( | float | fRadius | ) |
Definition at line 1874 of file Creature.cpp.
References Skyfire::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetVictim(), Unit::IsCharmed(), Unit::IsPet(), Cell::SetNoCreate(), and Cell::Visit().
Referenced by LuaCreature::CallForHelp().
|
protectedvirtual |
Reimplemented from WorldObject.
Definition at line 1369 of file Creature.cpp.
References AI(), Unit::IsAIEnabled, and WorldObject::WorldObject().
Definition at line 1891 of file Creature.cpp.
References Unit::GetCharmerOrOwnerGUID(), Unit::getFaction(), Object::HasFlag(), HasReactState(), Unit::IsAlive(), IsCivilian(), Unit::IsFriendlyTo(), Unit::IsHostileTo(), Unit::IsInCombat(), REACT_AGGRESSIVE, Unit::Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_NON_ATTACKABLE, and UNIT_FLAG_NOT_SELECTABLE.
Referenced by LuaCreature::CanAssistTo(), AssistDelayEvent::Execute(), Skyfire::AnyAssistCreatureInRangeCheck::operator()(), Skyfire::CallOfHelpCreatureInRangeDo::operator()(), and Skyfire::NearestAssistCreatureInCreatureRangeCheck::operator()().
| bool Creature::CanCreatureAttack | ( | Unit const * | victim, |
| bool | force = true ) const |
Definition at line 1980 of file Creature.cpp.
References AI(), CONFIG_THREAT_RADIUS, GetAttackDistance(), Unit::GetCharmerOrOwner(), WorldLocation::GetMapId(), Unit::IsAIEnabled, Unit::isInAccessiblePlaceFor(), Position::IsInDist(), WorldObject::IsInMap(), Unit::IsValidAttackTarget(), WorldObject::IsWithinDist(), m_CombatDistance, m_homePosition, sMapStore, sWorld, and Unit::Unit().
Referenced by CanStartAttack(), ThreatContainer::selectNextVictim(), and SelectVictim().
|
inlinevirtual |
Implements Unit.
Definition at line 458 of file Creature.h.
References GetCreatureTemplate(), INHABIT_AIR, CreatureTemplate::InhabitType, and OVERRIDE.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), PathGenerator::BuildPolyPath(), LuaCreature::CanFly(), CanStartAttack(), Unit::isInAccessiblePlaceFor(), LoadCreatureFromDB(), setDeathState(), UpdateMovementFlags(), and Unit::UpdateSplinePosition().
| bool Creature::CanStartAttack | ( | Unit const * | u, |
| bool | force ) const |
Definition at line 1377 of file Creature.cpp.
References _IsTargetAcceptable(), ATTACK_DISTANCE, CanCreatureAttack(), CanFly(), CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS, CREATURE_TYPE_NON_COMBAT_PET, CREATURE_Z_ATTACK_RANGE, GetAttackDistance(), Unit::getAttackerForHelper(), Unit::GetCreatureType(), WorldObject::GetDistanceZ(), Object::GetTypeId(), Object::HasFlag(), IsCivilian(), Unit::IsInCombat(), Unit::IsNeutralToAll(), WorldObject::IsWithinDist(), WorldObject::IsWithinDistInMap(), WorldObject::IsWithinLOSInMap(), m_CombatDistance, sWorld, TYPEID_UNIT, Unit::Unit(), UNIT_FIELD_FLAGS, and UNIT_FLAG_IMMUNE_TO_NPC.
Referenced by LuaCreature::CanStartAttack().
|
inline |
Definition at line 457 of file Creature.h.
References GetCreatureTemplate(), INHABIT_WATER, CreatureTemplate::InhabitType, and Unit::IsPet().
Referenced by PathGenerator::BuildPolyPath(), LuaCreature::CanSwim(), PathGenerator::CreateFilter(), Unit::isInAccessiblePlaceFor(), and WorldObject::UpdateAllowedPositionZ().
|
inline |
Definition at line 456 of file Creature.h.
References GetCreatureTemplate(), INHABIT_GROUND, and CreatureTemplate::InhabitType.
Referenced by LuaCreature::CanWalk(), PathGenerator::CreateFilter(), PathGenerator::DensifyGroundPath(), and Unit::isInAccessiblePlaceFor().
| bool Creature::Create | ( | uint32 | guidlow, |
| Map * | map, | ||
| uint32 | Entry, | ||
| uint32 | vehId, | ||
| uint32 | team, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| const CreatureData * | data = NULL ) |
Relocate before CreateFromProto, to initialize coords and allow returning correct zone id for selecting OutdoorPvP/Battlefield script
Need to be called after LoadCreaturesAddon - MOVEMENTFLAG_HOVER is set there
Relocate again with updated Z coord
Definition at line 740 of file Creature.cpp.
References ASSERT, CONFIG_CORPSE_DECAY_ELITE, CONFIG_CORPSE_DECAY_NORMAL, CONFIG_CORPSE_DECAY_RARE, CONFIG_CORPSE_DECAY_RAREELITE, CONFIG_CORPSE_DECAY_WORLDBOSS, CreateFromProto(), CREATURE_ELITE_ELITE, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, CreatureModelInfo::gender, GetCreatureTemplate(), Object::GetFloatValue(), Unit::GetNativeDisplayId(), GetPhasesForGroup(), GHOST_VISIBILITY_GHOST, Unit::HasUnitMovementFlag(), Position::IsPositionValid(), Unit::IsSpiritGuide(), Unit::IsSpiritHealer(), Unit::IsTotem(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), m_corpseDelay, WorldObject::m_serverSideVisibility, WorldObject::m_serverSideVisibilityDetect, MapObject::Map, MOVEMENTFLAG_HOVER, CreatureData::phaseGroup, CreatureData::phaseid, Position::Relocate(), CreatureTemplate::ScriptID, SERVERSIDE_VISIBILITY_GHOST, SetDisplayId(), Unit::SetGender(), WorldObject::SetMap(), Unit::SetNativeDisplayId(), Unit::SetPhased(), Unit::SetVisible(), SF_LOG_ERROR, sObjectMgr, sWorld, UNIT_FIELD_HOVER_HEIGHT, and VISUAL_WAYPOINT.
Referenced by Battleground::AddCreature(), debug_commandscript::HandleDebugSpawnVehicleCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), LoadCreatureFromDB(), LuaGlobalFunctions::PerformIngameSpawn(), Battlefield::SpawnCreature(), BattlePetWildZonePool::SpawnReplacement(), and Map::SummonCreature().
|
protected |
Definition at line 1169 of file Creature.cpp.
References Object::_Create(), Unit::CreateVehicleKit(), HIGHGUID_UNIT, HIGHGUID_VEHICLE, WorldObject::m_zoneScript, SetOriginalEntry(), WorldObject::SetZoneScript(), SF_LOG_ERROR, sObjectMgr, UpdateEntry(), and CreatureTemplate::VehicleId.
Referenced by Create().
|
virtual |
Reimplemented in Pet.
Definition at line 1326 of file Creature.cpp.
References Object::GetEntry(), Object::GetGUIDLow(), WorldObject::GetMap(), m_DBTableGuid, Map::RemoveCreatureRespawnTime(), PreparedStatement::setUInt32(), SF_LOG_ERROR, sObjectMgr, WORLD_DEL_CREATURE, WORLD_DEL_CREATURE_ADDON, WORLD_DEL_GAME_EVENT_CREATURE, WORLD_DEL_GAME_EVENT_MODEL_EQUIP, and WorldDatabase.
Referenced by npc_commandscript::HandleNpcDeleteCommand(), and wp_commandscript::HandleWpShowCommand().
| void Creature::DespawnOrUnsummon | ( | uint32 | msTimeToDespawn = 0 | ) |
Definition at line 1591 of file Creature.cpp.
References ForcedDespawn(), and Unit::ToTempSummon().
Referenced by Unit::_ExitVehicle(), spell_mage_ring_of_frost::spell_mage_ring_of_frost_AuraScript::Apply(), spell_the_lich_king_ice_burst_target_search::spell_the_lich_king_ice_burst_target_search_SpellScript::CheckTargetCount(), spell_the_lich_king_vile_spirit_damage_target_search::spell_the_lich_king_vile_spirit_damage_target_search_SpellScript::CheckTargetCount(), LuaCreature::Despawn(), SummonList::DespawnAll(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::DespawnDemon(), npc_brann_hos::npc_brann_hosAI::DespawnDwarf(), SummonList::DespawnEntry(), LuaCreature::DespawnOrUnsummon(), spell_rotface_unstable_ooze_explosion_suicide::spell_rotface_unstable_ooze_explosion_suicide_AuraScript::DespawnSelf(), Spell::EffectTameCreature(), spell_gen_despawn_self::spell_gen_despawn_self_SpellScript::HandleDummy(), spell_item_complete_raptor_capture::spell_item_complete_raptor_capture_SpellScript::HandleDummy(), spell_q12096_q12092_bark::spell_q12096_q12092_bark_SpellScript::HandleDummy(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), spell_q12690_burst_at_the_seams::spell_q12690_burst_at_the_seams_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_rotface_large_ooze_combine::spell_rotface_large_ooze_combine_SpellScript::HandleScript(), spell_rotface_little_ooze_combine::spell_rotface_little_ooze_combine_SpellScript::HandleScript(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), BattlefieldWG::OnCreatureCreate(), go_scourge_enclosure::OnGossipHello(), spell_taldaram_flame_ball_visual::spell_flame_ball_visual_AuraScript::OnRemove(), FrostwingGauntletRespawner::operator()(), OrbsDespawner::operator()(), TrashRespawnWorker::operator()(), ValithriaDespawner::operator()(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::SelectTarget(), BattlePetWildZonePool::SpawnReplacement(), TryApplyHarrisAmpule(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), and Player::UpdateAreaDependentAuras().
| void Creature::DisappearAndDie | ( | ) |
Definition at line 206 of file Creature.cpp.
References WorldObject::DestroyForNearbyPlayers(), Unit::IsAlive(), JUST_DIED, RemoveCorpse(), and setDeathState().
Referenced by npc_azure_saboteur::npc_azure_saboteurAI::FinishPointReached(), Battlefield::HideNpc(), boss_palehoof::boss_palehoofAI::JustDied(), boss_sartharion::boss_sartharionAI::JustDied(), npc_geezle::npc_geezleAI::NextStep(), go_ulduar_tower::OnDestroyed(), go_dragonflayer_cage::OnGossipHello(), go_jotunheim_cage::OnGossipHello(), go_tadpole_cage::OnGossipHello(), boss_vazruden_the_herald::boss_vazruden_the_heraldAI::UnsummonAdds(), boss_palehoof::boss_palehoofAI::UpdateAI(), and npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI().
| void Creature::DoFleeToGetAssistance | ( | ) |
Definition at line 667 of file Creature.cpp.
References Skyfire::ComputeCellCoord(), CONFIG_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS, Creature(), WorldObject::GetMap(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Unit::HasAuraType(), MOVE_RUN, MotionMaster::MoveSeekAssistance(), Unit::SetControlled(), Cell::SetNoCreate(), SetNoSearchAssistance(), SPELL_AURA_PREVENTS_FLEEING, sWorld, UNIT_STATE_FLEEING, Unit::UpdateSpeed(), and Cell::Visit().
Referenced by LuaCreature::FleeToGetAssistance().
| void Creature::FarTeleportTo | ( | Map * | map, |
| float | X, | ||
| float | Y, | ||
| float | Z, | ||
| float | O ) |
Definition at line 2425 of file Creature.cpp.
References Map::AddToMap(), Unit::CleanupBeforeRemoveFromMap(), WorldObject::GetMap(), MapObject::Map, Position::Relocate(), Map::RemoveFromMap(), and WorldObject::SetMap().
Referenced by Transport::TeleportTransport().
| void Creature::FocusTarget | ( | Spell const * | focusSpell, |
| WorldObject const * | target ) |
Definition at line 2632 of file Creature.cpp.
References _focusSpell, Unit::AddUnitState(), SpellInfo::AttributesEx5, Object::GetGUID(), Spell::GetSpellInfo(), Unit::SetInFront(), Object::SetUInt64Value(), SPELL_ATTR5_DONT_TURN_DURING_CAST, UNIT_FIELD_TARGET, UNIT_STATE_ROTATING, and WorldObject::WorldObject().
|
private |
Definition at line 1575 of file Creature.cpp.
References Unit::IsAlive(), JUST_DIED, Unit::m_Events, RemoveCorpse(), and setDeathState().
Referenced by DespawnOrUnsummon().
| float Creature::GetAggroRange | ( | Unit const * | target | ) | const |
Definition at line 2462 of file Creature.cpp.
References getLevelForTarget(), Unit::getLevelForTarget(), Unit::GetTotalAuraModifier(), Object::GetTypeId(), Unit::IsPet(), MAX_AGGRO_RADIUS, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, and Unit::Unit().
| std::string Creature::GetAIName | ( | ) | const |
Definition at line 2312 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by LuaCreature::GetAIName(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), SmartAI::Permissible(), and FactorySelector::selectAI().
| float Creature::GetAttackDistance | ( | Unit const * | player | ) | const |
Definition at line 1415 of file Creature.cpp.
References CONFIG_MAX_PLAYER_LEVEL, getLevelForTarget(), Unit::getLevelForTarget(), Unit::GetTotalAuraModifier(), RATE_CREATURE_AGGRO, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, sWorld, and Unit::Unit().
Referenced by CanCreatureAttack(), CanStartAttack(), LuaCreature::GetAggroRange(), and LuaCreature::GetAttackDistance().
|
inline |
Definition at line 451 of file Creature.h.
References m_corpseDelay.
Referenced by LuaCreature::GetCorpseDelay(), FrostwingGauntletRespawner::operator()(), and ValithriaDespawner::operator()().
| CreatureAddon const * Creature::GetCreatureAddon | ( | ) | const |
Definition at line 2006 of file Creature.cpp.
References GetCreatureTemplate(), m_DBTableGuid, and sObjectMgr.
Referenced by LoadCreaturesAddon(), and UpdateEntry().
|
inline |
Definition at line 525 of file Creature.h.
References m_creatureData.
Referenced by FrostwingGauntletRespawner::operator()(), and ValithriaDespawner::operator()().
Definition at line 2185 of file Creature.cpp.
References m_CreatureSpellCooldowns.
Referenced by LuaCreature::GetCreatureSpellCooldownDelay(), ProhibitSpellSchool(), and Pet::ProhibitSpellSchool().
|
inline |
Definition at line 524 of file Creature.h.
References m_creatureInfo.
Referenced by Unit::_IsValidAttackTarget(), AllLootRemovedFromCorpse(), Player::BuildPetTalentsInfoData(), Unit::BuildValuesUpdate(), CanFly(), CanSwim(), CanWalk(), Spell::CheckCast(), Create(), Pet::CreateBaseAtCreature(), PathGenerator::DensifyGroundPath(), Spell::DoSpellHitOnUnit(), Spell::EffectSkinning(), Spell::EffectSummonType(), GetCreatureAddon(), Unit::GetCreatureType(), Player::GetDefaultGossipMenuForSource(), Player::GetNPCIfCanInteractWith(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), npc_commandscript::HandleNpcTameCommand(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandleQuestgiverHelloOpcode(), Pet::HaveInDiet(), InitEntry(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), isCanTrainingAndResetTalentsOf(), IsCivilian(), isElite(), IsGuard(), IsImmunedToSpell(), IsImmunedToSpellEffect(), Unit::IsInPartyWith(), Unit::IsInRaidWith(), Pet::IsPermanentPetFor(), IsRacialLeader(), Unit::isSpellBlocked(), IsTrigger(), isWorldBoss(), Unit::Kill(), Pet::LearnPetPassives(), LoadCreatureFromDB(), LoadCreaturesAddon(), Pet::LoadPetFromDB(), Unit::MeleeSpellHitResult(), npc_ogre_brute::npc_ogre_bruteAI::MovementInform(), npc_eye_of_acherus::npc_eye_of_acherusAI::npc_eye_of_acherusAI(), npc_marshal_dughan::OnGossipHello(), Player::PetSpellInitialize(), Unit::RemoveCharmedBy(), Respawn(), Player::RewardReputation(), Unit::RollMeleeOutcomeAgainst(), SaveToDB(), FactorySelector::selectMovementGenerator(), Player::SendLoot(), WorldSession::SendTrainerList(), Unit::SetCharmedBy(), setDeathState(), UpdateDamagePhysical(), UpdateEntry(), GameEventMgr::UpdateEventNPCFlags(), UpdateMovementFlags(), Unit::UpdateSpeed(), and Unit::UpdateSplinePosition().
|
inline |
Definition at line 513 of file Creature.h.
References m_equipmentId.
Referenced by GameEventMgr::ChangeEquipOrModel(), AuraEffect::HandleAuraModDisarm(), npc_commandscript::HandleNpcInfoCommand(), and SaveToDB().
|
inline |
Definition at line 639 of file Creature.h.
References m_waypointID.
Referenced by LuaCreature::GetCurrentWaypointId().
|
inline |
Definition at line 445 of file Creature.h.
References m_DBTableGuid.
Referenced by BattlegroundAV::AddAVCreature(), CreatureGroup::AddMember(), Map::AddToActive(), OPvPCapturePoint::DelCreature(), GameEventMgr::GetNPCFlag(), GetRespawnPosition(), debug_commandscript::HandleDebugGetLootRecipientCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetLinkCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), wp_commandscript::HandleWpUnLoadCommand(), LoadCreaturesAddon(), WaypointMovementGenerator< Creature >::LoadPath(), CreatureGroup::MemberAttackStart(), MotionMaster::MoveChase(), MotionMaster::MoveFleeing(), MotionMaster::MoveFollow(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), RisenArchmageCheck::operator()(), Skyfire::CreatureWithDbGUIDCheck::operator()(), ValithriaDespawner::operator()(), LuaGlobalFunctions::PerformIngameSpawn(), FormationMgr::RemoveCreatureFromGroup(), Map::RemoveFromActive(), ResetCryForTheMoonActor(), Respawn(), SearchFormation(), and FactorySelector::selectAI().
|
inline |
Definition at line 589 of file Creature.h.
References m_defaultMovementType.
Referenced by LuaCreature::GetDefaultMovementType(), SaveToDB(), and FactorySelector::selectMovementGenerator().
|
inline |
Definition at line 643 of file Creature.h.
References m_formation.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), npc_commandscript::HandleNpcAddFormationCommand(), and WaypointMovementGenerator< Creature >::StartMove().
|
inline |
Definition at line 629 of file Creature.h.
References m_homePosition.
|
inline |
Definition at line 628 of file Creature.h.
References m_homePosition.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), HomeMovementGenerator< Creature >::_setTargetLocation(), LuaCreature::GetHomePosition(), and npc_living_mojo::npc_living_mojoAI::MoveMojos().
|
virtual |
Reimplemented from WorldObject.
Definition at line 2299 of file Creature.cpp.
References CONFIG_WORLD_BOSS_LEVEL_DIFF, Unit::getLevel(), Unit::getLevelForTarget(), isWorldBoss(), sWorld, Object::ToUnit(), and WorldObject::WorldObject().
Referenced by GetAggroRange(), and GetAttackDistance().
|
inline |
Definition at line 555 of file Creature.h.
References m_LootMode.
Referenced by LuaCreature::GetLootMode(), and Unit::Kill().
| Player * Creature::GetLootRecipient | ( | ) | const |
Definition at line 879 of file Creature.cpp.
References ObjectAccessor::FindPlayer(), and m_lootRecipient.
Referenced by LuaCreature::GetLootRecipient(), debug_commandscript::HandleDebugGetLootRecipientCommand(), Player::isAllowedToLoot(), Unit::Kill(), and Player::SendLoot().
| Group * Creature::GetLootRecipientGroup | ( | ) | const |
Definition at line 886 of file Creature.cpp.
References m_lootRecipientGroup, and sGroupMgr.
Referenced by LuaCreature::GetLootRecipientGroup(), Player::isAllowedToLoot(), and isTappedBy().
|
inlinevirtual |
Reimplemented from Unit.
Definition at line 485 of file Creature.h.
References m_meleeDamageSchoolMask, and OVERRIDE.
Referenced by ThreatContainer::selectNextVictim().
|
virtual |
Reimplemented from WorldObject.
Definition at line 2408 of file Creature.cpp.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), CreatureLocale::Name, and sObjectMgr.
Referenced by Pet::CreateBaseAtCreature().
|
inline |
Definition at line 655 of file Creature.h.
References m_originalEntry.
Referenced by FrostwingGauntletRespawner::operator()().
|
inline |
Definition at line 512 of file Creature.h.
References GetOriginalEquipmentId(), and m_originalEquipmentId.
Referenced by GetOriginalEquipmentId(), and npc_commandscript::HandleNpcInfoCommand().
Reimplemented in Pet.
Definition at line 2434 of file Creature.cpp.
References ACT_ENABLED, Unit::m_charmInfo, and MAX_SPELL_CHARM.
|
inlinevirtual |
|
inline |
Definition at line 461 of file Creature.h.
References m_reactState.
Referenced by Player::CharmSpellInitialize(), LuaCreature::GetReactState(), IsWeakenedLurkingWorgen(), Pet::SavePetToDB(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 602 of file Creature.h.
References GetRespawnDelay(), and m_respawnDelay.
Referenced by GetRespawnDelay(), LuaCreature::GetRespawnDelay(), npc_commandscript::HandleNpcInfoCommand(), FrostwingGauntletRespawner::operator()(), and ValithriaDespawner::operator()().
| void Creature::GetRespawnPosition | ( | float & | x, |
| float & | y, | ||
| float & | z, | ||
| float * | ori = NULL, | ||
| float * | dist = NULL ) const |
Definition at line 2248 of file Creature.cpp.
References GetDBTableGUIDLow(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_DBTableGuid, and sObjectMgr.
Referenced by Map::AddToActive(), Map::CreatureRespawnRelocation(), RandomMovementGenerator< T >::GetResetPos(), RemoveCorpse(), and Map::RemoveFromActive().
|
inline |
Definition at line 605 of file Creature.h.
References m_respawnradius.
Referenced by RandomMovementGenerator< T >::DoInitialize(), and LuaCreature::GetRespawnRadius().
|
inline |
Definition at line 596 of file Creature.h.
References m_respawnTime.
| time_t Creature::GetRespawnTimeEx | ( | ) | const |
Definition at line 2239 of file Creature.cpp.
References m_respawnTime.
Referenced by npc_commandscript::HandleNpcInfoCommand(), and Unit::Kill().
| uint32 Creature::GetScriptId | ( | ) | const |
Definition at line 2322 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by ScriptMgr::GetCreatureAI(), ScriptMgr::GetDialogStatus(), LuaCreature::GetScriptId(), GetScriptName(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnCreatureUpdate(), ScriptMgr::OnDummyEffect(), ScriptMgr::OnGossipHello(), ScriptMgr::OnGossipSelect(), ScriptMgr::OnGossipSelectCode(), ScriptMgr::OnInstall(), ScriptMgr::OnInstallAccessory(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestComplete(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestSelect(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnReset(), and ScriptMgr::OnUninstall().
| std::string Creature::GetScriptName | ( | ) | const |
Definition at line 2317 of file Creature.cpp.
References GetScriptId(), and sObjectMgr.
Referenced by LuaCreature::GetScriptName(), npc_commandscript::HandleNpcInfoCommand(), and npc_commandscript::HandleNpcSetDataCommand().
| float Creature::GetSpellDamageMod | ( | int32 | Rank | ) | const |
Definition at line 1150 of file Creature.cpp.
References CREATURE_ELITE_ELITE, CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, RATE_CREATURE_ELITE_ELITE_SPELLDAMAGE, RATE_CREATURE_ELITE_RARE_SPELLDAMAGE, RATE_CREATURE_ELITE_RAREELITE_SPELLDAMAGE, RATE_CREATURE_ELITE_WORLDBOSS_SPELLDAMAGE, RATE_CREATURE_NORMAL_SPELLDAMAGE, and sWorld.
Referenced by Unit::SpellDamageBonusDone().
| TrainerSpellData const * Creature::GetTrainerSpells | ( | ) | const |
Definition at line 2402 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by WorldSession::HandleTrainerBuySpellOpcode(), and WorldSession::SendTrainerList().
|
inline |
Definition at line 634 of file Creature.h.
References m_transportHomePosition.
|
inline |
Definition at line 633 of file Creature.h.
References m_transportHomePosition.
Referenced by LuaCreature::GetTransportHomePosition(), and Transport::UpdatePassengerPositions().
| uint32 Creature::GetVendorItemCurrentCount | ( | VendorItem const * | vItem | ) |
Definition at line 2332 of file Creature.cpp.
References VendorItemCount::count, VendorItem::incrtime, VendorItem::item, VendorItemCount::lastIncrementTime, m_vendorItemCounts, VendorItem::maxcount, and sObjectMgr.
Referenced by Player::BuyItemFromVendorSlot(), and WorldSession::SendListInventory().
| VendorItemData const * Creature::GetVendorItems | ( | ) | const |
Definition at line 2327 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), and WorldSession::SendListInventory().
|
inline |
Definition at line 636 of file Creature.h.
References m_path_id.
Referenced by LuaCreature::GetWaypointPath(), npc_commandscript::HandleNpcAddMoveCommand(), wp_commandscript::HandleWpAddCommand(), wp_commandscript::HandleWpShowCommand(), and WaypointMovementGenerator< Creature >::LoadPath().
| bool Creature::HasCategoryCooldown | ( | uint32 | spell_id | ) | const |
Definition at line 2175 of file Creature.cpp.
References SpellInfo::CategoryRecoveryTime, SpellInfo::GetCategory(), IN_MILLISECONDS, m_CreatureCategoryCooldowns, and sSpellMgr.
Referenced by LuaCreature::HasCategoryCooldown(), and HasSpellCooldown().
|
virtual |
Reimplemented from Object.
Definition at line 1315 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by LuaCreature::HasInvolvedQuest().
|
inline |
Definition at line 556 of file Creature.h.
References m_LootMode.
Referenced by LuaCreature::HasLootMode().
|
inline |
Definition at line 549 of file Creature.h.
References m_lootRecipient, and m_lootRecipientGroup.
Referenced by Unit::BuildValuesUpdate(), Unit::DealDamage(), LuaPlayer::GiveXP(), Player::GiveXP(), debug_commandscript::HandleDebugGetLootRecipientCommand(), LuaCreature::HasLootRecipient(), and setDeathState().
|
virtual |
Reimplemented from Object.
Definition at line 1304 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by LuaCreature::HasQuest().
|
inline |
Definition at line 462 of file Creature.h.
References m_reactState.
Referenced by CanAssistTo(), Unit::CombatStart(), CreatureUnitRelocationWorker(), CreatureAI::DoZoneInCombat(), LuaCreature::HasReactState(), SelectVictim(), Unit::TauntApply(), and Unit::TauntFadeOut().
|
inline |
Definition at line 585 of file Creature.h.
References m_AlreadySearchedAssistance.
Referenced by LuaCreature::HasSearchedAssistance(), and setDeathState().
|
virtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 2230 of file Creature.cpp.
References CREATURE_MAX_SPELLS, and m_spells.
Referenced by LuaCreature::HasSpell().
| bool Creature::HasSpellCooldown | ( | uint32 | spell_id | ) | const |
Definition at line 2192 of file Creature.cpp.
References HasCategoryCooldown(), and m_CreatureSpellCooldowns.
Referenced by WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), and LuaCreature::HasSpellCooldown().
|
protected |
change the entry of creature until respawn
Definition at line 257 of file Creature.cpp.
References ObjectMgr::ChooseDisplayId(), CREATURE_MAX_SPELLS, CreatureTemplate::DifficultyEntry, DifficultyEntry::DiffID, CreatureTemplate::DiffToDiffIndex(), DifficultyEntry::DownscaleID, CreatureData::equipmentId, CreatureModelInfo::gender, GetCreatureTemplate(), CreatureTemplate::GetFirstValidModelId(), WorldObject::GetMap(), CreatureTemplate::HoverHeight, IDLE_MOTION_TYPE, LoadEquipment(), loot, m_creatureInfo, m_defaultMovementType, m_originalEquipmentId, m_respawnradius, m_spells, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, MOVE_WALK, CreatureTemplate::MovementType, CreatureTemplate::Name, RANDOM_MOTION_TYPE, CreatureTemplate::scale, sDifficultyStore, Unit::SetClass(), SetDisplayId(), Object::SetEntry(), Object::SetFloatValue(), Unit::SetGender(), WorldObject::SetName(), Unit::SetNativeDisplayId(), SetObjectScale(), Unit::SetRace(), Unit::SetSpeed(), SF_LOG_ERROR, sObjectMgr, CreatureTemplate::speed_run, CreatureTemplate::speed_walk, CreatureTemplate::spells, CreatureTemplate::unit_class, UNIT_FIELD_HOVER_HEIGHT, UNIT_FIELD_MOD_CASTING_SPEED, and UNIT_FIELD_MOD_SPELL_HASTE.
Referenced by Pet::Create(), and UpdateEntry().
| void Creature::InitializeReactState | ( | ) |
Definition at line 827 of file Creature.cpp.
References CREATURE_TYPE_CRITTER, Unit::GetCreatureType(), Unit::IsSpiritService(), Unit::IsTotem(), IsTrigger(), REACT_AGGRESSIVE, REACT_PASSIVE, and SetReactState().
Referenced by Respawn(), and UpdateEntry().
| bool Creature::isCanInteractWithBattleMaster | ( | Player * | player, |
| bool | msg ) const |
Definition at line 837 of file Creature.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_BFG, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_WS, PlayerMenu::ClearMenus(), Player::GetBGAccessByLevel(), Object::GetEntry(), Object::GetGUID(), Unit::IsBattleMaster(), Player::PlayerTalkClass, sBattlegroundMgr, and PlayerMenu::SendGossipMenu().
| bool Creature::isCanTrainingAndResetTalentsOf | ( | Player * | player | ) | const |
Definition at line 872 of file Creature.cpp.
References Unit::getClass(), GetCreatureTemplate(), Unit::getLevel(), CreatureTemplate::trainer_class, CreatureTemplate::trainer_type, and TRAINER_TYPE_CLASS.
|
inline |
Definition at line 453 of file Creature.h.
References CREATURE_FLAG_EXTRA_CIVILIAN, CreatureTemplate::flags_extra, and GetCreatureTemplate().
Referenced by CanAssistTo(), CanStartAttack(), WorldSession::HandleGossipHelloOpcode(), LuaCreature::IsCivilian(), AggressorAI::Permissible(), and ReactorAI::Permissible().
|
inline |
Definition at line 650 of file Creature.h.
References m_PlayerDamageReq.
Referenced by Player::isAllowedToLoot(), LuaCreature::IsDamageEnoughForLootingAndReward(), and Unit::Kill().
| bool Creature::IsDungeonBoss | ( | ) | const |
Definition at line 2456 of file Creature.cpp.
References CREATURE_FLAG_EXTRA_DUNGEON_BOSS, CreatureTemplate::flags_extra, Object::GetEntry(), and sObjectMgr.
Referenced by LuaCreature::IsDungeonBoss().
| bool Creature::isElite | ( | ) | const |
Definition at line 1638 of file Creature.cpp.
References CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, GetCreatureTemplate(), Unit::IsPet(), and CreatureTemplate::rank.
Referenced by Spell::EffectSkinning(), and LuaCreature::IsElite().
|
inline |
Definition at line 455 of file Creature.h.
References CREATURE_FLAG_EXTRA_GUARD, CreatureTemplate::flags_extra, and GetCreatureTemplate().
Referenced by _IsTargetAcceptable(), WorldSession::HandleGossipHelloOpcode(), LuaCreature::IsGuard(), GuardAI::Permissible(), and FactorySelector::selectAI().
|
virtual |
Reimplemented from Unit.
Definition at line 1599 of file Creature.cpp.
References SpellInfo::Effects, GetCreatureTemplate(), SpellEffectInfo::IsEffect(), Unit::IsImmunedToSpell(), IsImmunedToSpellEffect(), MAX_SPELL_EFFECTS, and SpellInfo::Mechanic.
Reimplemented from Unit.
Reimplemented in Totem.
Definition at line 1627 of file Creature.cpp.
References CREATURE_TYPE_MECHANICAL, SpellEffectInfo::Effect, SpellInfo::Effects, GetCreatureTemplate(), Unit::IsImmunedToSpellEffect(), SpellEffectInfo::Mechanic, and SPELL_EFFECT_HEAL.
Referenced by IsImmunedToSpell(), and Totem::IsImmunedToSpellEffect().
|
inline |
Definition at line 478 of file Creature.h.
References Unit::HasUnitState(), and UNIT_STATE_EVADE.
Referenced by Unit::Attack(), Unit::DealDamageMods(), Unit::DealMeleeDamage(), Unit::DealSpellDamage(), LuaCreature::IsInEvadeMode(), Unit::RollMeleeOutcomeAgainst(), Unit::SpellHitResult(), Update(), npc_doom_blossom::npc_doom_blossomAI::UpdateAI(), npc_parasitic_shadowfiend::npc_parasitic_shadowfiendAI::UpdateAI(), npc_shadowy_construct::npc_shadowy_constructAI::UpdateAI(), SimpleCharmedAI::UpdateAI(), and Player::UpdateCharmedAI().
|
protectedvirtual |
Reimplemented from WorldObject.
Definition at line 1358 of file Creature.cpp.
References Unit::IsAlive(), WorldObject::IsInvisibleDueToDespawn(), and m_corpseRemoveTime.
|
inline |
Definition at line 452 of file Creature.h.
References GetCreatureTemplate(), and CreatureTemplate::RacialLeader.
Referenced by LuaCreature::IsRacialLeader(), and Player::RewardHonor().
|
inline |
Definition at line 618 of file Creature.h.
References m_regenHealth.
Referenced by LuaCreature::IsRegeneratingHealth(), and RegenerateHealth().
|
inline |
Definition at line 649 of file Creature.h.
References DisableReputationGain.
Referenced by LuaCreature::IsReputationGainDisabled(), and Player::RewardReputation().
| bool Creature::isTappedBy | ( | Player const * | player | ) | const |
Definition at line 922 of file Creature.cpp.
References Player::GetGroup(), Object::GetGUID(), GetLootRecipientGroup(), and m_lootRecipient.
Referenced by Unit::BuildValuesUpdate(), and LuaCreature::IsTappedBy().
|
inline |
Definition at line 454 of file Creature.h.
References CREATURE_FLAG_EXTRA_TRIGGER, CreatureTemplate::flags_extra, and GetCreatureTemplate().
Referenced by InitializeReactState(), TempSummon::InitStats(), LuaCreature::IsTrigger(), FactorySelector::selectAI(), UpdateEntry(), and Player::UpdateTriggerVisibility().
| bool Creature::isWorldBoss | ( | ) | const |
Definition at line 1647 of file Creature.cpp.
References CREATURE_TYPEFLAGS_BOSS, GetCreatureTemplate(), Unit::IsPet(), and CreatureTemplate::type_flags.
Referenced by Unit::DealMeleeDamage(), getLevelForTarget(), LuaCreature::IsWorldBoss(), SelectVictim(), setDeathState(), and hyjalAI::SummonCreature().
Definition at line 1202 of file Creature.cpp.
References _GetHealthMod(), ALIVE, CanFly(), Create(), CreatureData::curhealth, CreatureData::curmana, DEAD, Map::GetCreature(), Map::GetCreatureRespawnTime(), GetCreatureTemplate(), Map::GetHeight(), Map::GetInstanceId(), WorldObject::GetMap(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetPhaseMask(), Object::HasFlag(), HIGHGUID_UNIT, CreatureData::id, m_creatureData, m_DBTableGuid, Unit::m_deathState, m_defaultMovementType, m_regenHealth, m_respawnDelay, m_respawnradius, m_respawnTime, MAKE_NEW_GUID(), MapObject::Map, CreatureData::movementType, CreatureData::orientation, CreatureData::posX, CreatureData::posY, CreatureData::posZ, POWER_MANA, Position::Relocate(), Unit::SetHealth(), SetHomePosition(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), SF_LOG_ERROR, sObjectMgr, CreatureData::spawndist, CreatureData::spawntimesecs, UNIT_FIELD_FLAGS, and UNIT_FLAG_DISABLE_POWERS.
Referenced by ObjectMgr::AddCreData(), Transport::CreateNPCPassenger(), FindSceneActor(), GameEventMgr::GameEventSpawn(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), LoadFromDB(), ObjectMgr::MoveCreData(), LuaGlobalFunctions::PerformIngameSpawn(), and PoolGroup< T >::Spawn1Object().
| bool Creature::LoadCreaturesAddon | ( | bool | reload = false | ) |
Suspected correlation between UNIT_FIELD_ANIM_TIER, offset 3, value 0x2: If no inhabittype_fly (if no MovementFlag_DisableGravity or MovementFlag_CanFly flag found in sniffs) Check using InhabitType as movement flags are assigned dynamically basing on whether the creature is in air or not Set MovementFlag_Hover. Otherwise do nothing.
Definition at line 2019 of file Creature.cpp.
References Unit::AddAura(), Unit::AddUnitMovementFlag(), CreatureAddon::auras, CreatureAddon::bytes1, CreatureAddon::bytes2, CreatureAddon::emote, Object::GetByteValue(), GetCreatureAddon(), GetCreatureTemplate(), GetDBTableGUIDLow(), Object::GetEntry(), Object::GetGUIDLow(), Unit::HasAura(), INHABIT_AIR, m_path_id, Unit::Mount(), CreatureAddon::mount, MOVEMENTFLAG_HOVER, CreatureAddon::path_id, Object::SetByteValue(), Object::SetUInt32Value(), SF_LOG_DEBUG, SF_LOG_ERROR, sSpellMgr, UNIT_BYTE1_FLAG_HOVER, UNIT_FIELD_ANIM_TIER, UNIT_FIELD_NPC_EMOTESTATE, and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by Create(), HomeMovementGenerator< Creature >::DoFinalize(), and setDeathState().
| void Creature::LoadEquipment | ( | int8 | id = 1, |
| bool | force = false ) |
Definition at line 1282 of file Creature.cpp.
References Object::GetEntry(), EquipmentInfo::ItemEntry, m_equipmentId, MAX_EQUIPMENT_ITEMS, Object::SetUInt32Value(), sObjectMgr, and UNIT_FIELD_VIRTUAL_ITEM_ID.
Referenced by GameEventMgr::ChangeEquipOrModel(), and InitEntry().
Definition at line 537 of file Creature.h.
References LoadCreatureFromDB(), and MapObject::Map.
|
inline |
Definition at line 637 of file Creature.h.
References m_path_id.
Referenced by npc_commandscript::HandleNpcSetMoveTypeCommand(), wp_commandscript::HandleWpLoadCommand(), and wp_commandscript::HandleWpUnLoadCommand().
| void Creature::LowerPlayerDamageReq | ( | uint32 | unDamage | ) |
Definition at line 1125 of file Creature.cpp.
References m_PlayerDamageReq.
Referenced by Unit::DealDamage().
| void Creature::Motion_Initialize | ( | ) |
Definition at line 725 of file Creature.cpp.
References Unit::i_motionMaster, and m_formation.
Referenced by AIM_Initialize(), and setDeathState().
|
virtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 2198 of file Creature.cpp.
References _AddCreatureSpellCooldown(), ASSERT, CREATURE_MAX_SPELLS, Unit::GetAI(), GetCreatureSpellCooldownDelay(), SpellInfo::GetSchoolMask(), IN_MILLISECONDS, SpellInfo::IsCooldownStartedOnEvent(), m_spells, SpellInfo::PreventionType, SPELL_PREVENTION_TYPE_SILENCE, and sSpellMgr.
Definition at line 1655 of file Creature.cpp.
References CREATURE_MAX_SPELLS, SpellEffectInfo::Effect, SpellInfo::Effects, WorldObject::GetDistance(), SpellInfo::GetMaxRange(), SpellInfo::GetMinRange(), Object::HasFlag(), m_spells, MAX_SPELL_EFFECTS, SpellInfo::PreventionType, SF_LOG_ERROR, SPELL_EFFECT_ENVIRONMENTAL_DAMAGE, SPELL_EFFECT_HEALTH_LEECH, SPELL_EFFECT_INSTAKILL, SPELL_EFFECT_SCHOOL_DAMAGE, SPELL_PREVENTION_TYPE_PACIFY, SPELL_PREVENTION_TYPE_SILENCE, sSpellMgr, Unit::Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED, and UNIT_FLAG_SILENCED.
Definition at line 1704 of file Creature.cpp.
References CREATURE_MAX_SPELLS, SpellEffectInfo::Effect, SpellInfo::Effects, WorldObject::GetDistance(), SpellInfo::GetMaxRange(), SpellInfo::GetMinRange(), Object::HasFlag(), m_spells, MAX_SPELL_EFFECTS, SpellInfo::PreventionType, SF_LOG_ERROR, SPELL_EFFECT_HEAL, SPELL_PREVENTION_TYPE_PACIFY, SPELL_PREVENTION_TYPE_SILENCE, sSpellMgr, Unit::Unit(), UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED, and UNIT_FLAG_SILENCED.
|
protected |
Definition at line 658 of file Pet.cpp.
References AddPct(), CREATURE_REGEN_INTERVAL, Unit::GetAuraEffectsByType(), Unit::GetMaxPower(), Unit::GetPower(), Unit::GetTotalAuraModifierByMiscValue(), IN_MILLISECONDS, Unit::IsHunterPet(), Unit::ModifyPower(), PET_FOCUS_REGEN_INTERVAL, POWER_ENERGY, POWER_FOCUS, RATE_POWER_FOCUS, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, and sWorld.
Referenced by Update(), and Pet::Update().
|
protected |
Definition at line 630 of file Creature.cpp.
References AddPct(), CREATURE_REGEN_INTERVAL, Unit::GetAuraEffectsByType(), Unit::GetCharmerOrOwnerGUID(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetPower(), Unit::GetStat(), Unit::GetTotalAuraModifier(), IN_MILLISECONDS, isRegeneratingHealth(), Unit::ModifyHealth(), POWER_MANA, RATE_HEALTH, SPELL_AURA_MOD_HEALTH_REGEN_PERCENT, SPELL_AURA_MOD_REGEN, STAT_SPIRIT, and sWorld.
Referenced by Update().
|
protected |
Definition at line 598 of file Creature.cpp.
References AddPct(), CREATURE_REGEN_INTERVAL, Unit::GetAuraEffectsByType(), Unit::GetCharmerOrOwnerGUID(), Unit::GetMaxPower(), Unit::GetPower(), Unit::GetStat(), Unit::GetTotalAuraModifierByMiscValue(), IN_MILLISECONDS, Unit::IsInCombat(), Unit::ModifyPower(), POWER_MANA, RATE_POWER_MANA, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, STAT_SPIRIT, and sWorld.
Referenced by Update().
| void Creature::ReleaseFocus | ( | Spell const * | focusSpell | ) |
Definition at line 2647 of file Creature.cpp.
References _focusSpell, SpellInfo::AttributesEx5, Unit::ClearUnitState(), Spell::GetSpellInfo(), Unit::GetVictim(), Object::SetUInt64Value(), SPELL_ATTR5_DONT_TURN_DURING_CAST, Unit::Unit(), UNIT_FIELD_TARGET, and UNIT_STATE_ROTATING.
| void Creature::RemoveCorpse | ( | bool | setSpawnTime = true | ) |
Definition at line 230 of file Creature.cpp.
References AI(), CORPSE, CreatureAI::CorpseRemoved(), Map::CreatureRelocation(), DEAD, Unit::getDeathState(), WorldObject::GetMap(), GetRespawnPosition(), Unit::IsAIEnabled, loot, m_corpseRemoveTime, m_respawnDelay, m_respawnTime, Unit::RemoveAllAuras(), setDeathState(), SetHomePosition(), and Unit::UpdateObjectVisibility().
Referenced by instance_uldaman::instance_uldaman_InstanceMapScript::DeActivateMinions(), OPvPCapturePoint::DelCreature(), DisappearAndDie(), ForcedDespawn(), AuraEffect::HandleAuraControlVehicle(), pet_commandscript::HandlePetCreateCommand(), boss_warchief_kargath_bladefist::boss_warchief_kargath_bladefistAI::removeAdds(), LuaCreature::RemoveCorpse(), npc_illidari_council::npc_illidari_councilAI::Reset(), Respawn(), BattlePetWildZonePool::SpawnReplacement(), and Update().
|
virtual |
Reimplemented from WorldObject.
Reimplemented in Minion, Pet, Puppet, and TempSummon.
Definition at line 193 of file Creature.cpp.
References Object::IsInWorld(), m_formation, WorldObject::m_zoneScript, Unit::RemoveFromWorld(), sFormationMgr, and sObjectAccessor.
Referenced by TempSummon::RemoveFromWorld(), BattlePetWildZonePool::RemoveReplacement(), and npc_thassarian::npc_thassarianAI::UpdateAI().
|
inline |
Definition at line 559 of file Creature.h.
References m_LootMode.
Referenced by boss_freya::boss_freyaAI::EnterCombat(), LuaCreature::RemoveLootMode(), and instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter().
|
inline |
Definition at line 560 of file Creature.h.
References LOOT_MODE_DEFAULT, and m_LootMode.
Referenced by Creature(), and LuaCreature::ResetLootMode().
|
inline |
Definition at line 652 of file Creature.h.
References Unit::GetHealth(), and m_PlayerDamageReq.
Referenced by SelectLevel(), and setDeathState().
| void Creature::Respawn | ( | bool | force = false | ) |
Definition at line 1513 of file Creature.cpp.
References CORPSE, Creature(), DEAD, WorldObject::DestroyForNearbyPlayers(), CreatureModelInfo::gender, GetCreatureTemplate(), GetDBTableGUIDLow(), Unit::getDeathState(), Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetName(), Unit::GetNativeDisplayId(), MotionMaster::InitDefault(), InitializeReactState(), Unit::IsAIEnabled, Unit::IsAlive(), JUST_DIED, JUST_RESPAWNED, lootForBody, lootForPickPocketed, m_DBTableGuid, m_originalEntry, m_respawnTime, RemoveCorpse(), Map::RemoveCreatureRespawnTime(), sBattlePetSpawnMgr, SelectLevel(), setDeathState(), SetDisplayId(), Unit::SetGender(), Unit::SetNativeDisplayId(), SF_LOG_DEBUG, sObjectMgr, sPoolMgr, TriggerJustRespawned, UI64FMTD, UpdateEntry(), and Unit::UpdateObjectVisibility().
Referenced by BattlegroundAV::AddAVCreature(), boss_four_horsemen::boss_four_horsemenAI::DoEncounteraction(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), misc_commandscript::HandleRespawnCommand(), Skyfire::RespawnDo::operator()(), TrashRespawnWorker::operator()(), ValithriaDespawner::operator()(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), boss_sartharion::boss_sartharionAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), ResetCryForTheMoonActor(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ResetPrisoner(), LuaCreature::Respawn(), instance_uldaman::instance_uldaman_InstanceMapScript::RespawnMinions(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Battlefield::ShowNpc(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), boss_brutallus::boss_brutallusAI::StartIntro(), Update(), boss_freya::boss_freyaAI::UpdateAI(), and InstanceScript::UpdateMinionState().
|
virtual |
Reimplemented from WorldObject.
Definition at line 1971 of file Creature.cpp.
References WorldObject::GetMap(), Unit::IsSummon(), m_creatureData, m_DBTableGuid, m_respawnTime, and Map::SaveCreatureRespawnTime().
Referenced by setDeathState(), and Update().
| void Creature::SaveToDB | ( | ) |
Definition at line 934 of file Creature.cpp.
References GameObject::GetGOInfo(), WorldLocation::GetMapId(), WorldObject::GetTransport(), m_DBTableGuid, GameObjectTemplate::mapID, GameObjectTemplate::moTransport, SaveToDB(), SF_LOG_ERROR, sObjectMgr, and CreatureData::spawnMask.
Referenced by npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), LuaGlobalFunctions::PerformIngameSpawn(), SaveToDB(), and LuaCreature::SaveToDB().
Reimplemented in Pet, and TempSummon.
Definition at line 949 of file Creature.cpp.
References CreatureData::curhealth, CreatureData::curmana, CreatureData::currentwaypoint, CreatureData::displayid, CreatureData::dynamicflags, CreatureTemplate::dynamicflags, CreatureData::equipmentId, GetCreatureTemplate(), GetCurrentEquipmentId(), GetDefaultMovementType(), Object::GetEntry(), Object::GetGUIDLow(), Unit::GetHealth(), Unit::GetNativeDisplayId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPositionZMinusOffset(), Unit::GetPower(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), Object::GetUInt32Value(), CreatureData::id, IDLE_MOTION_TYPE, m_DBTableGuid, m_respawnDelay, m_respawnradius, CreatureData::mapid, CreatureTemplate::Modelid1, CreatureTemplate::Modelid2, CreatureTemplate::Modelid3, CreatureTemplate::Modelid4, CreatureData::movementType, CreatureData::npcflag, CreatureTemplate::npcflag, OBJECT_FIELD_DYNAMIC_FLAGS, CreatureData::orientation, CreatureData::posX, CreatureData::posY, CreatureData::posZ, POWER_MANA, RANDOM_MOTION_TYPE, PreparedStatement::setFloat(), PreparedStatement::setInt32(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), sObjectMgr, CreatureData::spawndist, CreatureData::spawnMask, CreatureData::spawntimesecs, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, CreatureData::unit_flags, CreatureTemplate::unit_flags, WORLD_DEL_CREATURE, WORLD_INS_CREATURE, and WorldDatabase.
| void Creature::SearchFormation | ( | ) |
Definition at line 216 of file Creature.cpp.
References GetDBTableGUIDLow(), Unit::IsSummon(), and sFormationMgr.
Referenced by AddToWorld(), and npc_commandscript::HandleNpcAddFormationCommand().
| void Creature::SelectLevel | ( | const CreatureTemplate * | cinfo | ) |
Definition at line 1047 of file Creature.cpp.
References _GetHealthMod(), CreatureTemplate::attackpower, BASE_ATTACK, BASE_VALUE, CLASS_MONK, CLASS_ROGUE, CLASS_WARRIOR, CreatureBaseStats::GenerateHealth(), CreatureBaseStats::GenerateMana(), Unit::getClass(), Unit::IsPet(), MAXDAMAGE, CreatureTemplate::maxdmg, CreatureTemplate::maxlevel, CreatureTemplate::maxrangedmg, MINDAMAGE, CreatureTemplate::mindmg, CreatureTemplate::minlevel, CreatureTemplate::minrangedmg, POWER_CHI, POWER_ENERGY, POWER_MANA, POWER_RAGE, CreatureTemplate::rank, ResetPlayerDamageReq(), Unit::SetBaseWeaponDamage(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Object::SetFloatValue(), Unit::SetHealth(), Unit::SetLevel(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetModifierValue(), Unit::SetPower(), Unit::setPowerType(), sObjectMgr, CreatureTemplate::unit_class, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_RANGED_DAMAGE, UNIT_MOD_ATTACK_POWER, UNIT_MOD_HEALTH, and UNIT_MOD_MANA.
Referenced by Respawn(), and UpdateEntry().
| Unit * Creature::SelectNearestHostileUnitInAggroRange | ( | bool | useLOS = false | ) | const |
Definition at line 2511 of file Creature.cpp.
References MAX_AGGRO_RADIUS, Unit::Unit(), and WorldObject::VisitNearbyGridObject().
Referenced by LuaCreature::GetNearestHostileTargetInAggroRange().
| Player * Creature::SelectNearestPlayer | ( | float | distance = 0 | ) | const |
Definition at line 1806 of file Creature.cpp.
References WorldObject::VisitNearbyObject().
| Unit * Creature::SelectNearestTarget | ( | float | dist = 0, |
| bool | playerOnly = false ) const |
Definition at line 1752 of file Creature.cpp.
References Skyfire::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), MAX_VISIBILITY_DISTANCE, Cell::SetNoCreate(), Unit::Unit(), and Cell::Visit().
Referenced by CreatureAI::DoZoneInCombat(), LuaCreature::GetNearestTarget(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::SetData(), instance_magtheridons_lair::instance_magtheridons_lair_InstanceMapScript::Update(), npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI(), and Player::UpdateCharmedAI().
| Unit * Creature::SelectNearestTargetInAttackDistance | ( | float | dist = 0 | ) | const |
Definition at line 1778 of file Creature.cpp.
References ATTACK_DISTANCE, Skyfire::ComputeCellCoord(), Object::GetEntry(), Object::GetGUIDLow(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), MAX_VISIBILITY_DISTANCE, Cell::SetNoCreate(), SF_LOG_ERROR, Unit::Unit(), and Cell::Visit().
Referenced by LuaCreature::GetNearestTargetInAttackDistance(), SelectVictim(), and SimpleCharmedAI::UpdateAI().
| Unit * Creature::SelectVictim | ( | ) |
Definition at line 4547 of file Unit.cpp.
References _IsTargetAcceptable(), AI(), ATTACK_DISTANCE, CanCreatureAttack(), Unit::CanHaveThreatList(), WorldObject::CanSeeOrDetect(), CreatureAI::EnterEvadeMode(), Unit::getAttackerForHelper(), Unit::GetAuraEffectsByType(), WorldObject::GetInstanceId(), Unit::GetLastDamagedTime(), Unit::GetOwner(), Unit::GetVehicle(), Unit::GetVictim(), HasReactState(), Unit::IsAlive(), Unit::isInAccessiblePlaceFor(), Unit::IsSummon(), Unit::IsValidAttackTarget(), isWorldBoss(), Unit::m_attackers, m_CombatDistance, Unit::m_ThreatManager, MAX_AGGRO_RESET_TIME, REACT_AGGRESSIVE, REACT_PASSIVE, SelectNearestTargetInAttackDistance(), Unit::SetInFront(), SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_TAUNT, Object::ToCreature(), Unit::ToTempSummon(), TYPEID_PLAYER, Unit::Unit(), and UNIT_MASK_CONTROLABLE_GUARDIAN.
Referenced by LuaCreature::SelectVictim(), and Unit::TauntFadeOut().
| void Creature::SendAIReaction | ( | AiReaction | reactionType | ) |
Definition at line 1817 of file Creature.cpp.
References Object::GetGUID(), SF_LOG_DEBUG, SMSG_AI_REACTION, WorldObject::WorldObject(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Unit::Attack().
| void Creature::SendZoneUnderAttackMessage | ( | Player * | attacker | ) |
Send a message to LocalDefense channel for players opposition team in the zone.
Definition at line 2101 of file Creature.cpp.
References ALLIANCE, WorldObject::GetAreaId(), Player::GetTeam(), HORDE, SMSG_ZONE_UNDER_ATTACK, and sWorld.
|
inline |
Definition at line 450 of file Creature.h.
References m_corpseDelay.
Referenced by FrostwingGauntletRespawner::operator()(), and ValithriaDespawner::operator()().
|
inline |
Definition at line 514 of file Creature.h.
References m_equipmentId.
|
virtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 1453 of file Creature.cpp.
References ALIVE, CanFly(), Unit::ClearUnitState(), CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY, CORPSE, CreatureTemplate::dmgschool, GetCreatureTemplate(), hasLootRecipient(), HasSearchedAssistance(), Unit::i_motionMaster, Unit::IsFlying(), Unit::IsPet(), isWorldBoss(), JUST_DIED, JUST_RESPAWNED, LoadCreaturesAddon(), LootTemplates_Skinning, m_corpseDelay, m_corpseRemoveTime, m_formation, m_respawnDelay, m_respawnTime, Motion_Initialize(), MOVE_RUN, CreatureTemplate::npcflag, ResetPlayerDamageReq(), SaveRespawnTime(), WorldObject::setActive(), Unit::setDeathState(), Object::SetFlag(), Unit::SetFullHealth(), SetLootRecipient(), SetMeleeDamageSchool(), SetNoSearchAssistance(), SetTarget(), Object::SetUInt32Value(), sWorld, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FLAG_SKINNABLE, UNIT_NPC_FLAG_NONE, UNIT_STATE_ALL_STATE, UpdateMovementFlags(), and Unit::UpdateSpeed().
Referenced by Unit::_UnapplyAura(), BattlegroundAV::AddAVCreature(), instance_uldaman::instance_uldaman_InstanceMapScript::DeActivateMinions(), DisappearAndDie(), boss_brutallus::boss_brutallusAI::DoIntro(), ForcedDespawn(), npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), pet_commandscript::HandlePetCreateCommand(), boss_twinemperorsAI::JustDied(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), RemoveCorpse(), Respawn(), LuaCreature::SetDeathState(), and Pet::setDeathState().
|
inline |
Definition at line 590 of file Creature.h.
References m_defaultMovementType.
Referenced by npc_commandscript::HandleNpcAddMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnDistCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), and LuaCreature::SetDefaultMovementType().
|
inline |
Definition at line 648 of file Creature.h.
References DisableReputationGain.
Referenced by LuaCreature::SetDisableReputationGain(), and hyjalAI::SummonCreature().
|
virtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 2615 of file Creature.cpp.
References Object::GetObjectScale(), Unit::SetDisplayId(), Object::SetFloatValue(), sObjectMgr, UNIT_FIELD_BOUNDING_RADIUS, and UNIT_FIELD_COMBAT_REACH.
Referenced by GameEventMgr::ChangeEquipOrModel(), Create(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), npc_commandscript::HandleNpcSetModelCommand(), wp_commandscript::HandleWpShowCommand(), InitEntry(), Totem::InitStats(), Guardian::InitStatsForLevel(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), npc_eye_of_acherus::npc_eye_of_acherusAI::npc_eye_of_acherusAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_pulsing_pumpkin::npc_pulsing_pumpkinAI::Reset(), Respawn(), Pet::SetDisplayId(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::SummonBeams(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), boss_alar::boss_alarAI::UpdateAI(), and npc_egg_pile::npc_egg_pileAI::UpdateAI().
| void Creature::SetFlying | ( | bool | enable | ) |
Definition at line 2528 of file Creature.cpp.
References ANIM_TIER_FLY, ANIM_TIER_GROUND, ANIM_TIER_HOVER, Unit::HasUnitMovementFlag(), Unit::IsLevitating(), MOVEMENTFLAG_HOVER, Unit::SetAnimTier(), Unit::SetDisableGravity(), and Unit::SetFall().
Referenced by UpdateMovementFlags().
|
inline |
Definition at line 644 of file Creature.h.
References m_formation.
Referenced by CreatureGroup::AddMember(), and CreatureGroup::RemoveMember().
|
inline |
Definition at line 627 of file Creature.h.
References m_homePosition.
|
inline |
Definition at line 626 of file Creature.h.
References m_homePosition.
Referenced by Battleground::AddCreature(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), Transport::CreateNPCPassenger(), hyjalAI::DoOverrun(), spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::Land(), CreatureGroup::LeaderMoveTo(), LoadCreatureFromDB(), RemoveCorpse(), Skyfire::PetTransport::RemoveOwnerHunterPet(), boss_sartharion::boss_sartharionAI::Reset(), Battlefield::SpawnCreature(), WaypointMovementGenerator< Creature >::StartMove(), Map::SummonCreature(), and Transport::UpdatePassengerPositions().
| void Creature::SetInCombatWithZone | ( | ) |
Definition at line 2110 of file Creature.cpp.
References Unit::AddThreat(), MapRefManager::begin(), Unit::CanHaveThreatList(), MapRefManager::end(), Object::GetEntry(), Map::GetId(), WorldObject::GetMap(), Map::GetPlayers(), LinkedListHead::isEmpty(), Map::IsInstance(), MapObject::Map, Unit::SetInCombatWith(), and SF_LOG_ERROR.
Referenced by LuaCreature::SetInCombatWithZone(), and npc_palehoof_orb::npc_palehoof_orbAI::UpdateAI().
|
inline |
Definition at line 557 of file Creature.h.
References m_LootMode.
Referenced by LuaCreature::SetLootMode().
| void Creature::SetLootRecipient | ( | Unit * | unit | ) |
Definition at line 893 of file Creature.cpp.
References Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Player::GetGroup(), Object::GetGUID(), Object::GetTypeId(), Unit::IsVehicle(), m_lootRecipient, m_lootRecipientGroup, OBJECT_FIELD_DYNAMIC_FLAGS, Object::RemoveFlag(), Object::SetFlag(), TYPEID_PLAYER, Unit::Unit(), UNIT_DYNFLAG_LOOTABLE, and UNIT_DYNFLAG_TAPPED.
Referenced by Unit::DealDamage(), Unit::Kill(), and setDeathState().
|
inline |
Definition at line 486 of file Creature.h.
References m_meleeDamageSchoolMask.
Referenced by Guardian::InitStatsForLevel(), setDeathState(), and UpdateEntry().
|
inline |
Definition at line 583 of file Creature.h.
References m_AlreadyCallAssistance.
Referenced by CallAssistance(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), AssistDelayEvent::Execute(), AssistanceMovementGenerator::Finalize(), and LuaCreature::SetNoCallAssistance().
|
inline |
Definition at line 584 of file Creature.h.
References m_AlreadySearchedAssistance.
Referenced by DoFleeToGetAssistance(), setDeathState(), and LuaCreature::SetNoSearchAssistance().
|
virtual |
Reimplemented from Object.
Definition at line 2604 of file Creature.cpp.
References Unit::GetDisplayId(), Object::SetFloatValue(), Object::SetObjectScale(), sObjectMgr, UNIT_FIELD_BOUNDING_RADIUS, and UNIT_FIELD_COMBAT_REACH.
Referenced by wp_commandscript::HandleWpShowCommand(), InitEntry(), Guardian::InitStatsForLevel(), and boss_alar::boss_alarAI::UpdateAI().
|
inline |
Definition at line 656 of file Creature.h.
References m_originalEntry.
Referenced by CreateFromProto().
|
inline |
Definition at line 624 of file Creature.h.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and SetPosition().
Referenced by SetPosition().
| void Creature::SetPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | o ) |
Definition at line 2442 of file Creature.cpp.
References Map::CreatureRelocation(), WorldObject::GetMap(), Unit::GetVehicleKit(), Skyfire::IsValidMapCoord(), Unit::IsVehicle(), Vehicle::RelocatePassengers(), SF_LOG_DEBUG, and Object::ToCreature().
Referenced by npc_commandscript::HandleNpcMoveCommand(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), and boss_twinemperorsAI::TeleportToMyBrother().
|
inline |
Definition at line 460 of file Creature.h.
References m_reactState.
Referenced by AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_paletress::boss_paletressAI::boss_paletressAI(), spell_the_lich_king_ice_burst_target_search::spell_the_lich_king_ice_burst_target_search_SpellScript::CheckTargetCount(), Spell::EffectSummonPet(), AssistanceDistractMovementGenerator::Finalize(), spell_gen_creature_permanent_feign_death::spell_gen_creature_permanent_feign_death_AuraScript::HandleEffectApply(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), Battlefield::HideNpc(), InitializeReactState(), Guardian::InitStats(), Minion::InitStats(), Puppet::InitStats(), Pet::LoadPetFromDB(), npc_eye_of_acherus::npc_eye_of_acherusAI::npc_eye_of_acherusAI(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::npc_frozen_orb_stalkerAI(), npc_iron_construct::npc_iron_constructAI::npc_iron_constructAI(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), LuaCreature::SetReactState(), BfGraveyard::SetSpirit(), Battlefield::ShowNpc(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), instance_violet_hold::instance_violet_hold_InstanceMapScript::Update(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), and npc_thassarian::npc_thassarianAI::UpdateAI().
|
inline |
Definition at line 619 of file Creature.h.
References m_regenHealth.
|
inline |
Definition at line 603 of file Creature.h.
References m_respawnDelay.
Referenced by BattlegroundAV::AddAVCreature(), Battleground::AddCreature(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), and LuaCreature::SetRespawnDelay().
|
inline |
Definition at line 606 of file Creature.h.
References m_respawnradius.
Referenced by npc_commandscript::HandleNpcSetSpawnDistCommand(), and LuaCreature::SetRespawnRadius().
|
inline |
Definition at line 598 of file Creature.h.
References m_respawnTime.
Referenced by OPvPCapturePoint::DelCreature(), BattlePetWildZonePool::SpawnReplacement(), and Update().
|
virtual |
Implements Unit.
Definition at line 2626 of file Creature.cpp.
References _focusSpell, Object::SetUInt64Value(), and UNIT_FIELD_TARGET.
Referenced by ConfusedMovementGenerator< T >::DoFinalize(), FleeingMovementGenerator< Creature >::DoFinalize(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), and setDeathState().
|
inline |
Definition at line 632 of file Creature.h.
References m_transportHomePosition.
|
inline |
Definition at line 631 of file Creature.h.
References m_transportHomePosition.
Referenced by Transport::CreateNPCPassenger(), and WaypointMovementGenerator< Creature >::StartMove().
|
virtual |
Reimplemented from WorldObject.
Reimplemented in Pet, Puppet, TempSummon, and Totem.
Definition at line 446 of file Creature.cpp.
References AI(), ALIVE, CreatureAI::CanRespawn(), CORPSE, CREATURE_REGEN_INTERVAL, DAY, DEAD, Group::EndRoll(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Object::GetEntry(), Object::GetGUIDLow(), Map::GetLinkedRespawnTime(), WorldObject::GetMap(), Unit::getPowerType(), Object::GetUInt32Value(), ObjectAccessor::GetUnit(), Unit::GetVehicleKit(), Unit::GetVictim(), HIGHGUID_UNIT, Unit::i_AI, Unit::IsAIEnabled, Unit::IsAlive(), Player::IsGameMaster(), Unit::IsInCombat(), IsInEvadeMode(), Unit::IsPolymorphed(), Unit::IsVehicle(), JUST_DIED, JUST_RESPAWNED, CreatureAI::JustRespawned(), Unit::LastCharmerGUID, loot, lootingGroupLowGUID, m_AI_locked, m_corpseRemoveTime, m_DBTableGuid, Unit::m_deathState, m_groupLootTimer, Unit::m_regenTimer, m_respawnTime, Unit::m_vehicleKit, MAKE_NEW_GUID(), MINUTE, Unit::NeedChangeAI, OBJECT_FIELD_ENTRY_ID, POWER_ENERGY, POWER_PYRITE, Regenerate(), RegenerateHealth(), RegenerateMana(), RemoveCorpse(), Respawn(), SaveRespawnTime(), SetRespawnTime(), SF_LOG_DEBUG, SF_LOG_ERROR, sGroupMgr, sObjectMgr, sScriptMgr, TriggerJustRespawned, Unit::Unit(), Unit::Update(), Unit::UpdateCharmAI(), and UpdateMovementFlags().
Referenced by Pet::Update(), Puppet::Update(), TempSummon::Update(), and Totem::Update().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 831 of file StatSystem.cpp.
References MAX_POWERS, MAX_SPELL_SCHOOL, POWER_MANA, SPELL_SCHOOL_NORMAL, UpdateAttackPowerAndDamage(), UpdateMaxHealth(), UpdateMaxPower(), and UpdateResistances().
Referenced by npc_nadox_eggs::npc_nadox_eggsAI::npc_nadox_eggsAI(), and UpdateEntry().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 857 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetArmor(), and UNIT_MOD_ARMOR.
Referenced by UpdateResistances().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 877 of file StatSystem.cpp.
References BASE_ATTACK, BASE_PCT, BASE_VALUE, Unit::GetModifierValue(), OFF_ATTACK, RANGED_ATTACK, Object::SetFloatValue(), Object::SetInt32Value(), TOTAL_PCT, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, and UpdateDamagePhysical().
Referenced by UpdateAllStats().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 906 of file StatSystem.cpp.
References CreatureTemplate::attackpower, BASE_ATTACK, BASE_PCT, BASE_VALUE, Unit::CanUseAttackType(), CreatureTemplate::dmg_multiplier, Unit::GetAPMultiplier(), GetCreatureTemplate(), Unit::GetModifierValue(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, Object::SetStatFloatValue(), TOTAL_PCT, TOTAL_VALUE, UNIT_FIELD_MAX_DAMAGE, UNIT_FIELD_MAX_OFF_HAND_DAMAGE, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_DAMAGE, UNIT_FIELD_MIN_OFF_HAND_DAMAGE, UNIT_FIELD_MIN_RANGED_DAMAGE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
Referenced by UpdateAttackPowerAndDamage().
| bool Creature::UpdateEntry | ( | uint32 | entry, |
| uint32 | team = ALLIANCE, | ||
| const CreatureData * | data = NULL ) |
Definition at line 356 of file Creature.cpp.
References Unit::ApplySpellImmune(), BASE_ATTACK, BASE_VALUE, CreatureTemplate::baseattacktime, BattlePetNormalizeWildLevel(), ObjectMgr::ChooseCreatureFlags(), CREATURE_FLAG_EXTRA_NO_TAUNT, CREATURE_FLAG_EXTRA_WORLDEVENT, CreatureTemplate::dmgschool, CreatureTemplate::faction_A, CreatureTemplate::faction_H, FACTION_TEMPLATE_FLAG_PVP, CreatureTemplate::flags_extra, CreatureBaseStats::GenerateArmor(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), GetCreatureAddon(), GetCreatureTemplate(), Unit::getLevel(), HORDE, IMMUNITY_EFFECT, IMMUNITY_STATE, InitEntry(), InitializeReactState(), IsTrigger(), Unit::IsVehicle(), m_regenHealth, OBJECT_FIELD_DYNAMIC_FLAGS, OFF_ATTACK, CreatureTemplate::rangeattacktime, RANGED_ATTACK, CreatureTemplate::RegenHealth, Object::RemoveFlag(), CreatureTemplate::resistance, SelectLevel(), Unit::SetAttackTime(), Unit::SetCanModifyStats(), Unit::setFaction(), Object::SetFlag(), SetMeleeDamageSchool(), Unit::SetModifierValue(), Unit::SetPvP(), Unit::SetSheath(), Object::SetUInt32Value(), sFactionTemplateStore, sGameEventMgr, SHEATH_STATE_MELEE, sObjectMgr, SPELL_AURA_MOD_TAUNT, SPELL_EFFECT_ATTACK_ME, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_SHADOW, CreatureTemplate::unit_class, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_WILD_BATTLE_PET_LEVEL, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_NOT_SELECTABLE, CreatureTemplate::unit_flags2, UNIT_MOD_ARMOR, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_NPC_FLAG_WILDPET_CAPTURABLE, UpdateAllStats(), and UpdateMovementFlags().
Referenced by CreateFromProto(), npc_commandscript::HandleNpcSetEntryCommand(), Respawn(), npc_arthas::npc_arthasAI::UpdateAI(), and npc_thassarian::npc_thassarianAI::UpdateAI().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 863 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetMaxHealth(), and UNIT_MOD_HEALTH.
Referenced by UpdateAllStats().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 869 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetMaxPower(), and UNIT_MOD_POWER_START.
Referenced by UpdateAllStats().
| void Creature::UpdateMovementFlags | ( | ) |
Definition at line 2545 of file Creature.cpp.
References CanFly(), CHASE_MOTION_TYPE, GetCreatureTemplate(), MotionMaster::GetCurrentMovementGeneratorType(), Map::GetHeight(), WorldObject::GetMap(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetPositionZMinusOffset(), Unit::HasUnitMovementFlag(), IDLE_MOTION_TYPE, INHABIT_AIR, INHABIT_GROUND, INHABIT_WATER, CreatureTemplate::InhabitType, Unit::IsFalling(), Unit::IsInCombat(), Unit::IsInWater(), Unit::m_movedPlayer, MOVEMENTFLAG_HOVER, RANDOM_MOTION_TYPE, Unit::SetCanFly(), Unit::SetDisableGravity(), Unit::SetFall(), SetFlying(), and Unit::SetSwim().
Referenced by setDeathState(), Update(), and UpdateEntry().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 846 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetResistance(), SPELL_SCHOOL_NORMAL, UNIT_MOD_RESISTANCE_START, and UpdateArmor().
Referenced by UpdateAllStats().
|
virtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 826 of file StatSystem.cpp.
| uint32 Creature::UpdateVendorItemCurrentCount | ( | VendorItem const * | vItem, |
| uint32 | used_count ) |
Definition at line 2366 of file Creature.cpp.
References VendorItemCount::count, VendorItem::incrtime, VendorItem::item, VendorItemCount::lastIncrementTime, m_vendorItemCounts, VendorItem::maxcount, and sObjectMgr.
Referenced by Player::_StoreOrEquipNewItem().
|
inline |
Definition at line 640 of file Creature.h.
References m_waypointID.
Referenced by wp_commandscript::HandleWpUnLoadCommand(), and WaypointMovementGenerator< Creature >::OnArrived().
|
private |
Definition at line 731 of file Creature.h.
Referenced by Creature(), FocusTarget(), ReleaseFocus(), and SetTarget().
|
protected |
Definition at line 710 of file Creature.h.
Referenced by Creature(), IsReputationGainDisabled(), and SetDisableReputationGain().
|
protected |
Definition at line 716 of file Creature.h.
| Loot Creature::loot |
Definition at line 544 of file Creature.h.
Referenced by Spell::CheckCast(), WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), InitEntry(), Player::isAllowedToLoot(), Unit::Kill(), RemoveCorpse(), Player::SendLoot(), and Update().
| bool Creature::lootForBody |
Definition at line 546 of file Creature.h.
Referenced by Creature(), Respawn(), and Player::SendLoot().
| bool Creature::lootForPickPocketed |
Definition at line 545 of file Creature.h.
Referenced by Creature(), WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMoneyOpcode(), Unit::Kill(), Respawn(), and Player::SendLoot().
| uint32 Creature::lootingGroupLowGUID |
Definition at line 609 of file Creature.h.
Referenced by Creature(), and Update().
|
protected |
Definition at line 702 of file Creature.h.
Referenced by AIM_Initialize(), Creature(), and Update().
|
protected |
Definition at line 699 of file Creature.h.
Referenced by CallAssistance(), Creature(), and SetNoCallAssistance().
|
protected |
Definition at line 700 of file Creature.h.
Referenced by Creature(), HasSearchedAssistance(), and SetNoSearchAssistance().
| float Creature::m_CombatDistance |
Definition at line 660 of file Creature.h.
Referenced by CanCreatureAttack(), CanStartAttack(), Creature(), SelectVictim(), and HostileReference::updateOnlineStatus().
|
protected |
Definition at line 687 of file Creature.h.
Referenced by Create(), Creature(), GetCorpseDelay(), SetCorpseDelay(), and setDeathState().
|
protected |
Definition at line 684 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Creature(), IsInvisibleDueToDespawn(), RemoveCorpse(), setDeathState(), Update(), and Pet::Update().
| CreatureSpellCooldowns Creature::m_CreatureCategoryCooldowns |
Definition at line 567 of file Creature.h.
Referenced by _AddCreatureCategoryCooldown(), Pet::_LoadSpellCooldowns(), Creature(), HasCategoryCooldown(), Player::PetSpellInitialize(), and Player::VehicleSpellInitialize().
|
protected |
Definition at line 713 of file Creature.h.
Referenced by Creature(), GetCreatureData(), LoadCreatureFromDB(), and SaveRespawnTime().
|
protected |
Definition at line 712 of file Creature.h.
Referenced by Creature(), GetCreatureTemplate(), and InitEntry().
| CreatureSpellCooldowns Creature::m_CreatureSpellCooldowns |
Definition at line 566 of file Creature.h.
Referenced by _AddCreatureSpellCooldown(), Pet::_LoadSpellCooldowns(), Pet::_SaveSpellCooldowns(), Creature(), GetCreatureSpellCooldownDelay(), HasSpellCooldown(), Player::PetSpellInitialize(), and Player::VehicleSpellInitialize().
|
protected |
For new or temporary creatures is 0 for saved it is lowguid.
Definition at line 695 of file Creature.h.
Referenced by Pet::Create(), Creature(), DeleteFromDB(), GetCreatureAddon(), GetDBTableGUIDLow(), GetRespawnPosition(), LoadCreatureFromDB(), Respawn(), SaveRespawnTime(), SaveToDB(), SaveToDB(), and Update().
|
protected |
Definition at line 694 of file Creature.h.
Referenced by Creature(), GetDefaultMovementType(), InitEntry(), LoadCreatureFromDB(), and SetDefaultMovementType().
|
protected |
Definition at line 696 of file Creature.h.
Referenced by Creature(), GetCurrentEquipmentId(), LoadEquipment(), and SetCurrentEquipmentId().
|
private |
Definition at line 728 of file Creature.h.
Referenced by Creature(), GetFormation(), Motion_Initialize(), RemoveFromWorld(), setDeathState(), and SetFormation().
| uint32 Creature::m_groupLootTimer |
Definition at line 608 of file Creature.h.
Referenced by Creature(), and Update().
|
protected |
Definition at line 707 of file Creature.h.
Referenced by CanCreatureAttack(), GetHomePosition(), GetHomePosition(), SetHomePosition(), and SetHomePosition().
| bool Creature::m_isTempWorldObject |
Definition at line 664 of file Creature.h.
Referenced by Creature(), BattlePetSpawnMgr::OnCreatureAdded(), BattlePetSpawnMgr::OnCreatureRemoved(), BattlePetWildZonePool::SpawnReplacement(), and Map::SwitchGridContainers().
|
protected |
Definition at line 715 of file Creature.h.
Referenced by AddLootMode(), GetLootMode(), HasLootMode(), RemoveLootMode(), ResetLootMode(), and SetLootMode().
|
protected |
Definition at line 680 of file Creature.h.
Referenced by Creature(), GetLootRecipient(), hasLootRecipient(), isTappedBy(), and SetLootRecipient().
|
protected |
Definition at line 681 of file Creature.h.
Referenced by Creature(), GetLootRecipientGroup(), hasLootRecipient(), and SetLootRecipient().
|
protected |
Definition at line 704 of file Creature.h.
Referenced by Creature(), GetMeleeDamageSchoolMask(), and SetMeleeDamageSchool().
|
protected |
Definition at line 705 of file Creature.h.
Referenced by Pet::Create(), GetOriginalEntry(), Respawn(), and SetOriginalEntry().
|
protected |
Definition at line 697 of file Creature.h.
Referenced by Creature(), GetOriginalEquipmentId(), and InitEntry().
|
private |
Definition at line 725 of file Creature.h.
Referenced by Creature(), GetWaypointPath(), LoadCreaturesAddon(), and LoadPath().
| uint32 Creature::m_PlayerDamageReq |
Definition at line 653 of file Creature.h.
Referenced by Creature(), IsDamageEnoughForLootingAndReward(), LowerPlayerDamageReq(), and ResetPlayerDamageReq().
|
protected |
Definition at line 690 of file Creature.h.
Referenced by Creature(), GetReactState(), HasReactState(), and SetReactState().
|
protected |
Definition at line 701 of file Creature.h.
Referenced by Creature(), isRegeneratingHealth(), LoadCreatureFromDB(), setRegeneratingHealth(), and UpdateEntry().
|
protected |
Definition at line 686 of file Creature.h.
Referenced by Creature(), GetRespawnDelay(), LoadCreatureFromDB(), RemoveCorpse(), SaveToDB(), setDeathState(), and SetRespawnDelay().
|
protected |
Definition at line 688 of file Creature.h.
Referenced by Creature(), GetRespawnRadius(), InitEntry(), LoadCreatureFromDB(), SaveToDB(), and SetRespawnRadius().
|
protected |
Definition at line 685 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Creature(), GetRespawnTime(), GetRespawnTimeEx(), LoadCreatureFromDB(), RemoveCorpse(), Respawn(), SaveRespawnTime(), setDeathState(), SetRespawnTime(), and Update().
| float Creature::m_SightDistance |
Definition at line 660 of file Creature.h.
Referenced by Creature(), and WorldObject::GetSightRange().
| uint32 Creature::m_spells[CREATURE_MAX_SPELLS] |
Definition at line 565 of file Creature.h.
Referenced by Creature(), Totem::GetSpell(), HasSpell(), InitEntry(), TempSummon::InitStats(), ProhibitSpellSchool(), reachWithSpellAttack(), reachWithSpellCure(), FactorySelector::selectAI(), and Player::VehicleSpellInitialize().
|
protected |
Definition at line 708 of file Creature.h.
Referenced by GetTransportHomePosition(), GetTransportHomePosition(), SetTransportHomePosition(), and SetTransportHomePosition().
|
protected |
Definition at line 676 of file Creature.h.
Referenced by GetVendorItemCurrentCount(), and UpdateVendorItemCurrentCount().
|
private |
Definition at line 724 of file Creature.h.
Referenced by GetCurrentWaypointID(), and UpdateWaypointID().
|
private |
Definition at line 729 of file Creature.h.
Referenced by Creature(), Respawn(), and Update().