![]() |
TrinityCore
|
#include <GameObject.h>
Inheritance diagram for GameObject:Classes | |
| struct | PerPlayerState |
| struct | ValuesUpdateForPlayerWithMaskSender |
Public Member Functions | |
| GameObject () | |
| ~GameObject () | |
| void | BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::GameObjectData::Mask const &requestedGameObjectMask, Player const *target, bool ignoreNestedChangesMask) const |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | Update (uint32 diff) override |
| GameObjectTemplate const * | GetGOInfo () const |
| GameObjectTemplateAddon const * | GetTemplateAddon () const |
| GameObjectOverride const * | GetGameObjectOverride () const |
| GameObjectData const * | GetGameObjectData () const |
| GameObjectValue const * | GetGOValue () const |
| bool | IsTransport () const |
| bool | IsDestructibleBuilding () const |
| ObjectGuid::LowType | GetSpawnId () const |
| void | SetLocalRotationAngles (float z_rot, float y_rot, float x_rot) |
| void | SetLocalRotation (float qx, float qy, float qz, float qw) |
| void | SetParentRotation (QuaternionData const &rotation) |
| QuaternionData const & | GetLocalRotation () const |
| int64 | GetPackedLocalRotation () const |
| QuaternionData | GetWorldRotation () const |
| std::string | GetNameForLocaleIdx (LocaleConstant locale) const override |
| bool | HasLabel (int32 gameobjectLabel) const |
| std::span< int32 const > | GetLabels () const |
| void | SaveToDB () |
| void | SaveToDB (uint32 mapid, std::vector< Difficulty > const &spawnDifficulties) |
| bool | LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool=true) |
| ObjectGuid | GetCreatorGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetSpellId (uint32 id) |
| uint32 | GetSpellId () const |
| time_t | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| void | SetRespawnTime (int32 respawn) |
| void | Respawn () |
| bool | isSpawned () const |
| bool | isSpawnedByDefault () const |
| void | SetSpawnedByDefault (bool b) |
| uint32 | GetRespawnDelay () const |
| void | Refresh () |
| void | DespawnOrUnsummon (Milliseconds delay=0ms, Seconds forceRespawnTime=0s) |
| void | DespawnForPlayer (Player *seer, Seconds respawnTime) |
| void | Delete () |
| void | SendGameObjectDespawn () |
| Loot * | GetFishLoot (Player *lootOwner) |
| Loot * | GetFishLootJunk (Player *lootOwner) |
| bool | HasFlag (GameObjectFlags flags) const |
| void | SetFlag (GameObjectFlags flags) |
| void | RemoveFlag (GameObjectFlags flags) |
| void | ReplaceAllFlags (GameObjectFlags flags) |
| void | SetLevel (uint32 level) |
| GameobjectTypes | GetGoType () const |
| void | SetGoType (GameobjectTypes type) |
| GOState | GetGoState () const |
| void | SetGoState (GOState state) |
| GOState | GetGoStateFor (ObjectGuid const &viewer) const |
| void | SetGoStateFor (GOState state, Player const *viewer) |
| uint32 | GetGoArtKit () const |
| void | SetGoArtKit (uint32 artkit) |
| uint8 | GetGoAnimProgress () const |
| void | SetGoAnimProgress (uint8 animprogress) |
| std::span< uint32 const > | GetPauseTimes () const |
| Optional< float > | GetPathProgressForClient () const |
| void | SetPathProgressForClient (float progress) |
| void | EnableCollision (bool enable) |
| void | Use (Unit *user, bool ignoreCastInProgress=false) |
| LootState | getLootState () const |
| void | SetLootState (LootState s, Unit *unit=nullptr) |
| uint16 | GetLootMode () const |
| bool | HasLootMode (uint16 lootMode) const |
| void | SetLootMode (uint16 lootMode) |
| void | AddLootMode (uint16 lootMode) |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| void | ClearLoot () |
| bool | IsFullyLooted () const |
| void | OnLootRelease (Player *looter) |
| void | AddToSkillupList (ObjectGuid const &PlayerGuidLow) |
| bool | IsInSkillupList (ObjectGuid const &playerGuid) const |
| void | ClearSkillupList () |
| void | AddUniqueUse (Player *player) |
| void | AddUse () |
| uint32 | GetUseCount () const |
| uint32 | GetUniqueUseCount () const |
| void | SaveRespawnTime (uint32 forceDelay=0) |
| GuidUnorderedSet const & | GetTapList () const |
| void | SetTapList (GuidUnorderedSet tapList) |
| bool | IsLootAllowedFor (Player const *player) const |
| bool | HasLootRecipient () const |
| Loot * | GetLootForPlayer (Player const *) const override |
| GameObject * | GetLinkedTrap () |
| void | SetLinkedTrap (GameObject *linkedTrap) |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| bool | HasConditionalInteraction () const |
| bool | CanActivateForPlayer (Player const *target) const |
| bool | ActivateToQuest (Player const *target) const |
| void | UseDoorOrButton (uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr) |
| void | ResetDoorOrButton () |
| void | ActivateObject (GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1) |
| void | TriggeringLinkedGameObject (uint32 trapEntry, Unit *target) |
| bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsInvisibleDueToDespawn (WorldObject const *seer) const override |
| uint8 | GetLevelForTarget (WorldObject const *target) const override |
| GameObject * | LookupFishingHoleAround (float range) |
| void | SendCustomAnim (uint32 anim) |
| bool | IsInRange (float x, float y, float z, float radius) const |
| void | ModifyHealth (int32 change, WorldObject *attackerOrHealer=nullptr, uint32 spellId=0) |
| void | SetDestructibleState (GameObjectDestructibleState state, WorldObject *attackerOrHealer=nullptr, bool setHealth=false) |
| GameObjectDestructibleState | GetDestructibleState () const |
| void | SetRespawnCompatibilityMode (bool mode=true) |
| bool | GetRespawnCompatibilityMode () |
| std::string const & | GetAIName () const |
| uint32 | GetScriptId () const |
| GameObjectAI * | AI () const |
| void | InheritStringIds (GameObject const *parent) |
| bool | HasStringId (std::string_view id) const |
| void | SetScriptStringId (std::string id) |
| std::string_view | GetStringId (StringIdType type) const |
| SpawnTrackingStateData const * | GetSpawnTrackingStateDataForPlayer (Player const *player) const override |
| void | SetDisplayId (uint32 displayid) |
| uint32 | GetDisplayId () const |
| uint8 | GetNameSetId () const |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| Position | GetRespawnPosition () const |
| TransportBase * | ToTransportBase () |
| TransportBase const * | ToTransportBase () const |
| Transport * | ToTransport () |
| Transport const * | ToTransport () const |
| Position const & | GetStationaryPosition () const override |
| void | RelocateStationaryPosition (float x, float y, float z, float o) |
| void | RelocateStationaryPosition (Position const &pos) |
| void | AfterRelocation () |
| float | GetInteractionDistance () const |
| void | UpdateModelPosition () |
| bool | IsAtInteractDistance (Position const &pos, float radius) const |
| bool | IsAtInteractDistance (Player const *player, SpellInfo const *spell=nullptr) const |
| bool | IsWithinDistInMap (Player const *player) const |
| SpellInfo const * | GetSpellForLock (Player const *player) const |
| uint16 | GetAIAnimKitId () const override |
| void | SetAnimKitId (uint16 animKitId, bool oneshot) |
| uint32 | GetWorldEffectID () const |
| void | SetWorldEffectID (uint32 worldEffectID) |
| Vignettes::VignetteData const * | GetVignette () const |
| void | SetVignette (uint32 vignetteId) |
| void | SetSpellVisualId (int32 spellVisualId, ObjectGuid activatorGuid=ObjectGuid::Empty) |
| void | AssaultCapturePoint (Player *player) |
| void | UpdateCapturePoint () |
| bool | CanInteractWithCapturePoint (Player const *target) const |
| FlagState | GetFlagState () const |
| ObjectGuid const & | GetFlagCarrierGUID () const |
| time_t | GetFlagTakenFromBaseTime () const |
| GuidUnorderedSet const * | GetInsidePlayers () const |
| bool | MeetsInteractCondition (Player const *user) const |
| void | AIM_Destroy () |
| bool | AIM_Initialize () |
| std::string | GetDebugInfo () const override |
| void | UpdateDynamicFlagsForNearbyPlayers () |
| void | HandleCustomTypeCommand (GameObjectTypeBase::CustomCommand const &command) const |
| TeamId | GetControllingTeam () const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) const |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| virtual float | GetCombatReach () const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| Position | GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const |
| uint32 | GetInstanceId () const |
| PhaseShift & | GetPhaseShift () |
| PhaseShift const & | GetPhaseShift () const |
| PhaseShift & | GetSuppressedPhaseShift () |
| PhaseShift const & | GetSuppressedPhaseShift () const |
| bool | InSamePhase (PhaseShift const &phaseShift) const |
| bool | InSamePhase (WorldObject const *obj) const |
| int32 | GetDBPhase () const |
| void | SetDBPhase (int32 p) |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| WmoLocation const * | GetCurrentWmo () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string | GetNameForLocaleIdx (LocaleConstant) const override |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (Position const *pos, float minRange, float maxRange) const |
| bool | IsInRange3d (Position const *pos, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| void | SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const |
| void | PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const |
| void | StopDistanceSound (Player const *target=nullptr) const |
| void | PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const |
| void | PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const |
| void | PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| ZoneScript * | FindZoneScript () const |
| ZoneScript * | GetZoneScript () const |
| Scenario * | GetScenario () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float range) const |
| virtual ObjectGuid | GetCharmerOrOwnerGUID () const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| SpellRange | GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| SpellEffectValue | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| virtual float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const |
| virtual SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendCancelOrphanSpellVisual (uint32 id) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| virtual uint32 | GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibility (bool forced=true) |
| virtual void | UpdateObjectVisibilityOnCreate () |
| virtual void | UpdateObjectVisibilityOnDestroy () |
| void | UpdatePositionData () |
| void | BuildUpdate (UpdateDataMapType &) override |
| bool | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| void | SetFarVisible (bool on) |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetIsStoredInWorldObjectGridContainer (bool apply) |
| bool | IsAlwaysStoredInWorldObjectGridContainer () const |
| bool | IsStoredInWorldObjectGridContainer () const |
| TransportBase * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| Position const & | GetTransOffset () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| virtual ObjectGuid | GetTransGUID () const |
| void | SetTransport (TransportBase *t) |
| float | GetFloorZ () const |
| virtual float | GetCollisionHeight () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| virtual uint16 | GetMovementAnimKitId () const |
| virtual uint16 | GetMeleeAnimKitId () const |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
| SmoothPhasing * | GetOrCreateSmoothPhasing () |
| SmoothPhasing * | GetSmoothPhasing () |
| SmoothPhasing const * | GetSmoothPhasing () const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| void | SetDynamicFlag (uint32 flag) |
| void | RemoveDynamicFlag (uint32 flag) |
| void | ReplaceAllDynamicFlags (uint32 flag) |
| void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| SceneObject * | ToSceneObject () |
| SceneObject const * | ToSceneObject () const |
| Conversation * | ToConversation () |
| Conversation const * | ToConversation () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
| virtual void | BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const |
Public Member Functions inherited from BaseEntity | |
| virtual | ~BaseEntity () |
| bool | IsInWorld () const |
| ObjectGuid const & | GetGUID () const |
| TypeID | GetTypeId () const |
| bool | isType (TypeMask mask) const |
| bool | IsWorldObject () const |
| bool | IsItem () const |
| bool | IsUnit () const |
| bool | IsCreature () const |
| bool | IsPlayer () const |
| bool | IsGameObject () const |
| bool | IsDynObject () const |
| bool | IsCorpse () const |
| bool | IsAreaTrigger () const |
| bool | IsSceneObject () const |
| bool | IsConversation () const |
| bool | IsMeshObject () const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildDestroyUpdateBlock (UpdateData *data) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
| virtual void | DestroyForPlayer (Player const *target) const |
| void | SendOutOfRangeForPlayer (Player const *target) const |
| void | ClearUpdateMask (bool remove) |
| void | SetIsNewObject (bool enable) |
| bool | IsDestroyedObject () const |
| void | SetDestroyedObject (bool destroyed) |
| void | BuildUpdateChangesMask () |
| void | BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const |
| template<typename T > | |
| void | ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &) |
Public Member Functions inherited from WorldLocation | |
| constexpr | WorldLocation () |
| constexpr | WorldLocation (uint32 mapId, float x, float y) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z, float o) |
| constexpr | WorldLocation (uint32 mapId, Position const &position) |
| constexpr void | WorldRelocate (WorldLocation const &loc) |
| constexpr void | WorldRelocate (WorldLocation const *loc) |
| constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
| constexpr void | WorldRelocate (uint32 mapId, float x, float y, float z, float o) |
| constexpr WorldLocation | GetWorldLocation () const |
| constexpr uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| Position | GetPositionOffsetTo (Position const &endPos) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< GameObject > | |
| virtual | ~GridObject () |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefManager< GameObject > &m) |
| void | RemoveFromGrid () |
Static Public Member Functions | |
| static GameObject * | CreateGameObject (uint32 entry, Map *map, Position const &pos, QuaternionData const &rotation, uint32 animProgress, GOState goState, uint32 artKit=0) |
| static GameObject * | CreateGameObjectFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap=true) |
| static bool | DeleteFromDB (ObjectGuid::LowType spawnId) |
| static void | SetGoArtKit (uint32 artkit, GameObject *go, ObjectGuid::LowType lowguid=UI64LIT(0)) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (Object *o) |
| static Conversation const * | ToConversation (Object const *o) |
Static Public Member Functions inherited from BaseEntity | |
| static ObjectGuid | GetGUID (BaseEntity const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::map< uint32, ObjectGuid > | ChairSlotAndUser |
Protected Member Functions | |
| void | BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| void | BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| void | ClearValuesChangesMask () override |
| void | CreateModel () |
| void | UpdateModel () |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| virtual void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const |
| virtual bool | CanAlwaysSee (WorldObject const *) const |
| virtual bool | IsAlwaysDetectableFor (WorldObject const *seer) const |
| virtual void | Heartbeat () |
Protected Member Functions inherited from Object | |
| Object () | |
| void | BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const |
Protected Member Functions inherited from BaseEntity | |
| BaseEntity () | |
| void | _Create (ObjectGuid const &guid) |
| template<typename T > | |
| void | SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| void | RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename K , typename V > | |
| void | RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key) |
| template<typename T > | |
| void | InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter) |
| template<typename T > | |
| void | SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply) |
| template<typename T > | |
| void | ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply) |
| template<typename Action > | |
| void | DoWithSuppressingObjectUpdates (Action &&action) |
| void | BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const |
| virtual UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const |
| void | AddToObjectUpdateIfNeeded () |
Protected Member Functions inherited from MapObject | |
| MapObject () | |
Private Member Functions | |
| bool | Create (uint32 entry, Map *map, Position const &pos, QuaternionData const &rotation, uint32 animProgress, GOState goState, uint32 artKit, bool dynamic, ObjectGuid::LowType spawnid) |
| void | RemoveFromOwner () |
| void | SwitchDoorOrButton (bool activate, bool alternative=false) |
| void | UpdatePackedRotation () |
| bool | _IsWithinDist (WorldObject const *obj, float dist2compare, bool, bool, bool) const override |
| Object distance/size - overridden from Object::_IsWithinDist. Needs to take in account proper GO size. | |
| std::unordered_map< ObjectGuid, PerPlayerState > & | GetOrCreatePerPlayerStates () |
Private Attributes | |
| GameObjectAI * | m_AI |
| bool | m_respawnCompatibilityMode |
| uint16 | _animKitId |
| uint32 | _worldEffectID |
| Optional< float > | m_transportPathProgress |
| std::unique_ptr< Vignettes::VignetteData > | m_vignette |
| std::unique_ptr< std::unordered_map< ObjectGuid, PerPlayerState > > | m_perPlayerState |
Additional Inherited Members | |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
Definition at line 171 of file GameObject.h.
|
protected |
Definition at line 489 of file GameObject.h.
|
explicit |
Definition at line 844 of file GameObject.cpp.
References WowCS::EntityFragmentsHolder::Add(), GO_NOT_READY, GO_STATE_ACTIVE, m_cooldownTime, m_despawnDelay, m_despawnRespawnTime, BaseEntity::m_entityFragments, m_goData, m_goInfo, m_goTemplateAddon, m_lootState, BaseEntity::m_objectTypeId, m_packedRotation, m_prevGoState, m_respawnDelayTime, m_respawnTime, m_restockTime, m_spawnedByDefault, m_spawnId, m_spellId, m_stationaryPosition, BaseEntity::m_updateFlag, m_usetimes, Position::Relocate(), ResetLootMode(), CreateObjectBits::Rotation, CreateObjectBits::Stationary, WowCS::Tag_GameObject, TYPEID_GAMEOBJECT, and UI64LIT.
Referenced by CreateGameObject(), and CreateGameObjectFromDB().
| GameObject::~GameObject | ( | ) |
Definition at line 876 of file GameObject.cpp.
References m_AI.
|
inlineoverrideprivatevirtual |
Object distance/size - overridden from Object::_IsWithinDist. Needs to take in account proper GO size.
Following check does check 3d distance
Reimplemented from WorldObject.
Definition at line 516 of file GameObject.h.
References Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
| void GameObject::ActivateObject | ( | GameObjectActions | action, |
| int32 | param, | ||
| WorldObject * | spellCaster = nullptr, |
||
| uint32 | spellId = 0, |
||
| int32 | effectIndex = -1 |
||
| ) |
Definition at line 2447 of file GameObject.cpp.
References AnimateCustom0, AnimateCustom1, AnimateCustom2, AnimateCustom3, GameObjectTemplateAddon::ArtKits, Close, CloseAndLock, CloseAndPlayAnimKit, CloseAndStopAnimKit, Creation, Despawn, DespawnOrUnsummon(), Destroy, Disturb, GAMEOBJECT_TYPE_TRANSPORT, Object::GetEntry(), GetGoType(), BaseEntity::GetGUID(), GetTemplateAddon(), GO_FLAG_LOCKED, GO_FLAG_NOT_SELECTABLE, GO_STATE_TRANSPORT_ACTIVE, GoTo10thFloor, GoTo1stFloor, GoTo2ndFloor, GoTo3rdFloor, GoTo4thFloor, GoTo5thFloor, GoTo6thFloor, GoTo7thFloor, GoTo8thFloor, GoTo9thFloor, Lock, m_goTypeImpl, MakeActive, MakeInert, None, Open, OpenAndPlayAnimKit, OpenAndStopAnimKit, OpenAndUnlock, PlayAnimKit, PlayOneShotAnimKit, PlaySpellVisual, Rebuild, RemoveFlag(), ResetDoorOrButton(), SendCustomAnim(), SetAnimKitId(), SetFlag(), SetGoArtKit(), SetGoState(), SetSpellVisualId(), StopAnimKit, StopSpellVisual, TC_LOG_ERROR, TC_LOG_FATAL, ToggleOpen, Object::ToUnit(), Unlock, Use(), UseArtKit0, UseArtKit1, UseArtKit2, UseArtKit3, UseArtKit4, and UseDoorOrButton().
Referenced by Spell::EffectActivateObject(), instance_karazhan::instance_karazhan_InstanceMapScript::OnGameObjectCreate(), instance_steam_vault::instance_steam_vault_InstanceMapScript::OnGameObjectCreate(), go_shield_generator::OnGossipHello(), go_main_chambers_access_panel::OnGossipHello(), go_broggok_lever::OnGossipHello(), and go_strange_pool::OnGossipHello().
| bool GameObject::ActivateToQuest | ( | Player const * | target | ) | const |
Definition at line 2335 of file GameObject.cpp.
References GameObjectTemplate::chestLoot, GameObjectTemplate::chestPersonalLoot, GameObjectTemplate::chestPushLoot, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GATHERING_NODE, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_SPELL_FOCUS, Object::GetEntry(), GetGOInfo(), GetGoType(), getLootState(), Player::GetQuestDialogStatus(), Player::GetQuestStatus(), GO_NOT_READY, Player::HasQuestForGO(), LootStore::HaveQuestLootForPlayer(), LootTemplates_Gameobject, None, QUEST_STATUS_INCOMPLETE, QuestGiverStatusFutureMask, GameObjectTemplate::questID, and sObjectMgr.
Referenced by CanActivateForPlayer().
|
inline |
Definition at line 315 of file GameObject.h.
|
inline |
Definition at line 322 of file GameObject.h.
Referenced by Spell::EffectOpenLock().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 933 of file GameObject.cpp.
References WorldObject::AddToWorld(), EnableCollision(), GAMEOBJECT_TYPE_CHEST, Map::GetGameObjectBySpawnIdStore(), GetGoState(), GetGoType(), getLootState(), WorldObject::GetMap(), Map::GetObjectsStore(), GO_READY, GO_STATE_READY, TypeListContainer< UnderlyingContainer, Types >::Insert(), Map::InsertGameObjectModel(), BaseEntity::IsInWorld(), IsTransport(), m_model, m_spawnId, WorldObject::m_zoneScript, ZoneScript::OnGameObjectCreate(), and ToTransport().
Referenced by Map::AddToMap(), and Transport::TeleportPassengersAndHideTransport().
| void GameObject::AddUniqueUse | ( | Player * | player | ) |
Definition at line 1791 of file GameObject.cpp.
References AddUse(), BaseEntity::GetGUID(), and m_unique_users.
Referenced by Spell::EffectTransmitted(), and Use().
|
inline |
Definition at line 330 of file GameObject.h.
Referenced by AddUniqueUse(), WorldSession::DoLootRelease(), go_shallow_grave::go_shallow_graveAI::OnGossipHello(), go_simon_cluster::go_simon_clusterAI::OnGossipHello(), and Use().
| void GameObject::AfterRelocation | ( | ) |
Definition at line 4262 of file GameObject.cpp.
References m_goTypeImpl, m_vignette, Vignettes::Update(), UpdateModelPosition(), WorldObject::UpdateObjectVisibility(), and WorldObject::UpdatePositionData().
Referenced by Map::GameObjectRelocation(), and Map::MoveAllGameObjectsInMoveList().
|
inline |
Definition at line 390 of file GameObject.h.
Referenced by Player::AddQuestAndCheckCompletion(), AssaultCapturePoint(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::GOTargetInfo::DoTargetSpellHit(), Player::GetQuestDialogStatus(), gobject_commandscript::HandleGameObjectInfoCommand(), WorldSession::HandleGossipSelectOptionOpcode(), TempSummon::InitSummon(), SmartScript::IsSmart(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), SmartScript::ProcessAction(), SetDestructibleState(), SetGoState(), SetLootState(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Update(), Transport::Update(), UpdateCapturePoint(), and Use().
| void GameObject::AIM_Destroy | ( | ) |
Definition at line 881 of file GameObject.cpp.
References m_AI.
Referenced by AIM_Initialize(), and CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript().
| bool GameObject::AIM_Initialize | ( | ) |
Definition at line 887 of file GameObject.cpp.
References AIM_Destroy(), GameObjectAI::InitializeAI(), m_AI, and FactorySelector::SelectGameObjectAI().
Referenced by Create(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), Update(), and Transport::Update().
| void GameObject::AssaultCapturePoint | ( | Player * | player | ) |
Definition at line 4378 of file GameObject.cpp.
References AI(), WorldPackets::Battleground::AllianceCaptured, GameObjectTemplate::AssaultBroadcastAlliance, GameObjectTemplate::AssaultBroadcastHorde, GameObjectValue::AssaultTimer, CanInteractWithCapturePoint(), GameObjectValue::CapturePoint, GameObjectTemplate::capturePoint, GameObjectTemplate::CaptureTime, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, WorldPackets::Battleground::ContestedAlliance, GameObjectTemplate::ContestedEventAlliance, GameObjectTemplate::ContestedEventHorde, WorldPackets::Battleground::ContestedHorde, GameObjectTemplate::DefendedBroadcastAlliance, GameObjectTemplate::DefendedBroadcastHorde, GameObjectTemplate::DefendedEventAlliance, GameObjectTemplate::DefendedEventHorde, Player::GetBGTeam(), GetGOInfo(), WorldObject::GetMap(), HORDE, WorldPackets::Battleground::HordeCaptured, GameObjectValue::LastTeamCapture, m_goValue, WorldPackets::Battleground::Neutral, Battleground::SendBroadcastText(), GameObjectValue::State, TEAM_ALLIANCE, TEAM_HORDE, GameEvents::Trigger(), and UpdateCapturePoint().
Referenced by Use().
|
overrideprotectedvirtual |
Implements Object.
Definition at line 4163 of file GameObject.cpp.
References flags, m_gameObjectData, and Object::m_objectData.
|
overrideprotectedvirtual |
Implements Object.
Definition at line 4169 of file GameObject.cpp.
References flags, UF::UpdateFieldHolder::GetChangedObjectTypeMask(), UF::UpdateFieldHolder::HasChanged(), m_gameObjectData, Object::m_objectData, BaseEntity::m_values, TYPEID_GAMEOBJECT, and TYPEID_OBJECT.
| void GameObject::BuildValuesUpdateForPlayerWithMask | ( | UpdateData * | data, |
| UF::ObjectData::Mask const & | requestedObjectMask, | ||
| UF::GameObjectData::Mask const & | requestedGameObjectMask, | ||
| Player const * | target, | ||
| bool | ignoreNestedChangesMask | ||
| ) | const |
Definition at line 4180 of file GameObject.cpp.
References UpdateData::AddUpdateBlock(), Object::BuildEntityFragmentsForValuesUpdateForPlayerWithMask(), flags, UpdateMask< Bits >::GetBlock(), BaseEntity::GetUpdateFieldFlagsFor(), m_gameObjectData, Object::m_objectData, BaseEntity::PrepareValuesUpdateBuffer(), ByteBuffer::put(), UpdateMask< Bits >::Set(), TYPEID_GAMEOBJECT, TYPEID_OBJECT, and ByteBuffer::wpos().
Referenced by OnLootRelease(), GameObject::ValuesUpdateForPlayerWithMaskSender::operator()(), Update(), and Player::UpdateVisibleObjectInteractions().
| bool GameObject::CanActivateForPlayer | ( | Player const * | target | ) | const |
Definition at line 2324 of file GameObject.cpp.
References ActivateToQuest(), and MeetsInteractCondition().
| bool GameObject::CanInteractWithCapturePoint | ( | Player const * | target | ) | const |
Definition at line 4520 of file GameObject.cpp.
References WorldPackets::Battleground::AllianceCaptured, GameObjectValue::CapturePoint, WorldPackets::Battleground::ContestedAlliance, WorldPackets::Battleground::ContestedHorde, GAMEOBJECT_TYPE_CAPTURE_POINT, Player::GetBGTeam(), HORDE, WorldPackets::Battleground::HordeCaptured, m_goInfo, m_goValue, WorldPackets::Battleground::Neutral, GameObjectValue::State, and GameObjectTemplate::type.
Referenced by AssaultCapturePoint().
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Transport.
Definition at line 905 of file GameObject.cpp.
References WorldObject::CleanupsBeforeDelete(), RemoveFromOwner(), and SetVignette().
Referenced by Transport::CleanupsBeforeDelete().
| void GameObject::ClearLoot | ( | ) |
Definition at line 3932 of file GameObject.cpp.
References m_loot, m_personalLoot, m_unique_users, and m_usetimes.
Referenced by Update().
|
inline |
Definition at line 327 of file GameObject.h.
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 4219 of file GameObject.cpp.
References UF::UpdateFieldHolder::ClearChangesMask(), Object::ClearValuesChangesMask(), m_gameObjectData, and BaseEntity::m_values.
|
private |
Definition at line 985 of file GameObject.cpp.
References _animKitId, BaseEntity::_Create(), BaseEntity::AddDynamicUpdateFieldValue(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddFlag(), Map::AddToMap(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddValue(), GameObjectTemplateAddon::AIAnimKitID, GameObjectAddon::AIAnimKitID, AIM_Initialize(), CreateObjectBits::AnimKit, GameObjectTemplate::AreaNameSet, GameObjectValue::AssaultTimer, ASSERT, AsUnderlyingType(), GameObjectValue::Building, GameObjectValue::CapturePoint, GameObjectTemplate::capturePoint, CreateGameObject(), CreateModel(), GameObjectTemplate::destructibleBuilding, GameObjectValue::DestructibleHitpoint, GameObjectTemplate::DestructibleModelRec, GameObjectTemplate::displayId, GameObjectTemplate::DoodadSetA, GameObjectTemplate::DoodadSetB, UF::GameObjectData::EnableDoodadSets, GameObjectTemplate::entry, GameObjectValue::FishingHole, CreateObjectBits::GameObject, GameObject, GAMEOBJECT_TYPE_CAPTURE_POINT, GAMEOBJECT_TYPE_CONTROL_ZONE, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_NEW_FLAG, GAMEOBJECT_TYPE_NEW_FLAG_DROP, GAMEOBJECT_TYPE_PHASEABLE_MO, GAMEOBJECT_TYPE_TRANSPORT, GAMEOBJECT_TYPE_TRAP, Map::GenerateLowGuid(), Map::GetDifficultyID(), ZoneScript::GetGameObjectEntry(), GetGameObjectOverride(), GetGOInfo(), Map::GetId(), DestructibleHitpoint::GetMaxHealth(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSpawnId(), Gigantic, GO_STATE_READY, GO_STATE_TRANSPORT_ACTIVE, GO_STATE_TRANSPORT_STOPPED, GameObjectValue::Health, GameObjectTemplate::HealthRec, Infinite, Map::Instanceable(), INVISIBILITY_TRAP, GameObjectAddon::invisibilityType, GameObjectAddon::InvisibilityValue, GameObjectTemplate::IsGiganticGameObject(), GameObjectTemplate::IsInfiniteGameObject(), GameObjectTemplate::IsLargeGameObject(), Position::IsPositionValid(), Large, GameObjectValue::LastTeamCapture, WorldObject::LastUsedScriptID, m_gameObjectData, m_goInfo, m_goTemplateAddon, m_goTypeImpl, m_goValue, WorldObject::m_invisibility, m_prevGoState, m_spawnId, m_stationaryPosition, WorldObject::m_stealth, m_stringIds, BaseEntity::m_updateFlag, BaseEntity::m_values, WorldObject::m_zoneScript, MAX_GAMEOBJECT_TYPE, GameObjectValue::MaxOpens, GameObjectTemplate::maxRestock, GameObjectTemplate::minRestock, UF::UpdateFieldHolder::ModifyValue(), GameObjectTemplate::name, WorldPackets::Battleground::Neutral, GameObjectAddon::ParentRotation, UF::GameObjectData::ParentRotation, GameObjectTemplate::phaseableMO, Position::Relocate(), RemoveFlag(), ReplaceAllFlags(), GameObjectTemplate::ScriptId, CreateObjectBits::ServerTime, WorldObject::setActive(), SetDisplayId(), Object::SetEntry(), SetFaction(), SetFlag(), SetGoAnimProgress(), SetGoArtKit(), SetGoState(), SetGoType(), SetLevel(), SetLinkedTrap(), SetLocalRotation(), WorldObject::SetMap(), WorldObject::SetName(), Object::SetObjectScale(), SetParentRotation(), SetRespawnCompatibilityMode(), BaseEntity::SetUpdateFieldValue(), SetVignette(), WorldObject::SetVisibilityDistanceOverride(), SetWorldEffectID(), WorldObject::SetZoneScript(), GameObjectTemplate::size, sObjectMgr, GameObjectTemplate::spell, GameObjectTemplate::SpellVisual1, UF::GameObjectData::SpellVisualID, sSpellMgr, GameObjectTemplate::startOpen, GameObjectValue::State, STEALTH_TRAP, GameObjectTemplate::stealthAffected, GameObjectTemplate::stealthed, GameObjectTemplate::StringId, TARGET_CHECK_ALLY, TARGET_CHECK_DEFAULT, TARGET_CHECK_ENEMY, TARGET_OBJECT_TYPE_UNIT, GameObjectValue::TargetSearcherCheckType, TC_LOG_ERROR, TEAM_NEUTRAL, Template, ObjectGuid::ToString(), GameObjectTemplate::transport, Transport, GameObjectValue::Trap, GameObjectTemplate::trap, GameObjectTemplate::type, UpdateCapturePoint(), WorldObject::UpdatePositionData(), urand(), QuaternionData::w, GameObjectTemplateAddon::WorldEffectID, GameObjectAddon::WorldEffectID, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by CreateGameObject(), and LoadFromDB().
|
static |
Definition at line 1264 of file GameObject.cpp.
References Create(), GameObject(), and sObjectMgr.
Referenced by Garrison::ActivateBuilding(), Create(), Garrison::Plot::CreateGameObject(), ArenaScript::CreateObject(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPersonalGameObject(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleDropFlag(), gobject_commandscript::HandleGameObjectAddCommand(), GarrisonGridLoader::LoadN(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), Battlefield::SpawnGameObject(), battleground_temple_of_kotmogu::SpawnOrb(), WorldObject::SummonGameObject(), and npc_bg_seething_shore_air_supplies_drop::WaypointPathEnded().
|
static |
Definition at line 1280 of file GameObject.cpp.
References GameObject(), and LoadFromDB().
Referenced by Transport::CreateGOPassenger(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), and gobject_commandscript::HandleGameObjectTurnCommand().
|
protected |
Definition at line 4640 of file GameObject.cpp.
References GameObjectModel::Create(), GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_PHASEABLE_MO, GAMEOBJECT_TYPE_SIEGEABLE_MO, GAMEOBJECT_TYPE_TRAPDOOR, GetGOInfo(), GetGoType(), GO_FLAG_MAP_OBJECT, m_model, GameObjectTemplate::NotLOSBlocking, SetFlag(), and sWorld.
Referenced by Transport::Create(), Create(), and UpdateModel().
| void GameObject::Delete | ( | ) |
Definition at line 1826 of file GameObject.cpp.
References WorldObject::AddObjectToRemoveList(), GAMEOBJECT_TYPE_CAPTURE_POINT, GAMEOBJECT_TYPE_TRANSPORT, GetGameObjectData(), GetGameObjectOverride(), BaseEntity::GetGUID(), WorldObject::GetMap(), Map::GetPoolData(), GetSpawnId(), GO_NOT_READY, GO_STATE_READY, m_goInfo, m_respawnCompatibilityMode, SpawnData::poolId, RemoveFromOwner(), ReplaceAllFlags(), SendGameObjectDespawn(), WorldObject::SendMessageToSet(), SetGoState(), SetLootState(), sPoolMgr, GameObjectTemplate::type, and WorldPackets::Battleground::CapturePointRemoved::Write().
Referenced by DespawnOrUnsummon(), OutdoorPvPSI::HandleCustomSpell(), go_empowering_blood_orb::HandleObjectUse(), instance_razorfen_downs::instance_razorfen_downs_InstanceMapScript::OnGameObjectCreate(), instance_naxxramas::instance_naxxramas_InstanceMapScript::OnGameObjectCreate(), go_najentus_spine::OnGossipHello(), go_sapphiron_birth::OnLootStateChanged(), Unit::RemoveGameObjectImpl(), go_razorscale_mole_machine::go_razorscale_mole_machineAI::Reset(), Update(), go_celestial_planetarium_access::UpdateAI(), go_twilight_portal::UpdateAI(), and Use().
|
static |
Definition at line 2081 of file GameObject.cpp.
References CharacterDatabase, LINKED_RESPAWN_CREATURE_TO_GO, LINKED_RESPAWN_GO_TO_CREATURE, LINKED_RESPAWN_GO_TO_GO, SpawnMetadata::mapId, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sMapMgr, sObjectMgr, SPAWN_TYPE_GAMEOBJECT, WORLD_DEL_EVENT_GAMEOBJECT, WORLD_DEL_GAMEOBJECT, WORLD_DEL_GAMEOBJECT_ADDON, WORLD_DEL_LINKED_RESPAWN, WORLD_DEL_LINKED_RESPAWN_MASTER, WORLD_DEL_SPAWNGROUP_MEMBER, and WorldDatabase.
Referenced by gobject_commandscript::HandleGameObjectDeleteCommand().
Definition at line 1818 of file GameObject.cpp.
References GameObject::PerPlayerState::Despawned, BaseEntity::GetGUID(), GetOrCreatePerPlayerStates(), GameTime::GetSystemTime(), Player::UpdateVisibilityOf(), and GameObject::PerPlayerState::ValidUntil.
Referenced by OnLootRelease(), and Use().
| void GameObject::DespawnOrUnsummon | ( | Milliseconds | delay = 0ms, |
| Seconds | forceRespawnTime = 0s |
||
| ) |
Definition at line 1797 of file GameObject.cpp.
References Delete(), m_despawnDelay, m_despawnRespawnTime, m_goData, SaveRespawnTime(), and SpawnData::spawntimesecs.
Referenced by ActivateObject(), battleground_seething_shore::HandleAssaultPoint(), Scripts::Pandaria::TheWanderingIsle::go_edict_of_temperance::OnGossipHello(), go_ahune_ice_stone::OnGossipSelect(), battleground_isle_of_conquest::OnStart(), go_ahune_ice_spear::Reset(), SetLootState(), Update(), go_caribou_trap::UpdateAI(), Use(), and npc_train_wrecker::npc_train_wreckerAI::VerifyTarget().
| void GameObject::EnableCollision | ( | bool | enable | ) |
Definition at line 4077 of file GameObject.cpp.
References m_model.
Referenced by AddToWorld(), SetGoState(), and SetLootState().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 433 of file GameObject.h.
| std::string const & GameObject::GetAIName | ( | ) | const |
Definition at line 900 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by GetDebugInfo().
| TeamId GameObject::GetControllingTeam | ( | ) | const |
Definition at line 4628 of file GameObject.cpp.
References GAMEOBJECT_TYPE_CONTROL_ZONE, GameObjectType::ControlZone::GetControllingTeam(), GetGoType(), m_goTypeImpl, and TEAM_NEUTRAL.
Referenced by npc_bg_silvershard_mines_mine_cart::HandleCapture(), battleground_deephaul_ravine::HandleMineCartCaptured(), npc_bg_silvershard_mines_mine_cart::JustAppeared(), battleground_silvershard_mines::OnMineCartCaptured(), battleground_deephaul_ravine::UpdateCartWorldStates(), and battleground_silvershard_mines::UpdateCartWorldStates().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 240 of file GameObject.h.
|
overridevirtual |
Reimplemented from BaseEntity.
Reimplemented in Transport.
Definition at line 4665 of file GameObject.cpp.
References GetAIName(), WorldObject::GetDebugInfo(), GetGoState(), GetScriptId(), and GetSpawnId().
Referenced by Transport::GetDebugInfo().
|
inline |
Definition at line 375 of file GameObject.h.
References GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GO_FLAG_DAMAGED, and GO_FLAG_DESTROYED.
Referenced by GetNameSetId(), ModifyHealth(), and BattlefieldTB::ProcessEvent().
|
inline |
Definition at line 400 of file GameObject.h.
Referenced by IsNeverVisibleFor().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 403 of file GameObject.h.
Referenced by Player::CanUseBattlegroundObject(), Spell::EffectGameObjectDamage(), go_wg_vehicle_teleporter::IsFriendly(), and go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello().
Definition at line 1859 of file GameObject.cpp.
References Loot::FillLoot(), WorldObject::GetAreaId(), ItemBonusMgr::GetContextForPlayer(), BaseEntity::GetGUID(), WorldObject::GetMap(), Loot::isLooted(), LOOT_FISHING, LOOT_MODE_DEFAULT, LootTemplates_Fishing, and sAreaTableStore.
Referenced by Use().
Definition at line 1882 of file GameObject.cpp.
References Loot::FillLoot(), WorldObject::GetAreaId(), ItemBonusMgr::GetContextForPlayer(), BaseEntity::GetGUID(), WorldObject::GetMap(), Loot::isLooted(), LOOT_FISHING_JUNK, LOOT_MODE_JUNK_FISH, LootTemplates_Fishing, and sAreaTableStore.
Referenced by Use().
| ObjectGuid const & GameObject::GetFlagCarrierGUID | ( | ) | const |
Definition at line 4551 of file GameObject.cpp.
References ObjectGuid::Empty, GAMEOBJECT_TYPE_NEW_FLAG, GameObjectType::NewFlag::GetCarrierGUID(), GetGoType(), and m_goTypeImpl.
| FlagState GameObject::GetFlagState | ( | ) | const |
Definition at line 4539 of file GameObject.cpp.
References GAMEOBJECT_TYPE_NEW_FLAG, GetGoType(), GameObjectType::NewFlag::GetState(), and m_goTypeImpl.
| time_t GameObject::GetFlagTakenFromBaseTime | ( | ) | const |
Definition at line 4563 of file GameObject.cpp.
References GAMEOBJECT_TYPE_NEW_FLAG, GetGoType(), GameObjectType::NewFlag::GetTakenFromBaseTime(), and m_goTypeImpl.
Referenced by battleground_twin_peaks::OnFlagStateChange(), and battleground_warsong_gulch::OnFlagStateChange().
|
inline |
Definition at line 212 of file GameObject.h.
Referenced by Delete(), GetScriptId(), GetSpawnTrackingStateDataForPlayer(), UF::ViewerDependentValue< UF::GameObjectData::StateWorldEffectsQuestObjectiveIDTag >::GetValue(), gobject_commandscript::HandleGameObjectInfoCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), SetGoArtKit(), and Update().
| GameObjectOverride const * GameObject::GetGameObjectOverride | ( | ) | const |
Definition at line 1770 of file GameObject.cpp.
References m_goTemplateAddon, m_spawnId, and sObjectMgr.
Referenced by Transport::Create(), Create(), Delete(), and Update().
|
inline |
Definition at line 296 of file GameObject.h.
Referenced by SaveToDB(), Update(), and Use().
|
inline |
Definition at line 294 of file GameObject.h.
Referenced by SaveToDB().
|
inline |
Definition at line 209 of file GameObject.h.
Referenced by GameObjectType::ControlZone::ActivateObject(), ActivateToQuest(), AssaultCapturePoint(), BaseEntity::BuildMovementUpdate(), GameObjectType::ControlZone::CalculateTimeNeeded(), Spell::CheckCast(), GameObjectType::ControlZone::ControlZone(), Create(), Garrison::Plot::CreateGameObject(), CreateModel(), Spell::EffectOpenLock(), Transport::EnableMovement(), Player::GetGameObjectIfCanInteractWith(), Player::GetGossipMenuForSource(), GetInteractionDistance(), GetLevelForTarget(), GameObjectType::Transport::GetMapIdForSpawning(), Transport::GetMapIdForSpawning(), GameObjectType::ControlZone::GetMaxHordeValue(), GameObjectType::ControlZone::GetMinAllianceValue(), GetScriptId(), GetSpellForLock(), GameObjectType::ControlZone::GetStartingValue(), UF::ViewerDependentValue< UF::GameObjectData::FlagsTag >::GetValue(), go_twilight_portal::go_twilight_portal(), WorldSession::HandleAlterAppearance(), OutdoorPvPSI::HandleCustomSpell(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), GameObjectType::ControlZone::HandleHeartbeat(), GameObjectType::ControlZone::HandleUnitEnterExit(), HasConditionalInteraction(), IsAtInteractDistance(), IsAtInteractDistance(), IsDestructibleBuilding(), IsNeverVisibleFor(), IsTransport(), LoadFromDB(), Transport::LoadStaticPassengers(), ModifyHealth(), battleground_deephaul_ravine::OnFlagStateChange(), battleground_arathi_basin::OnGameObjectCreate(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::OnGameObjectCreate(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::OnGameObjectRemove(), go_simon_cluster::go_simon_clusterAI::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipHello(), OnLootRelease(), go_celestial_planetarium_access::OnReportUse(), Trinity::NearestGameObjectFishingHole::operator()(), Trinity::GameObjectFocusCheck::operator()(), Trinity::GameObjectInRangeCheck::operator()(), RemoveFromOwner(), go_vazruden_liquid_fire::Reset(), SaveToDB(), GameObjectType::ControlZone::SearchTargets(), SetDestructibleState(), SetLootState(), GameObjectType::NewFlag::SetState(), GameObjectType::Transport::Transport(), GameObjectType::Transport::Update(), Update(), Transport::Update(), UpdateCapturePoint(), Player::UpdateVisibleObjectInteractions(), Use(), and UseDoorOrButton().
|
inline |
Definition at line 290 of file GameObject.h.
Referenced by Map::_ScriptProcessDoor(), go_suppression_device::Activate(), AddToWorld(), boss_keristrasza::CheckContainmentSpheres(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), GetDebugInfo(), GetGoStateFor(), debug_commandscript::HandleDebugTransportCommand(), go_bg_seething_shore_azerite::OnCapturePointAssaulted(), go_av_capturable_object::OnGossipHello(), go_ioc_capturable_object::OnGossipHello(), go_sota_capturable_object::OnGossipHello(), SaveToDB(), SetGoState(), SetLootState(), go_mammoth_trap::SpellHit(), SwitchDoorOrButton(), GameObjectType::Transport::Update(), Update(), Transport::Update(), go_suppression_device::UpdateAI(), and UpdateModel().
| GOState GameObject::GetGoStateFor | ( | ObjectGuid const & | viewer | ) | const |
Definition at line 4016 of file GameObject.cpp.
References GetGoState(), m_perPlayerState, and Trinity::Containers::MapGetValuePtr().
Referenced by UF::ViewerDependentValue< UF::GameObjectData::StateTag >::GetValue().
|
inline |
Definition at line 288 of file GameObject.h.
Referenced by Map::_ScriptProcessDoor(), ActivateObject(), ActivateToQuest(), AddToWorld(), Spell::CheckEffectTarget(), Garrison::Plot::CreateGameObject(), CreateModel(), WorldSession::DoLootRelease(), GetControllingTeam(), GetFlagCarrierGUID(), GetFlagState(), GetFlagTakenFromBaseTime(), Player::GetGameObjectIfCanInteractWith(), GetInteractionDistance(), GetLevelForTarget(), GetNameSetId(), UF::ViewerDependentValue< UF::GameObjectData::FlagsTag >::GetValue(), WorldSession::HandleAutostoreLootItemOpcode(), HasConditionalInteraction(), IsAtInteractDistance(), WorldObject::IsValidAttackTarget(), battleground_battle_for_gilneas::OnGameObjectCreate(), battleground_strand_of_the_ancients::OnGameObjectCreate(), OutdoorPvPHP::OnGameObjectCreate(), go_resonite_cask::go_resonite_caskAI::OnGossipHello(), go_gilded_brazier::go_gilded_brazierAI::OnGossipHello(), go_tablet_of_the_seven::go_tablet_of_the_sevenAI::OnGossipHello(), go_blood_filled_orb::go_blood_filled_orbAI::OnGossipHello(), OnLootRelease(), Trinity::NearestGameObjectTypeInObjectRangeCheck::operator()(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), Player::PrepareGossipMenu(), Map::ScriptsProcess(), Player::SendQuestGiverStatusMultiple(), SetDestructibleState(), SetLootState(), ToTransportBase(), Update(), UpdateCapturePoint(), UpdateModel(), Player::UpdateVisibleObjectInteractions(), and Use().
|
inline |
Definition at line 213 of file GameObject.h.
Referenced by WorldSession::DoLootRelease(), and misc_commandscript::HandleDamageGoCommand().
| GuidUnorderedSet const * GameObject::GetInsidePlayers | ( | ) | const |
Definition at line 4575 of file GameObject.cpp.
References m_goTypeImpl.
Referenced by battleground_silvershard_mines::HandleProgressEvent(), battleground_deephaul_ravine::HandleProgressEvent(), HPControlZoneHandler::HandleProgressEventAlliance(), TFControlZoneHandler::HandleProgressEventAlliance(), HPControlZoneHandler::HandleProgressEventHorde(), TFControlZoneHandler::HandleProgressEventHorde(), and npc_bg_silvershard_mines_mine_cart::JustAppeared().
| float GameObject::GetInteractionDistance | ( | ) | const |
Definition at line 4276 of file GameObject.cpp.
References CONTACT_DISTANCE, GAMEOBJECT_TYPE_AREADAMAGE, GAMEOBJECT_TYPE_BARBER_CHAIR, GAMEOBJECT_TYPE_BINDER, GAMEOBJECT_TYPE_CAMERA, GAMEOBJECT_TYPE_CHAIR, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_DUNGEON_DIFFICULTY, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_FLAGDROP, GAMEOBJECT_TYPE_FLAGSTAND, GAMEOBJECT_TYPE_GUILD_BANK, GAMEOBJECT_TYPE_MAILBOX, GAMEOBJECT_TYPE_MAP_OBJECT, GAMEOBJECT_TYPE_MINI_GAME, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_TEXT, GetGOInfo(), GetGoType(), and INTERACTION_DISTANCE.
Referenced by IsAtInteractDistance().
| std::span< int32 const > GameObject::GetLabels | ( | ) | const |
Definition at line 3701 of file GameObject.cpp.
References Object::GetEntry(), and sDB2Manager.
Referenced by HasLabel().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2263 of file GameObject.cpp.
References GAMEOBJECT_TYPE_TRAP, GetGOInfo(), GetGoType(), WorldObject::GetOwner(), sDB2Manager, Object::ToPlayer(), and Object::ToUnit().
| GameObject * GameObject::GetLinkedTrap | ( | ) |
Definition at line 4158 of file GameObject.cpp.
References ObjectAccessor::GetGameObject(), and m_linkedTrap.
Referenced by Spell::EffectSummonObjectWild(), Spell::EffectSummonPersonalGameObject(), Spell::EffectTransmitted(), RemoveFromWorld(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), TriggeringLinkedGameObject(), and Update().
|
inline |
Definition at line 224 of file GameObject.h.
Referenced by GetWorldRotation().
Reimplemented from Object.
Definition at line 4147 of file GameObject.cpp.
References BaseEntity::GetGUID(), m_loot, m_personalLoot, and Trinity::Containers::MapGetValuePtr().
Referenced by IsLootAllowedFor(), and Use().
|
inline |
Definition at line 312 of file GameObject.h.
Referenced by Use().
|
inline |
Definition at line 308 of file GameObject.h.
Referenced by ActivateToQuest(), AddToWorld(), UpdateModel(), and Use().
|
overridevirtual |
Implements BaseEntity.
Definition at line 3686 of file GameObject.cpp.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), and sObjectMgr.
| uint8 GameObject::GetNameSetId | ( | ) | const |
Definition at line 4044 of file GameObject.cpp.
References GameObjectTemplate::destructibleBuilding, GameObjectTemplate::DestructibleModelRec, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_GARRISON_BUILDING, GAMEOBJECT_TYPE_GARRISON_PLOT, GAMEOBJECT_TYPE_PHASEABLE_MO, GetDestructibleState(), GetGoType(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GO_DESTRUCTIBLE_REBUILDING, m_gameObjectData, m_goInfo, and sDestructibleModelDataStore.
|
private |
Definition at line 4588 of file GameObject.cpp.
References m_perPlayerState.
Referenced by DespawnForPlayer(), and SetGoStateFor().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 251 of file GameObject.h.
Referenced by Unit::AddGameObject(), WorldSession::DoLootRelease(), SmartScript::GetTargets(), WorldSession::HandleAutostoreLootItemOpcode(), IsAlwaysVisibleFor(), spell_gen_seaforium_blast::Load(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), RemoveFromOwner(), Unit::RemoveGameObject(), Update(), and Use().
|
inline |
Definition at line 225 of file GameObject.h.
Referenced by BaseEntity::BuildMovementUpdate().
|
inline |
Definition at line 301 of file GameObject.h.
Referenced by BaseEntity::BuildMovementUpdate().
| std::span< uint32 const > GameObject::GetPauseTimes | ( | ) | const |
Definition at line 4225 of file GameObject.cpp.
References m_goTypeImpl.
|
inline |
Definition at line 386 of file GameObject.h.
Referenced by gobject_commandscript::HandleGameObjectInfoCommand().
|
inline |
Definition at line 273 of file GameObject.h.
Referenced by gobject_commandscript::HandleGameObjectTargetCommand().
| Position GameObject::GetRespawnPosition | ( | ) | const |
Definition at line 4239 of file GameObject.cpp.
References Position::GetPosition(), m_goData, and SpawnData::spawnPoint.
Referenced by Map::GameObjectRespawnRelocation().
|
inline |
Definition at line 260 of file GameObject.h.
| time_t GameObject::GetRespawnTimeEx | ( | ) | const |
Definition at line 2281 of file GameObject.cpp.
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by gobject_commandscript::HandleGameObjectTargetCommand().
| uint32 GameObject::GetScriptId | ( | ) | const |
Definition at line 3631 of file GameObject.cpp.
References gameObjectData, GetGameObjectData(), GetGOInfo(), and GameObjectTemplate::ScriptId.
Referenced by GetDebugInfo(), ScriptMgr::GetGameObjectAI(), FactorySelector::GetSelectedAIId(), WorldSession::HandleGossipSelectOptionOpcode(), ScriptMgr::OnAddCreaturePassenger(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnRelocate(), ScriptMgr::OnRemovePassenger(), and ScriptMgr::OnTransportUpdate().
|
inline |
Definition at line 218 of file GameObject.h.
Referenced by Map::AddToActive(), Create(), Delete(), GetDebugInfo(), SmartScript::GetScript(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), SmartScript::IsSmart(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), Map::RemoveFromActive(), Update(), Player::UpdateVisibleObjectInteractions(), and Use().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3668 of file GameObject.cpp.
References AsUnderlyingType(), GetGameObjectData(), and Player::GetSpawnTrackingStateByObjectives().
Referenced by UF::ViewerDependentValue< UF::GameObjectData::SpawnTrackingStateAnimIDTag >::GetValue(), UF::ViewerDependentValue< UF::GameObjectData::StateWorldEffectIDsTag >::GetValue(), UF::ViewerDependentValue< UF::GameObjectData::StateSpellVisualIDTag >::GetValue(), and UF::ViewerDependentValue< UF::GameObjectData::SpawnTrackingStateAnimKitIDTag >::GetValue().
Definition at line 4718 of file GameObject.cpp.
References GetGOInfo(), GameObjectTemplate::GetLockId(), WorldObject::GetMap(), Player::GetSpellMap(), LockEntry::Index, LOCK_KEY_SKILL, LOCK_KEY_SPELL, MAX_LOCK_CASE, LockEntry::Skill, sLockStore, SPELL_EFFECT_OPEN_LOCK, sSpellMgr, and LockEntry::Type.
Referenced by IsAtInteractDistance().
|
inline |
Definition at line 258 of file GameObject.h.
Referenced by Unit::AddGameObject(), Unit::RemoveGameObjectImpl(), and Update().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 415 of file GameObject.h.
Referenced by GameObjectType::Transport::Update().
|
inline |
Definition at line 395 of file GameObject.h.
Referenced by InheritStringIds(), and SaveToDB().
|
inline |
Definition at line 340 of file GameObject.h.
Referenced by Use().
|
inline |
Definition at line 210 of file GameObject.h.
Referenced by ActivateObject(), and Use().
|
inline |
Definition at line 333 of file GameObject.h.
Referenced by Use().
|
inline |
Definition at line 332 of file GameObject.h.
Referenced by WorldSession::DoLootRelease(), and go_shallow_grave::go_shallow_graveAI::OnGossipHello().
|
inline |
Definition at line 439 of file GameObject.h.
Referenced by BeforeVisibilityDestroy< GameObject >().
|
inline |
Definition at line 436 of file GameObject.h.
Referenced by BaseEntity::BuildMovementUpdate().
| QuaternionData GameObject::GetWorldRotation | ( | ) | const |
Definition at line 3743 of file GameObject.cpp.
References GetLocalRotation(), WorldObject::GetTransport(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by IsAtInteractDistance(), WorldObject::SendPlayOrphanSpellVisual(), and WorldObject::SendPlayOrphanSpellVisual().
| void GameObject::HandleCustomTypeCommand | ( | GameObjectTypeBase::CustomCommand const & | command | ) | const |
Definition at line 4622 of file GameObject.cpp.
References GameObjectTypeBase::CustomCommand::Execute(), and m_goTypeImpl.
Referenced by BattlefieldWG::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), and Use().
| bool GameObject::HasConditionalInteraction | ( | ) | const |
Definition at line 2310 of file GameObject.cpp.
References GAMEOBJECT_TYPE_AURA_GENERATOR, Object::GetEntry(), GetGOInfo(), GetGoType(), and sObjectMgr.
|
inline |
Definition at line 282 of file GameObject.h.
References flags.
Referenced by npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), Player::IsInAreaTrigger(), go_bg_seething_shore_azerite::OnCapturePointAssaulted(), go_blackened_urn::go_blackened_urnAI::OnGossipHello(), go_mimiron_hardmode_button::go_mimiron_hardmode_buttonAI::OnGossipHello(), go_ioc_capturable_object::OnGossipHello(), go_sota_capturable_object::OnGossipHello(), go_celestial_planetarium_access::OnReportUse(), GameObjectType::ControlZone::Update(), and Use().
|
overridevirtual |
Reimplemented from Object.
Definition at line 2160 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
| bool GameObject::HasLabel | ( | int32 | gameobjectLabel | ) | const |
Definition at line 3696 of file GameObject.cpp.
References advstd::ranges::contains, and GetLabels().
|
inline |
Definition at line 313 of file GameObject.h.
|
inline |
Definition at line 343 of file GameObject.h.
Referenced by IsLootAllowedFor().
|
overridevirtual |
Reimplemented from Object.
Definition at line 2155 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
| bool GameObject::HasStringId | ( | std::string_view | id | ) | const |
Definition at line 3649 of file GameObject.cpp.
References m_stringIds.
Referenced by battleground_isle_of_conquest::OnGameObjectCreate(), and Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()().
| void GameObject::InheritStringIds | ( | GameObject const * | parent | ) |
Definition at line 3640 of file GameObject.cpp.
References GetStringId(), m_stringIds, Script, and SetScriptStringId().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2220 of file GameObject.cpp.
References BaseEntity::GetGUID(), WorldObject::GetOwner(), GetOwnerGUID(), WorldObject::IsAlwaysVisibleFor(), IsDestructibleBuilding(), WorldObject::IsFriendlyTo(), IsTransport(), and Object::ToUnit().
| bool GameObject::IsAtInteractDistance | ( | Player const * | player, |
| SpellInfo const * | spell = nullptr |
||
| ) | const |
Definition at line 4673 of file GameObject.cpp.
References GAMEOBJECT_TYPE_SPELL_FOCUS, GetGOInfo(), GetGoType(), GetInteractionDistance(), SpellInfo::GetMaxRange(), GetSpellForLock(), IsAtInteractDistance(), Position::IsInDist(), SpellInfo::IsPositive(), and sGameObjectDisplayInfoStore.
| bool GameObject::IsAtInteractDistance | ( | Position const & | pos, |
| float | radius | ||
| ) | const |
Definition at line 4689 of file GameObject.cpp.
References Position::GetExactDist(), GetGOInfo(), Object::GetObjectScale(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetWorldRotation(), sGameObjectDisplayInfoStore, QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by IsAtInteractDistance(), and IsWithinDistInMap().
| bool GameObject::IsDestructibleBuilding | ( | ) | const |
Definition at line 2175 of file GameObject.cpp.
References GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GetGOInfo(), and GameObjectTemplate::type.
Referenced by misc_commandscript::HandleDamageGoCommand(), IsAlwaysVisibleFor(), and battleground_isle_of_conquest::OnGameObjectCreate().
| bool GameObject::IsFullyLooted | ( | ) | const |
Definition at line 3944 of file GameObject.cpp.
References m_loot, and m_personalLoot.
Referenced by WorldSession::DoLootRelease().
| bool GameObject::IsInRange | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | radius | ||
| ) | const |
Check if the distance between the 2 objects is 0, can happen if both objects are on the same position. The code below this check wont crash if dist is 0 because 0/0 in float operations is valid, and returns infinite
Definition at line 3605 of file GameObject.cpp.
References GameObjectTemplate::displayId, GameObjectDisplayInfoEntry::GeoBoxMax, GameObjectDisplayInfoEntry::GeoBoxMin, Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::IsWithinDist3d(), m_goInfo, sGameObjectDisplayInfoStore, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by Trinity::GameObjectInRangeCheck::operator()().
|
inline |
Definition at line 323 of file GameObject.h.
Referenced by Spell::EffectOpenLock().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2246 of file GameObject.cpp.
References BaseEntity::GetGUID(), WorldObject::IsInvisibleDueToDespawn(), isSpawned(), m_perPlayerState, and Trinity::Containers::MapGetValuePtr().
| bool GameObject::IsLootAllowedFor | ( | Player const * | player | ) | const |
Definition at line 4131 of file GameObject.cpp.
References BaseEntity::GetGUID(), GetLootForPlayer(), HasLootRecipient(), and m_tapList.
Referenced by UF::ViewerDependentValue< UF::GameObjectData::FlagsTag >::GetValue().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2203 of file GameObject.cpp.
References GetDisplayId(), GetGOInfo(), WorldObject::IsNeverVisibleFor(), and m_goTypeImpl.
|
inline |
Definition at line 265 of file GameObject.h.
Referenced by npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), SmartGameObjectAI::InitializeAI(), IsInvisibleDueToDespawn(), dummy_dragonAI::OpenPortal(), Trinity::NearestGameObjectFishingHole::operator()(), Trinity::NearestGameObjectEntryInObjectRangeCheck::operator()(), Trinity::NearestUnspawnedGameObjectEntryInObjectRangeCheck::operator()(), Trinity::GameObjectFocusCheck::operator()(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), Refresh(), Map::ScriptsProcess(), and Update().
|
inline |
Definition at line 271 of file GameObject.h.
| bool GameObject::IsTransport | ( | ) | const |
Definition at line 2165 of file GameObject.cpp.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GetGOInfo(), and GameObjectTemplate::type.
Referenced by AddToWorld(), IsAlwaysVisibleFor(), SetGoState(), and UpdateModel().
| bool GameObject::IsWithinDistInMap | ( | Player const * | player | ) | const |
Definition at line 4713 of file GameObject.cpp.
References WorldObject::InSamePhase(), IsAtInteractDistance(), and WorldObject::IsInMap().
Referenced by WorldSession::DoLootRelease(), Player::GetGameObjectIfCanInteractWith(), and WorldSession::HandleAutostoreLootItemOpcode().
| bool WorldObject::IsWithinDistInMap | ( | WorldObject const * | obj, |
| float | dist2compare, | ||
| bool | is3D = true, |
||
| bool | incOwnRadius = true, |
||
| bool | incTargetRadius = true |
||
| ) | const |
Definition at line 362 of file Object.cpp.
| bool GameObject::LoadFromDB | ( | ObjectGuid::LowType | spawnId, |
| Map * | map, | ||
| bool | addToMap, | ||
| bool | = true |
||
| ) |
Definition at line 2007 of file GameObject.cpp.
References GameObjectData::animprogress, GameObjectData::artKit, AsUnderlyingType(), Create(), SpawnGroupTemplateData::flags, GameTime::GetGameTime(), GetGOInfo(), Map::GetGORespawnTime(), WorldObject::GetMap(), WorldObject::GetPhaseShift(), GO_FLAG_NODESPAWN, GameObjectData::goState, SpawnData::id, PhasingHandler::InitDbPhaseShift(), PhasingHandler::InitDbVisibleMapId(), m_gameObjectData, m_goData, m_respawnCompatibilityMode, m_respawnDelayTime, m_respawnTime, m_spawnedByDefault, m_spawnId, m_stringIds, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, Map::RemoveRespawnTime(), GameObjectData::rotation, SetFlag(), BaseEntity::SetUpdateFieldValue(), sObjectMgr, Spawn, SPAWN_TYPE_GAMEOBJECT, SPAWNGROUP_FLAG_COMPATIBILITY_MODE, SpawnMetadata::spawnGroupData, SpawnData::spawnPoint, SpawnData::spawntimesecs, SpawnMetadata::spawnTrackingQuestObjectives, UF::GameObjectData::StateWorldEffectsQuestObjectiveID, SpawnData::StringId, TC_LOG_ERROR, TC_LOG_WARN, and SpawnData::terrainSwapMap.
Referenced by CreateGameObjectFromDB(), Map::DoRespawn(), and Map::SpawnGroupSpawn().
| GameObject * GameObject::LookupFishingHoleAround | ( | float | range | ) |
Definition at line 2412 of file GameObject.cpp.
References Cell::VisitGridObjects().
Referenced by Use().
| bool GameObject::MeetsInteractCondition | ( | Player const * | user | ) | const |
Definition at line 4583 of file GameObject.cpp.
References GameObjectTemplate::GetConditionID1(), ConditionMgr::IsPlayerMeetingCondition(), and m_goInfo.
Referenced by CanActivateForPlayer(), and Use().
| void GameObject::ModifyHealth | ( | int32 | change, |
| WorldObject * | attackerOrHealer = nullptr, |
||
| uint32 | spellId = 0 |
||
| ) |
Definition at line 3760 of file GameObject.cpp.
References GameObjectValue::Building, WorldPackets::GameObject::DestructibleBuildingDamage::Caster, WorldPackets::GameObject::DestructibleBuildingDamage::Damage, DestructibleHitpoint::DamagedNumHits, GameObjectTemplate::DamageEvent, GameObjectValue::DestructibleHitpoint, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetDestructibleState(), GetGOInfo(), BaseEntity::GetGUID(), DestructibleHitpoint::GetMaxHealth(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GameObjectValue::Health, m_goValue, WorldPackets::GameObject::DestructibleBuildingDamage::Owner, SetDestructibleState(), SetGoAnimProgress(), WorldPackets::GameObject::DestructibleBuildingDamage::SpellID, WorldPackets::GameObject::DestructibleBuildingDamage::Target, GameEvents::Trigger(), and WorldPackets::GameObject::DestructibleBuildingDamage::Write().
Referenced by Spell::EffectGameObjectDamage(), Spell::EffectGameObjectRepair(), and misc_commandscript::HandleDamageGoCommand().
| void GameObject::OnLootRelease | ( | Player * | looter | ) |
Definition at line 3956 of file GameObject.cpp.
References UpdateData::BuildPacket(), BuildValuesUpdateForPlayerWithMask(), GameObjectTemplate::chest, GameObjectTemplate::chestPersonalLoot, GameObjectTemplate::chestRestockTime, DespawnForPlayer(), UF::ObjectData::DynamicFlags, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GATHERING_NODE, UF::HasChangesMask< Bits >::GetChangesMask(), GetGOInfo(), GetGoType(), WorldLocation::GetMapId(), GO_STATE_ACTIVE, GameObjectTemplate::IsDespawnAtAction(), m_respawnDelayTime, UF::HasChangesMask< Bits >::MarkChanged(), Player::SendDirectMessage(), and SetGoStateFor().
Referenced by WorldSession::DoLootRelease().
| void GameObject::Refresh | ( | ) |
Definition at line 1781 of file GameObject.cpp.
References Map::AddToMap(), WorldObject::GetMap(), isSpawned(), m_respawnTime, and m_spawnedByDefault.
Referenced by go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello().
|
inline |
Definition at line 416 of file GameObject.h.
Referenced by Transport::CreateGOPassenger(), and TransportBase::UpdatePassengerPosition().
|
inline |
Definition at line 417 of file GameObject.h.
|
inline |
Definition at line 284 of file GameObject.h.
References flags, UF::GameObjectData::Flags, and m_gameObjectData.
Referenced by go_suppression_device::Activate(), ActivateObject(), Create(), BfWGGameObjectBuilding::Destroyed(), battleground_strand_of_the_ancients::OnGameObjectCreate(), instance_magisters_terrace::instance_magisters_terrace_InstanceMapScript::OnGameObjectCreate(), instance_ahnkahet::instance_ahnkahet_InstanceScript::OnGameObjectCreate(), instance_gundrak::instance_gundrak_InstanceMapScript::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), instance_naxxramas::instance_naxxramas_InstanceMapScript::OnGameObjectCreate(), instance_nexus::instance_nexus_InstanceMapScript::OnGameObjectCreate(), instance_halls_of_stone::instance_halls_of_stone_InstanceMapScript::OnGameObjectCreate(), spell_alexstrasza_gift_beam_visual::OnRemove(), battleground_isle_of_conquest::OnStart(), ResetDoorOrButton(), SetDestructibleState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetTeleporterState(), SwitchDoorOrButton(), Update(), and UpdateModel().
|
private |
Definition at line 914 of file GameObject.cpp.
References ASSERT, ObjectGuid::Empty, GetGOInfo(), BaseEntity::GetGUID(), GetOwnerGUID(), ObjectAccessor::GetUnit(), m_spellId, SetOwnerGUID(), TC_LOG_DEBUG, ObjectGuid::ToString(), and Position::ToString().
Referenced by CleanupsBeforeDelete(), Delete(), RemoveFromWorld(), and Use().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 960 of file GameObject.cpp.
References GetLinkedTrap(), WorldObject::GetMap(), Map::GetObjectsStore(), BaseEntity::IsInWorld(), m_model, m_spawnId, WorldObject::m_zoneScript, Trinity::Containers::MultimapErasePair(), ZoneScript::OnGameObjectRemove(), TypeListContainer< UnderlyingContainer, Types >::Remove(), RemoveFromOwner(), WorldObject::RemoveFromWorld(), and Map::RemoveGameObjectModel().
Referenced by Map::RemoveFromMap(), and Transport::TeleportPassengersAndHideTransport().
|
inline |
Definition at line 316 of file GameObject.h.
|
inline |
Definition at line 285 of file GameObject.h.
References flags, UF::GameObjectData::Flags, and m_gameObjectData.
Referenced by Transport::Create(), Create(), Delete(), Update(), and Use().
| void GameObject::ResetDoorOrButton | ( | ) |
Definition at line 2421 of file GameObject.cpp.
References GO_FLAG_IN_USE, GO_JUST_DEACTIVATED, GO_READY, m_cooldownTime, m_lootState, m_prevGoState, RemoveFlag(), SetGoState(), and SetLootState().
Referenced by ActivateObject(), FrozenThroneResetWorker::operator()(), Update(), and npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI().
|
inline |
Definition at line 317 of file GameObject.h.
References LOOT_MODE_DEFAULT.
Referenced by GameObject().
| void GameObject::Respawn | ( | ) |
Definition at line 2301 of file GameObject.cpp.
References GameTime::GetGameTime(), WorldObject::GetMap(), m_respawnTime, m_spawnedByDefault, m_spawnId, Map::Respawn(), and SPAWN_TYPE_GAMEOBJECT.
Referenced by Trinity::RespawnDo::operator()().
| void GameObject::SaveRespawnTime | ( | uint32 | forceDelay = 0 | ) |
Definition at line 2184 of file GameObject.cpp.
References Trinity::ComputeGridCoord(), Object::GetEntry(), GameTime::GetGameTime(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), m_goData, m_respawnCompatibilityMode, m_respawnTime, m_spawnedByDefault, m_spawnId, RespawnInfo::respawnTime, Map::SaveRespawnInfoDB(), Map::SaveRespawnTime(), SPAWN_TYPE_GAMEOBJECT, RespawnInfo::spawnId, and RespawnInfo::type.
Referenced by DespawnOrUnsummon(), and Update().
| void GameObject::SaveToDB | ( | ) |
Definition at line 1905 of file GameObject.cpp.
References WorldLocation::GetMapId(), WorldObject::GetTransport(), m_spawnId, SaveToDB(), sObjectMgr, SpawnData::spawnDifficulties, and TC_LOG_ERROR.
Referenced by SaveToDB().
| void GameObject::SaveToDB | ( | uint32 | mapid, |
| std::vector< Difficulty > const & | spawnDifficulties | ||
| ) |
Definition at line 1924 of file GameObject.cpp.
References GameObjectData::animprogress, GameObjectData::artKit, ASSERT, WorldObject::GetDBPhase(), Object::GetEntry(), GetGoAnimProgress(), GetGoArtKit(), GetGOInfo(), GetGoState(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetStringId(), GameObjectData::goState, SpawnData::id, m_localRotation, m_respawnDelayTime, m_spawnedByDefault, m_spawnId, SpawnMetadata::mapId, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, Position::Relocate(), GameObjectData::rotation, SpawnData::scriptId, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setNull(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sObjectMgr, Spawn, SpawnData::spawnDifficulties, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnPoint, SpawnData::spawntimesecs, SpawnData::terrainSwapMap, QuaternionData::w, WORLD_DEL_GAMEOBJECT, WORLD_INS_GAMEOBJECT, WorldDatabase, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
| void GameObject::SendCustomAnim | ( | uint32 | anim | ) |
Definition at line 3597 of file GameObject.cpp.
References WorldPackets::GameObject::GameObjectCustomAnim::CustomAnim, BaseEntity::GetGUID(), WorldPackets::GameObject::GameObjectCustomAnim::ObjectGUID, WorldObject::SendMessageToSet(), and WorldPackets::GameObject::GameObjectCustomAnim::Write().
Referenced by ActivateObject(), battleground_seething_shore::HandleAssaultPoint(), HPControlZoneHandler::HandleNeutralEvent(), HPControlZoneHandler::HandleProgressEventAlliance(), HPControlZoneHandler::HandleProgressEventHorde(), go_gong::go_gongAI::OnGossipHello(), Update(), go_suppression_device::UpdateAI(), UpdateCapturePoint(), and Use().
| void GameObject::SendGameObjectDespawn | ( | ) |
Definition at line 1852 of file GameObject.cpp.
References BaseEntity::GetGUID(), WorldPackets::GameObject::GameObjectDespawn::ObjectGUID, WorldObject::SendMessageToSet(), and WorldPackets::GameObject::GameObjectDespawn::Write().
| void GameObject::SetAnimKitId | ( | uint16 | animKitId, |
| bool | oneshot | ||
| ) |
Definition at line 4330 of file GameObject.cpp.
References _animKitId, CreateObjectBits::AnimKit, WorldPackets::GameObject::GameObjectActivateAnimKit::AnimKitID, BaseEntity::GetGUID(), BaseEntity::m_updateFlag, WorldPackets::GameObject::GameObjectActivateAnimKit::Maintain, WorldPackets::GameObject::GameObjectActivateAnimKit::ObjectGUID, sAnimKitStore, WorldObject::SendMessageToSet(), and WorldPackets::GameObject::GameObjectActivateAnimKit::Write().
Referenced by ActivateObject(), and battleground_seething_shore::HandleAssaultPoint().
| void GameObject::SetDestructibleState | ( | GameObjectDestructibleState | state, |
| WorldObject * | attackerOrHealer = nullptr, |
||
| bool | setHealth = false |
||
| ) |
Definition at line 3809 of file GameObject.cpp.
References AI(), ASSERT, GameObjectValue::Building, GameObjectAI::Damaged(), GameObjectTemplate::DamagedEvent, DestructibleHitpoint::DamagedNumHits, GameObjectAI::Destroyed(), GameObjectTemplate::DestroyedEvent, GameObjectTemplate::destructibleBuilding, GameObjectValue::DestructibleHitpoint, GameObjectTemplate::DestructibleModelRec, GameObjectTemplate::displayId, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GetGOInfo(), GetGoType(), DestructibleHitpoint::GetMaxHealth(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GO_DESTRUCTIBLE_REBUILDING, GO_FLAG_DAMAGED, GO_FLAG_DESTROYED, GameObjectValue::Health, m_goInfo, m_goValue, GameObjectTemplate::RebuildingEvent, RemoveFlag(), sDestructibleModelDataStore, SetDisplayId(), SetFlag(), SetGoAnimProgress(), and GameEvents::Trigger().
Referenced by Spell::EffectGameObjectSetDestructionState(), BfWGGameObjectBuilding::Init(), ModifyHealth(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnGameObjectCreate(), battleground_isle_of_conquest::OnStart(), and FrozenThroneResetWorker::operator()().
| void GameObject::SetDisplayId | ( | uint32 | displayid | ) |
Definition at line 4038 of file GameObject.cpp.
References UF::GameObjectData::DisplayID, m_gameObjectData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), and UpdateModel().
Referenced by Transport::Create(), Create(), and SetDestructibleState().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 404 of file GameObject.h.
References UF::GameObjectData::FactionTemplate, and m_gameObjectData.
Referenced by Transport::Create(), Create(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectTransmitted(), battleground_isle_of_conquest::OnGameObjectCreate(), instance_razorfen_kraul::instance_razorfen_kraul_InstanceMapScript::OnGameObjectCreate(), and go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello().
|
inline |
Definition at line 283 of file GameObject.h.
References flags, UF::GameObjectData::Flags, and m_gameObjectData.
Referenced by ActivateObject(), Create(), CreateModel(), go_suppression_device::Deactivate(), go_empowering_blood_orb::HandleObjectUse(), LoadFromDB(), instance_razorfen_downs::instance_razorfen_downs_InstanceMapScript::OnGameObjectCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnGameObjectCreate(), instance_stratholme::instance_stratholme_InstanceMapScript::OnGameObjectCreate(), instance_uldaman::instance_uldaman_InstanceMapScript::OnGameObjectCreate(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::OnGameObjectCreate(), instance_ahnkahet::instance_ahnkahet_InstanceScript::OnGameObjectCreate(), instance_utgarde_pinnacle::instance_utgarde_pinnacle_InstanceMapScript::OnGameObjectCreate(), go_blackened_urn::go_blackened_urnAI::OnGossipHello(), go_blackfathom_fire::OnGossipHello(), go_elune_fire::go_elune_fireAI::OnGossipHello(), go_prince_taldaram_sphere::OnGossipHello(), go_gundrak_altar::OnGossipHello(), containment_sphere::OnGossipHello(), go_mimiron_hardmode_button::go_mimiron_hardmode_buttonAI::OnGossipHello(), go_razorscale_harpoon::go_razorscale_harpoonAI::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), go_chromaggus_lever::OnGossipHello(), go_celestial_planetarium_access::OnReportUse(), go_razorscale_mole_machine::go_razorscale_mole_machineAI::Reset(), SetDestructibleState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetTeleporterState(), SwitchDoorOrButton(), Use(), and instance_sunken_temple::instance_sunken_temple_InstanceMapScript::UseStatue().
|
inline |
Definition at line 297 of file GameObject.h.
References m_gameObjectData, and UF::GameObjectData::PercentHealth.
Referenced by Transport::Create(), Create(), go_empowering_blood_orb::HandleObjectUse(), ModifyHealth(), and SetDestructibleState().
| void GameObject::SetGoArtKit | ( | uint32 | artkit | ) |
Definition at line 2590 of file GameObject.cpp.
References GameObjectData::artKit, UF::GameObjectData::ArtKit, m_gameObjectData, m_spawnId, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), and sObjectMgr.
Referenced by ActivateObject(), Create(), TolBaradCapturePoint::HandleNeutralEvent(), HPControlZoneHandler::HandleNeutralEvent(), TFControlZoneHandler::HandleNeutralEvent(), TolBaradCapturePoint::HandleProgressEventAlliance(), HPControlZoneHandler::HandleProgressEventAlliance(), NAControlZoneHandler::HandleProgressEventAlliance(), TFControlZoneHandler::HandleProgressEventAlliance(), TolBaradCapturePoint::HandleProgressEventHorde(), HPControlZoneHandler::HandleProgressEventHorde(), NAControlZoneHandler::HandleProgressEventHorde(), TFControlZoneHandler::HandleProgressEventHorde(), and SetGoArtKit().
|
static |
Definition at line 2598 of file GameObject.cpp.
References GetGameObjectData(), SetGoArtKit(), and sObjectMgr.
| void GameObject::SetGoState | ( | GOState | state | ) |
Definition at line 3992 of file GameObject.cpp.
References AI(), EnableCollision(), GetGoState(), GO_STATE_READY, BaseEntity::IsInWorld(), IsTransport(), m_gameObjectData, m_goTypeImpl, m_model, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), GameObjectAI::OnStateChanged(), BaseEntity::SetUpdateFieldValue(), and UF::GameObjectData::State.
Referenced by go_suppression_device::Activate(), ActivateObject(), Transport::Create(), Create(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), go_suppression_device::Deactivate(), Delete(), Transport::EnableMovement(), InstanceScript::HandleGameObject(), go_empowering_blood_orb::HandleObjectUse(), instance_ulduar::instance_ulduar_InstanceMapScript::OnGameObjectCreate(), BattlefieldTB::OnGameObjectCreate(), instance_zulaman::instance_zulaman_InstanceScript::OnGameObjectCreate(), instance_firelands::instance_firelands_InstanceScript::OnGameObjectCreate(), instance_stonecore::instance_stonecore_InstanceScript::OnGameObjectCreate(), instance_ahnkahet::instance_ahnkahet_InstanceScript::OnGameObjectCreate(), instance_gundrak::instance_gundrak_InstanceMapScript::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), go_blackfathom_fire::OnGossipHello(), go_prince_taldaram_sphere::OnGossipHello(), go_gundrak_altar::OnGossipHello(), containment_sphere::OnGossipHello(), go_mimiron_hardmode_button::go_mimiron_hardmode_buttonAI::OnGossipHello(), go_palehoof_sphere::OnGossipHello(), go_chromaggus_lever::OnGossipHello(), battleground_isle_of_conquest::OnStart(), GameObjectType::Transport::OnStateChanged(), FrozenThroneResetWorker::operator()(), go_caribou_trap::Reset(), go_mammoth_trap::Reset(), ResetDoorOrButton(), boss_novos::SetCrystalStatus(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetTeleporterState(), go_mammoth_trap::SpellHit(), SwitchDoorOrButton(), GameObjectType::Transport::Update(), Update(), Transport::Update(), go_caribou_trap::UpdateAI(), InstanceScript::UpdateDoorState(), instance_ulduar::instance_ulduar_InstanceMapScript::UpdateDoorState(), and Use().
Definition at line 4026 of file GameObject.cpp.
References BaseEntity::GetGUID(), GetOrCreatePerPlayerStates(), GameTime::GetSystemTime(), m_respawnDelayTime, WorldPackets::GameObject::GameObjectSetStateLocal::ObjectGUID, Player::SendDirectMessage(), GameObject::PerPlayerState::State, WorldPackets::GameObject::GameObjectSetStateLocal::State, GameObject::PerPlayerState::ValidUntil, and WorldPackets::GameObject::GameObjectSetStateLocal::Write().
Referenced by OnLootRelease(), and Use().
|
inline |
Definition at line 289 of file GameObject.h.
References m_gameObjectData, and UF::GameObjectData::TypeID.
Referenced by Transport::Create(), and Create().
|
inline |
Definition at line 287 of file GameObject.h.
References UF::GameObjectData::Level, and m_gameObjectData.
Referenced by Create(), Spell::EffectDuel(), Spell::EffectSummonObject(), GameObjectType::Transport::OnStateChanged(), and Transport::SetPeriod().
|
inline |
Definition at line 347 of file GameObject.h.
References BaseEntity::GetGUID().
Referenced by Create().
| void GameObject::SetLocalRotation | ( | float | qx, |
| float | qy, | ||
| float | qz, | ||
| float | qw | ||
| ) |
Definition at line 3721 of file GameObject.cpp.
References m_localRotation, UpdatePackedRotation(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by Transport::Create(), Create(), SetLocalRotationAngles(), and GameObjectType::Transport::Update().
| void GameObject::SetLocalRotationAngles | ( | float | z_rot, |
| float | y_rot, | ||
| float | x_rot | ||
| ) |
Definition at line 3737 of file GameObject.cpp.
References QuaternionData::fromEulerAnglesZYX(), SetLocalRotation(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by Transport::UpdatePosition().
|
inline |
Definition at line 314 of file GameObject.h.
Definition at line 3896 of file GameObject.cpp.
References AI(), GameObjectTemplate::chest, GameObjectTemplate::chestRestockTime, ObjectGuid::Clear(), DespawnOrUnsummon(), EnableCollision(), GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DOOR, GameTime::GetGameTime(), GetGOInfo(), GetGoState(), GetGoType(), BaseEntity::GetGUID(), WorldObject::GetMap(), GO_ACTIVATED, GO_JUST_DEACTIVATED, GO_READY, GO_STATE_READY, m_loot, m_lootState, m_lootStateUnitGUID, m_model, m_restockTime, and GameObjectAI::OnLootStateChanged().
Referenced by go_suppression_device::Activate(), Delete(), WorldSession::DoLootRelease(), Spell::EffectOpenLock(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnGameObjectCreate(), go_massive_seaforium_charge::go_massive_seaforium_chargeAI::OnGossipHello(), go_ossirian_crystal::go_ossirian_crystalAI::OnGossipHello(), go_suppression_device::OnLootStateChanged(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), ResetDoorOrButton(), Map::ScriptsProcess(), SetRespawnTime(), Update(), Use(), and UseDoorOrButton().
|
inline |
Definition at line 241 of file GameObject.h.
References ABORT, UF::GameObjectData::CreatedBy, ObjectGuid::IsEmpty(), and m_gameObjectData.
Referenced by Unit::AddGameObject(), Spell::EffectTransmitted(), RemoveFromOwner(), Unit::RemoveGameObjectImpl(), and Use().
| void GameObject::SetParentRotation | ( | QuaternionData const & | rotation | ) |
Definition at line 3732 of file GameObject.cpp.
References m_gameObjectData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::GameObjectData::ParentRotation, and BaseEntity::SetUpdateFieldValue().
Referenced by Transport::Create(), and Create().
| void GameObject::SetPathProgressForClient | ( | float | progress | ) |
Definition at line 4234 of file GameObject.cpp.
References m_transportPathProgress.
Referenced by GameObjectType::Transport::OnStateChanged(), and GameObjectType::Transport::Update().
|
inline |
Definition at line 385 of file GameObject.h.
Referenced by Create().
| void GameObject::SetRespawnTime | ( | int32 | respawn | ) |
Definition at line 2290 of file GameObject.cpp.
References GameTime::GetGameTime(), GO_JUST_DEACTIVATED, m_respawnCompatibilityMode, m_respawnDelayTime, m_respawnTime, m_spawnedByDefault, SetLootState(), and WorldObject::UpdateObjectVisibility().
Referenced by Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPersonalGameObject(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleCustomSpell(), BattlefieldTB::OnGameObjectCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), go_sapphiron_birth::OnLootStateChanged(), dummy_dragonAI::OpenPortal(), Unit::RemoveGameObjectImpl(), Map::ScriptsProcess(), WorldObject::SummonGameObject(), and Update().
| void GameObject::SetScriptStringId | ( | std::string | id | ) |
Definition at line 3654 of file GameObject.cpp.
References AsUnderlyingType(), m_scriptStringId, m_stringIds, and Script.
Referenced by InheritStringIds().
|
inline |
Definition at line 272 of file GameObject.h.
Referenced by WorldObject::SummonGameObject().
|
inline |
Definition at line 253 of file GameObject.h.
Referenced by Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPersonalGameObject(), Spell::EffectTransmitted(), and Use().
| void GameObject::SetSpellVisualId | ( | int32 | spellVisualId, |
| ObjectGuid | activatorGuid = ObjectGuid::Empty |
||
| ) |
Definition at line 4367 of file GameObject.cpp.
References WorldPackets::GameObject::GameObjectPlaySpellVisual::ActivatorGUID, BaseEntity::GetGUID(), m_gameObjectData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::GameObject::GameObjectPlaySpellVisual::ObjectGUID, WorldObject::SendMessageToSet(), BaseEntity::SetUpdateFieldValue(), UF::GameObjectData::SpellVisualID, WorldPackets::GameObject::GameObjectPlaySpellVisual::SpellVisualID, and WorldPackets::GameObject::GameObjectPlaySpellVisual::Write().
Referenced by ActivateObject(), and UpdateCapturePoint().
|
inline |
Definition at line 341 of file GameObject.h.
Referenced by instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate().
| void GameObject::SetVignette | ( | uint32 | vignetteId | ) |
Definition at line 4352 of file GameObject.cpp.
References Vignettes::Create(), m_vignette, Vignettes::Remove(), and sVignetteStore.
Referenced by CleanupsBeforeDelete(), and Create().
|
inline |
Definition at line 437 of file GameObject.h.
Referenced by Create().
|
private |
Definition at line 2613 of file GameObject.cpp.
References GetGoState(), GO_FLAG_IN_USE, GO_STATE_ACTIVE, GO_STATE_DESTROYED, GO_STATE_READY, RemoveFlag(), SetFlag(), and SetGoState().
Referenced by UseDoorOrButton().
|
inline |
Definition at line 412 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT.
Referenced by AddToWorld(), Map::GetTransport(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::ProcessEvent(), and Map::RemoveAllObjectsInRemoveList().
|
inline |
Definition at line 413 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT.
|
inline |
Definition at line 409 of file GameObject.h.
References ToTransportBase().
Referenced by ToTransportBase().
| TransportBase const * GameObject::ToTransportBase | ( | ) | const |
Definition at line 4247 of file GameObject.cpp.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GetGoType(), and m_goTypeImpl.
Definition at line 2398 of file GameObject.cpp.
References GAMEOBJECT_TYPE_TRAP, GetLinkedTrap(), WorldObject::GetMap(), SpellInfo::Id, sObjectMgr, GameObjectTemplate::spell, sSpellMgr, GameObjectTemplate::trap, and GameObjectTemplate::type.
Referenced by Use().
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Transport.
Definition at line 1292 of file GameObject.cpp.
References WorldObject::AddObjectToRemoveList(), Map::AddToMap(), AI(), AIM_Initialize(), WorldPackets::Battleground::AllianceCaptured, Map::ApplyDynamicModeRespawnScaling(), GameObjectValue::AssaultTimer, UpdateData::BuildPacket(), BuildValuesUpdateForPlayerWithMask(), GameObjectTemplate::CaptureBroadcastAlliance, GameObjectTemplate::CaptureBroadcastHorde, GameObjectTemplate::CaptureEventAlliance, GameObjectTemplate::CaptureEventHorde, GameObjectValue::CapturePoint, GameObjectTemplate::capturePoint, CastSpell, GameObjectTemplate::charges, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, GameObjectTemplate::Checkallunits, GameObjectTemplate::chest, GameObjectTemplate::chestRestockTime, ClearLoot(), CONFIG_RESPAWN_DYNAMICMODE, WorldPackets::Battleground::ContestedAlliance, WorldPackets::Battleground::ContestedHorde, GameObjectTemplate::cooldown, Delete(), DespawnOrUnsummon(), FISHING_BOBBER_READY_TIME, GameObjectValue::FishingHole, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CAPTURE_POINT, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_NEW_FLAG_DROP, GAMEOBJECT_TYPE_TRAP, UF::HasChangesMask< Bits >::GetChangesMask(), GameObjectTemplate::GetCharges(), Object::GetEntry(), GetGameObjectData(), GetGameObjectOverride(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), GetGoAnimProgress(), GetGOInfo(), GetGoState(), GetGoType(), Map::GetLinkedRespawnTime(), GetLinkedTrap(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Map::GetPoolData(), GetSpawnId(), GetSpellId(), GameTime::GetSystemTime(), BaseEntity::GetTypeId(), ObjectAccessor::GetUnit(), GO_ACTIVATED, GO_FLAG_IN_USE, GO_FLAG_NODESPAWN, GO_JUST_DEACTIVATED, GO_NOT_READY, GO_READY, GO_STATE_READY, GameObjectTemplate::goober, GRID_MAP_TYPE_MASK_CREATURE, GRID_MAP_TYPE_MASK_PLAYER, WorldPackets::Battleground::HordeCaptured, IN_MILLISECONDS, InBase, GameObjectTemplate::IsDespawnAtAction(), isSpawned(), GameObjectValue::LastTeamCapture, m_cooldownTime, m_despawnDelay, m_despawnRespawnTime, m_goTypeImpl, m_goValue, m_loot, m_lootState, m_lootStateUnitGUID, m_perPlayerState, m_personalLoot, m_respawnCompatibilityMode, m_respawnDelayTime, m_respawnTime, m_restockTime, m_SkillupList, m_spawnedByDefault, m_spawnId, m_unique_users, m_usetimes, UF::HasChangesMask< Bits >::MarkChanged(), GameObjectValue::MaxOpens, GameObjectTemplate::maxRestock, GameObjectTemplate::minRestock, MINUTE, SpawnData::poolId, GameObjectTemplate::radius, RemoveFlag(), Unit::RemoveGameObject(), ReplaceAllFlags(), GameObjectAI::Reset(), ResetDoorOrButton(), SaveRespawnTime(), SendCustomAnim(), Player::SendDirectMessage(), SendGameObjectDespawn(), SetGoState(), SetLootState(), CastSpellExtraArgs::SetOriginalCaster(), SetRespawnTime(), sObjectMgr, GameObjectTemplate::spell, sPoolMgr, sSpellMgr, GameObjectTemplate::startDelay, GameObjectValue::State, UF::GameObjectData::State, sWorld, TARGET_OBJECT_TYPE_UNIT, GameObjectValue::TargetSearcherCheckType, TC_LOG_ERROR, TEAM_ALLIANCE, TEAM_HORDE, Object::ToPlayer(), Object::ToUnit(), GameObjectValue::Trap, GameObjectTemplate::trap, GameEvents::Trigger(), GameObjectTemplate::type, TYPEID_PLAYER, WorldObject::Update(), GameObjectAI::UpdateAI(), UpdateCapturePoint(), UpdateDynamicFlagsForNearbyPlayers(), WorldObject::UpdateObjectVisibility(), WorldObject::UpdateObjectVisibilityOnDestroy(), Player::UpdateVisibilityOf(), urand(), Cell::VisitAllObjects(), Cell::VisitWorldObjects(), and WEEK.
| void GameObject::UpdateCapturePoint | ( | ) |
Definition at line 4459 of file GameObject.cpp.
References AI(), WorldPackets::Battleground::AllianceCaptured, GameObjectValue::AssaultTimer, AsUnderlyingType(), GameObjectValue::CapturePoint, GameObjectTemplate::capturePoint, WorldPackets::Battleground::UpdateCapturePoint::CapturePointInfo, GameObjectTemplate::CaptureTime, WorldPackets::Battleground::BattlegroundCapturePointInfo::CaptureTime, WorldPackets::Battleground::BattlegroundCapturePointInfo::CaptureTotalDuration, WorldPackets::Battleground::ContestedAlliance, WorldPackets::Battleground::ContestedHorde, GAMEOBJECT_TYPE_CAPTURE_POINT, GetGOInfo(), GetGoType(), BaseEntity::GetGUID(), WorldObject::GetMap(), Position::GetPosition(), WorldPackets::Battleground::BattlegroundCapturePointInfo::Guid, WorldPackets::Battleground::HordeCaptured, m_goValue, WorldPackets::Battleground::Neutral, WorldPackets::Battleground::BattlegroundCapturePointInfo::Pos, SendCustomAnim(), SetSpellVisualId(), GameObjectTemplate::SpellVisual1, GameObjectTemplate::SpellVisual2, GameObjectTemplate::SpellVisual3, GameObjectTemplate::SpellVisual4, GameObjectTemplate::SpellVisual5, GameObjectValue::State, WorldPackets::Battleground::BattlegroundCapturePointInfo::State, UpdateDynamicFlagsForNearbyPlayers(), Map::UpdateSpawnGroupConditions(), GameObjectTemplate::worldState1, and WorldPackets::Battleground::UpdateCapturePoint::Write().
Referenced by AssaultCapturePoint(), Create(), and Update().
| void GameObject::UpdateDynamicFlagsForNearbyPlayers | ( | ) |
Definition at line 4616 of file GameObject.cpp.
References BaseEntity::AddToObjectUpdateIfNeeded(), UF::ObjectData::DynamicFlags, Object::m_objectData, BaseEntity::m_values, and UF::UpdateFieldHolder::ModifyValue().
Referenced by Update(), and UpdateCapturePoint().
|
protected |
Definition at line 4088 of file GameObject.cpp.
References CreateModel(), GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_PHASEABLE_MO, GAMEOBJECT_TYPE_SIEGEABLE_MO, GAMEOBJECT_TYPE_TRAPDOOR, GetGoState(), GetGoType(), getLootState(), WorldObject::GetMap(), WorldObject::GetPhaseShift(), GO_FLAG_MAP_OBJECT, GO_READY, GO_STATE_READY, Map::InsertGameObjectModel(), BaseEntity::IsInWorld(), IsTransport(), m_model, RemoveFlag(), Map::RemoveGameObjectModel(), and Map::RequestRebuildNavMeshOnGameObjectModelChange().
Referenced by SetDisplayId().
| void GameObject::UpdateModelPosition | ( | ) |
Definition at line 4317 of file GameObject.cpp.
References WorldObject::GetMap(), Map::InsertGameObjectModel(), m_model, and Map::RemoveGameObjectModel().
Referenced by AfterRelocation(), GameObjectType::Transport::Update(), and Transport::UpdatePosition().
|
private |
Definition at line 3706 of file GameObject.cpp.
References m_localRotation, m_packedRotation, QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by SetLocalRotation().
| void GameObject::Use | ( | Unit * | user, |
| bool | ignoreCastInProgress = false |
||
| ) |
Definition at line 2626 of file GameObject.cpp.
References AddUniqueUse(), AddUse(), AdventureJournal, AI(), GameObjectTemplate::AllowMultiInteract, GameObjectTemplate::animSpell, WorldPackets::Artifact::OpenArtifactForge::ArtifactGUID, ARTIFACTS_ALL_WEAPONS_GENERAL_WEAPON_EQUIPPED_PASSIVE, AssaultCapturePoint(), Loot::AutoStore(), AzeriteForge, GameObjectTemplate::barberChair, GameObjectTemplate::camera, Player::CanUseBattlegroundObject(), GameObjectTemplate::casters, GameObjectTemplate::castersGrouped, GameObjectTemplate::casterTargetSpell, GameObjectTemplate::casterTargetSpellTargets, CastSpell, WorldObject::CastSpell(), CatchFishInFishingHole, GameObjectTemplate::chair, GameObjectTemplate::chairheight, ChairListSlots, GameObjectTemplate::chairslots, GameObjectTemplate::charges, GameObjectTemplate::chest, GameObjectTemplate::chestLoot, GameObjectTemplate::chestPersonalLoot, GameObjectTemplate::chestPushLoot, ObjectGuid::Clear(), CONTACT_DISTANCE, GameObjectTemplate::ContentTuningId, GameObjectTemplate::cooldown, CURRENT_CHANNELED_SPELL, GameObjectTemplate::customAnim, GameObjectTemplate::CustomizationFeatureMask, WorldPackets::Misc::EnableBarberShop::CustomizationFeatureMask, GameObjectTemplate::CustomSitAnimKit, DEFAULT_VISIBILITY_DISTANCE, Delete(), DespawnForPlayer(), DespawnOrUnsummon(), Dropped, GameObjectTemplate::DungeonEncounter, GameObjectTemplate::entry, ERR_MUST_EQUIP_ARTIFACT, GameObjectTemplate::eventID, Everywhere, ContentTuningEntry::ExpansionID, Loot::FillLoot(), ObjectAccessor::FindPlayer(), Unit::FinishSpell(), GameObjectTemplate::flagDrop, GameObjectTemplate::flagStand, WorldPackets::Artifact::OpenArtifactForge::ForgeGUID, GameObjectTemplate::ForgeType, GAMEOBJECT_TYPE_BARBER_CHAIR, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CAMERA, GAMEOBJECT_TYPE_CAPTURE_POINT, GAMEOBJECT_TYPE_CHAIR, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_FLAGDROP, GAMEOBJECT_TYPE_FLAGSTAND, GAMEOBJECT_TYPE_GATHERING_NODE, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_ITEM_FORGE, GAMEOBJECT_TYPE_MEETINGSTONE, GAMEOBJECT_TYPE_NEW_FLAG, GAMEOBJECT_TYPE_NEW_FLAG_DROP, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_RITUAL, GAMEOBJECT_TYPE_SPELL_FOCUS, GAMEOBJECT_TYPE_SPELLCASTER, GAMEOBJECT_TYPE_TRAP, GAMEOBJECT_TYPE_UI_LINK, WorldPackets::GameObject::PageText::GameObjectGUID, GameObjectTemplate::gatheringNode, GenerateDungeonEncounterPersonalLoot(), Loot::generateMoneyLoot(), WorldObject::GetAreaId(), Unit::GetAura(), GameObjectTemplate::GetAutoCloseTime(), Aura::GetCastItemGUID(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), DB2Manager::GetContentTuningForArea(), ItemBonusMgr::GetContextForPlayer(), Unit::GetCurrentSpell(), WorldObject::GetDistance2d(), Object::GetEntry(), GetFishLoot(), GetFishLootJunk(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), GetGoAnimProgress(), GetGOInfo(), GetGoType(), Player::GetGroup(), BaseEntity::GetGUID(), Player::GetItemByEntry(), Player::GetItemByGuid(), Unit::GetLevel(), GetLootForPlayer(), GameObjectTemplate::GetLootId(), GetLootMode(), getLootState(), WorldObject::GetMap(), Map::GetMapDifficulty(), WorldLocation::GetMapId(), WorldObject::GetName(), GameObjectTemplate::GetNoDamageImmune(), Position::GetOrientation(), WorldObject::GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetProfessionSkillForExp(), Player::GetQuestStatus(), Player::GetSkillValue(), GetSpawnId(), GameObjectType::NewFlag::GetState(), GetTapList(), Unit::GetTarget(), GetTemplateAddon(), BaseEntity::GetTypeId(), GetUniqueUseCount(), ObjectAccessor::GetUnit(), Unit::GetVehicle(), WorldObject::GetZoneScript(), Player::GiveXP(), GO_ACTIVATED, GO_DYNFLAG_LO_NO_INTERACT, GO_FLAG_IN_MULTI_USE, GO_FLAG_IN_USE, GO_JUST_DEACTIVATED, GO_READY, GO_STATE_ACTIVE, GameObjectTemplate::goober, GameObjectTemplate::gossipID, HandleCustomTypeCommand(), HasFlag(), IN_MILLISECONDS, InBase, WorldPackets::GameObject::GameObjectInteraction::InteractionType, irand(), Unit::IsAlive(), GameObjectTemplate::IsDespawnAtAction(), ObjectGuid::IsEmpty(), Player::IsInSameRaidWith(), Group::IsMember(), GameObjectTemplate::IsUsableMounted(), GameObjectTemplate::IsUsingGroupLootRules(), Item, ITEM_ID_HEART_OF_AZEROTH, GameObjectTemplate::itemForge, ItemInteraction, Player::KillCreditGO(), GameObjectTemplate::linkedTrap, LookupFishingHoleAround(), LOOT_CHEST, LOOT_FISHINGHOLE, LOOT_MODE_DEFAULT, LootTemplates_Gameobject, m_cooldownTime, m_goInfo, m_goTypeImpl, m_loot, m_personalLoot, M_PI, Player::m_playerData, m_respawnDelayTime, m_ritualOwnerGUID, m_unique_users, m_usetimes, m_vignette, MAX_GAMEOBJECT_TYPE, GameObjectTemplateAddon::Maxgold, GameObjectTemplate::MaxNumberofLoots, MeetsInteractCondition(), GameObjectTemplateAddon::Mingold, Unit::NearTeleportTo(), GameObjectTemplate::newflag, NULL_BAG, NULL_SLOT, GameObjectTemplate::ObjectDespawnDelay, WorldPackets::GameObject::GameObjectInteraction::ObjectGUID, ObliterumForge, GameObjectTemplate::pageID, GameObjectTemplate::partyOnly, GameObjectTemplate::pickupSpell, GameObjectTemplate::playerCast, Player::PrepareGossipMenu(), QUEST_STATUS_INCOMPLETE, GameObjectTemplate::questID, Vignettes::Remove(), Unit::RemoveAurasByType(), RemoveFromOwner(), ReplaceAllFlags(), GameObjectTemplate::ritual, GameObjectTemplate::ritualPersistent, Quest::RoundXPValue(), sAreaTableStore, ScrappingMachine, sDB2Manager, Trinity::Containers::SelectRandomContainerElement(), Player::SendCinematicStart(), SendCustomAnim(), Player::SendDirectMessage(), Player::SendLoot(), Player::SendPreparedGossip(), BaseEntity::SendUpdateToPlayer(), Loot::SetDungeonEncounterId(), Object::SetDynamicFlag(), SetFlag(), SetGoState(), SetGoStateFor(), SetLootState(), SetOwnerGUID(), SetSpellId(), Unit::SetStandState(), GameObjectTemplate::size, SKILL_FISHING, sObjectMgr, sOutdoorPvPMgr, GameObjectTemplate::spell, SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_STEALTH, SPELL_AURA_MOUNTED, SPELL_CAST_OK, SPELL_FAILED_SUCCESS, GameObjectTemplate::spellCaster, sQuestXPStore, sSpellMgr, Taken, TC_LOG_DEBUG, TC_LOG_ERROR, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, Player::TeleportTo(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), GameObjectTemplate::trap, GameEvents::Trigger(), TRIGGERED_FULL_MASK, TRIGGERED_IGNORE_CAST_IN_PROGRESS, GameObjectTemplate::triggeredEvent, CastSpellExtraArgsInit::TriggerFlags, TriggeringLinkedGameObject(), TYPEID_PLAYER, GameObjectTemplate::UILinkType, UNIT_FLAG_IMMUNE, UNIT_STAND_STATE_SIT, UNIT_STAND_STATE_SIT_LOW_CHAIR, Player::UpdateCriteria(), Player::UpdateFishingSkill(), Use(), UseDoorOrButton(), WorldPackets::Artifact::OpenArtifactForge::Write(), WorldPackets::GameObject::PageText::Write(), WorldPackets::GameObject::GameObjectInteraction::Write(), WorldPackets::Misc::EnableBarberShop::Write(), and GameObjectTemplate::xpDifficulty.
Referenced by ActivateObject(), Spell::EffectOpenLock(), npc_valiance_keep_cannoneer::UpdateAI(), and Use().
| void GameObject::UseDoorOrButton | ( | uint32 | time_to_restore = 0, |
| bool | alternative = false, |
||
| Unit * | user = nullptr |
||
| ) |
Definition at line 2433 of file GameObject.cpp.
References GameObjectTemplate::GetAutoCloseTime(), GameTime::GetGameTimeMS(), GetGOInfo(), GO_ACTIVATED, GO_READY, m_cooldownTime, m_lootState, SetLootState(), and SwitchDoorOrButton().
Referenced by Map::_ScriptProcessDoor(), ActivateObject(), go_kings_rest_serpentine_seal::OnGossipHello(), go_master_surveyor::OnGossipHello(), go_brazier_of_the_herald::OnGossipHello(), go_ethereum_prison::go_ethereum_prisonAI::OnGossipHello(), go_ethereum_stasis::go_ethereum_stasisAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), battleground_isle_of_conquest::OnStart(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), go_razorscale_mole_machine::go_razorscale_mole_machineAI::Reset(), go_ahune_ice_spear::Reset(), and Use().
|
private |
Definition at line 524 of file GameObject.h.
Referenced by Create(), and SetAnimKitId().
|
private |
Definition at line 525 of file GameObject.h.
|
protected |
Definition at line 490 of file GameObject.h.
Referenced by Use().
|
private |
Definition at line 522 of file GameObject.h.
Referenced by AIM_Destroy(), AIM_Initialize(), and ~GameObject().
|
protected |
Definition at line 479 of file GameObject.h.
Referenced by GameObject(), ResetDoorOrButton(), Update(), Use(), and UseDoorOrButton().
|
protected |
Definition at line 473 of file GameObject.h.
Referenced by DespawnOrUnsummon(), GameObject(), and Update().
|
protected |
Definition at line 474 of file GameObject.h.
Referenced by DespawnOrUnsummon(), GameObject(), and Update().
| UF::UpdateField<UF::GameObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_GAMEOBJECT> GameObject::m_gameObjectData |
Definition at line 463 of file GameObject.h.
Referenced by BuildValuesCreate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), ClearValuesChangesMask(), Create(), GetNameSetId(), LoadFromDB(), RemoveFlag(), ReplaceAllFlags(), SetDisplayId(), SetFaction(), SetFlag(), SetGoAnimProgress(), SetGoArtKit(), SetGoState(), SetGoType(), SetLevel(), SetOwnerGUID(), SetParentRotation(), SetSpellVisualId(), and GameObjectType::Transport::Update().
|
protected |
Definition at line 495 of file GameObject.h.
Referenced by DespawnOrUnsummon(), GameObject(), GetRespawnPosition(), LoadFromDB(), and SaveRespawnTime().
|
protected |
Definition at line 493 of file GameObject.h.
Referenced by CanInteractWithCapturePoint(), Transport::Create(), Create(), Delete(), GameObject(), GetNameSetId(), IsInRange(), MeetsInteractCondition(), SetDestructibleState(), and Use().
|
protected |
Definition at line 494 of file GameObject.h.
Referenced by Transport::Create(), Create(), GameObject(), and GetGameObjectOverride().
|
protected |
Definition at line 496 of file GameObject.h.
Referenced by ActivateObject(), AfterRelocation(), Create(), GetControllingTeam(), GetFlagCarrierGUID(), GetFlagState(), GetFlagTakenFromBaseTime(), GetInsidePlayers(), GetPauseTimes(), HandleCustomTypeCommand(), IsNeverVisibleFor(), SetGoState(), ToTransportBase(), Update(), and Use().
|
protected |
Definition at line 497 of file GameObject.h.
Referenced by AssaultCapturePoint(), CanInteractWithCapturePoint(), Create(), ModifyHealth(), SetDestructibleState(), Update(), and UpdateCapturePoint().
|
protected |
Definition at line 508 of file GameObject.h.
Referenced by GetLinkedTrap().
|
protected |
Definition at line 502 of file GameObject.h.
Referenced by SaveToDB(), SetLocalRotation(), and UpdatePackedRotation().
| std::unique_ptr<Loot> GameObject::m_loot |
Definition at line 337 of file GameObject.h.
Referenced by ClearLoot(), GetLootForPlayer(), IsFullyLooted(), SetLootState(), Update(), and Use().
|
protected |
Definition at line 506 of file GameObject.h.
|
protected |
Definition at line 475 of file GameObject.h.
Referenced by GameObject(), ResetDoorOrButton(), SetLootState(), Update(), and UseDoorOrButton().
|
protected |
Definition at line 476 of file GameObject.h.
Referenced by SetLootState(), and Update().
| std::unique_ptr<GameObjectModel> GameObject::m_model |
Definition at line 406 of file GameObject.h.
Referenced by AddToWorld(), CreateModel(), EnableCollision(), RemoveFromWorld(), SetGoState(), SetLootState(), Transport::Update(), UpdateModel(), and UpdateModelPosition().
|
protected |
Definition at line 501 of file GameObject.h.
Referenced by GameObject(), and UpdatePackedRotation().
|
private |
Definition at line 537 of file GameObject.h.
Referenced by GetGoStateFor(), GetOrCreatePerPlayerStates(), IsInvisibleDueToDespawn(), and Update().
| std::unordered_map<ObjectGuid, std::unique_ptr<Loot> > GameObject::m_personalLoot |
Definition at line 338 of file GameObject.h.
Referenced by ClearLoot(), GetLootForPlayer(), IsFullyLooted(), Update(), and Use().
|
protected |
Definition at line 481 of file GameObject.h.
Referenced by Create(), GameObject(), and ResetDoorOrButton().
|
private |
Definition at line 523 of file GameObject.h.
Referenced by Delete(), LoadFromDB(), SaveRespawnTime(), SetRespawnTime(), and Update().
|
protected |
Definition at line 472 of file GameObject.h.
Referenced by GameObject(), LoadFromDB(), OnLootRelease(), SaveToDB(), SetGoStateFor(), SetRespawnTime(), Update(), and Use().
|
protected |
Definition at line 471 of file GameObject.h.
Referenced by GameObject(), GetRespawnTimeEx(), LoadFromDB(), Refresh(), Respawn(), SaveRespawnTime(), SetRespawnTime(), and Update().
|
protected |
Definition at line 478 of file GameObject.h.
Referenced by GameObject(), SetLootState(), and Update().
|
protected |
Definition at line 485 of file GameObject.h.
Referenced by Use().
|
protected |
Definition at line 499 of file GameObject.h.
Referenced by SetScriptStringId().
|
protected |
Definition at line 483 of file GameObject.h.
Referenced by Update().
|
protected |
Definition at line 477 of file GameObject.h.
Referenced by GameObject(), LoadFromDB(), Refresh(), Respawn(), SaveRespawnTime(), SaveToDB(), SetRespawnTime(), and Update().
|
protected |
For new or temporary gameobjects is 0 for saved it is lowguid.
Definition at line 492 of file GameObject.h.
Referenced by AddToWorld(), Create(), GameObject(), GetGameObjectOverride(), LoadFromDB(), RemoveFromWorld(), Respawn(), SaveRespawnTime(), SaveToDB(), SaveToDB(), SetGoArtKit(), and Update().
|
protected |
Definition at line 470 of file GameObject.h.
Referenced by GameObject(), and RemoveFromOwner().
|
protected |
Definition at line 503 of file GameObject.h.
Referenced by Create(), GameObject(), and Transport::UpdatePosition().
|
protected |
Definition at line 498 of file GameObject.h.
Referenced by Create(), HasStringId(), InheritStringIds(), LoadFromDB(), and SetScriptStringId().
|
protected |
Definition at line 505 of file GameObject.h.
Referenced by IsLootAllowedFor().
|
private |
Definition at line 526 of file GameObject.h.
Referenced by SetPathProgressForClient().
|
protected |
Definition at line 486 of file GameObject.h.
Referenced by AddUniqueUse(), ClearLoot(), Update(), and Use().
|
protected |
Definition at line 487 of file GameObject.h.
Referenced by ClearLoot(), GameObject(), Update(), and Use().
|
private |
Definition at line 528 of file GameObject.h.
Referenced by AfterRelocation(), SetVignette(), and Use().