![]() |
TrinityCore
|
#include <GameObject.h>
Inheritance diagram for GameObject:Public Member Functions | |
| GameObject () | |
| ~GameObject () | |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const override |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| uint32 | GetDynamicFlags () const override |
| void | ReplaceAllDynamicFlags (uint32 flag) override |
| bool | Create (ObjectGuid::LowType guidlow, uint32 name_id, Map *map, uint32 phaseMask, Position const &pos, QuaternionData const &rotation, uint32 animprogress, GOState go_state, uint32 artKit=0, bool dynamic=false, ObjectGuid::LowType spawnid=0) |
| void | Update (uint32 p_time) 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 | IsDynTransport () 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 const & | GetNameForLocaleIdx (LocaleConstant locale) const override |
| void | SaveToDB () |
| void | SaveToDB (uint32 mapid, uint8 spawnMask, uint32 phaseMask) |
| bool | LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool=true) |
| 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 | Delete () |
| void | getFishLoot (Loot *loot, Player *loot_owner) |
| void | getFishLootJunk (Loot *loot, Player *loot_owner) |
| 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) |
| virtual uint32 | GetTransportPeriod () const |
| uint8 | GetGoArtKit () const |
| void | SetGoArtKit (uint8 artkit) |
| uint8 | GetGoAnimProgress () const |
| void | SetGoAnimProgress (uint8 animprogress) |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | EnableCollision (bool enable) |
| void | Use (Unit *user) |
| 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 | SetLootGenerationTime () |
| uint32 | GetLootGenerationTime () const |
| 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) |
| Player * | GetLootRecipient () const |
| Group * | GetLootRecipientGroup () const |
| void | SetLootRecipient (Unit *unit, Group *group=nullptr) |
| bool | IsLootAllowedFor (Player const *player) const |
| bool | HasLootRecipient () const |
| GameObject * | GetLinkedTrap () |
| void | SetLinkedTrap (GameObject *linkedTrap) |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| 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, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1) |
| void | TriggeringLinkedGameObject (uint32 trapEntry, Unit *target) |
| bool | IsNeverVisible (bool allowServersideObjects) const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsInvisibleDueToDespawn () 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 | EventInform (uint32 eventId, WorldObject *invoker=nullptr) |
| 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 |
| void | SetDisplayId (uint32 displayid) |
| uint32 | GetDisplayId () const |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| void | GetRespawnPosition (float &x, float &y, float &z, float *ori=nullptr) const |
| Transport * | ToTransport () |
| Transport const * | ToTransport () const |
| float | GetStationaryX () const override |
| float | GetStationaryY () const override |
| float | GetStationaryZ () const override |
| float | GetStationaryO () const override |
| void | RelocateStationaryPosition (float x, float y, float z, float o) |
| 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 |
| void | AIM_Destroy () |
| bool | AIM_Initialize () |
| std::string | GetDebugInfo () const override |
| 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) |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| 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 |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| Position | GetRandomPoint (Position const &srcPos, float distance) const |
| uint32 | GetInstanceId () const |
| uint32 | GetPhaseMask () const |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string const & | 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) 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 (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, 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 | PlayDistanceSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectMusic (uint32 musicId, Player *target=nullptr) |
| void | SendObjectDeSpawnAnim (ObjectGuid guid) |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| void | ClearZoneScript () |
| ZoneScript * | GetZoneScript () 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) |
| 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 distance) 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 |
| int32 | CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo) 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, int32 skillDiff, uint32 spellId) 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=false) 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={ }) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibility (bool forced=true) |
| virtual void | UpdateObjectVisibilityOnCreate () |
| 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 |
| Transport * | 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 (Transport *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 |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| bool | IsInWorld () const |
| ObjectGuid | GetGUID () const |
| PackedGuid const & | GetPackGUID () const |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| virtual void | SetObjectScale (float scale) |
| bool | HasDynamicFlag (uint32 flag) const |
| virtual void | SetDynamicFlag (uint32 flag) |
| virtual void | RemoveDynamicFlag (uint32 flag) |
| TypeID | GetTypeId () const |
| bool | isType (uint16 mask) const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| int32 | GetInt32Value (uint16 index) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| float | GetFloatValue (uint16 index) const |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| ObjectGuid | GetGuidValue (uint16 index) const |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetGuidValue (uint16 index, ObjectGuid value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| bool | AddGuidValue (uint16 index, ObjectGuid value) |
| bool | RemoveGuidValue (uint16 index, ObjectGuid value) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModUInt16Value (uint16 index, uint8 offset, int16 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| bool | HasFlag (uint16 index, uint32 flag) const |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| void | ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ClearUpdateMask (bool remove) |
| uint16 | GetValuesCount () const |
| void | SetIsNewObject (bool enable) |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | ForceValuesUpdateAtIndex (uint32) |
| bool | IsWorldObject () const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| bool | IsItem () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| bool | IsPlayer () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| bool | IsCreature () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| bool | IsUnit () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| bool | IsGameObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| bool | IsCorpse () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| bool | IsDynObject () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
Public Member Functions inherited from WorldLocation | |
| WorldLocation () | |
| WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f) | |
| WorldLocation (uint32 mapId, Position const &position) | |
| void | WorldRelocate (WorldLocation const &loc) |
| void | WorldRelocate (WorldLocation const *loc) |
| void | WorldRelocate (uint32 mapId, Position const &pos) |
| void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
| WorldLocation | GetWorldLocation () const |
| uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| Position () | |
| Position (float x, float y, float z=0.0f, float o=0.0f) | |
| bool | operator== (Position const &a) const |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float o) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| 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 |
| float | GetExactDist2dSq (const float x, const float y) const |
| float | GetExactDist2dSq (Position const &pos) const |
| 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 |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const &pos) const |
| 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 |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) 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 |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const &pos, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const ¢er, float xradius, float yradius, float zradius) const |
| bool | IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) 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 bool | DeleteFromDB (ObjectGuid::LowType spawnId) |
| static void | SetGoArtKit (uint8 artkit, GameObject *go, ObjectGuid::LowType lowguid=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 ObjectGuid | GetGUID (Object const *o) |
| 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 Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (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 Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::map< uint32, ObjectGuid > | ChairSlotAndUser |
Protected Member Functions | |
| 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 | IsAlwaysDetectableFor (WorldObject const *) const |
| virtual void | Heartbeat () |
Protected Member Functions inherited from Object | |
| Object () | |
| void | _InitValues () |
| void | _Create (ObjectGuid const &guid) |
| bool | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| void | AddToObjectUpdateIfNeeded () |
Protected Member Functions inherited from MapObject | |
| MapObject () | |
Private Member Functions | |
| 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. | |
Private Attributes | |
| GameObjectAI * | m_AI |
| bool | m_respawnCompatibilityMode |
Definition at line 85 of file GameObject.h.
|
protected |
Definition at line 339 of file GameObject.h.
|
explicit |
Definition at line 110 of file GameObject.cpp.
References GAMEOBJECT_END, GO_NOT_READY, GO_STATE_ACTIVE, m_cooldownTime, m_despawnDelay, m_despawnRespawnTime, m_goData, m_goInfo, m_goTemplateAddon, m_groupLootTimer, m_lootGenerationTime, m_lootState, Object::m_objectType, Object::m_objectTypeId, m_packedRotation, m_prevGoState, m_respawnDelayTime, m_respawnTime, m_restockTime, m_spawnedByDefault, m_spawnId, m_spellId, m_stationaryPosition, Object::m_updateFlag, m_usetimes, Object::m_valuesCount, Position::Relocate(), ResetLootMode(), TYPEID_GAMEOBJECT, TYPEMASK_GAMEOBJECT, UPDATEFLAG_LOWGUID, UPDATEFLAG_POSITION, UPDATEFLAG_ROTATION, and UPDATEFLAG_STATIONARY_POSITION.
Referenced by Create(), and Transport::CreateGOPassenger().
| GameObject::~GameObject | ( | ) |
Definition at line 144 of file GameObject.cpp.
|
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 367 of file GameObject.h.
References Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and WorldObject::IsInRange().
| void GameObject::ActivateObject | ( | GameObjectActions | action, |
| WorldObject * | spellCaster = nullptr, |
||
| uint32 | spellId = 0, |
||
| int32 | effectIndex = -1 |
||
| ) |
Definition at line 1483 of file GameObject.cpp.
References AnimateCustom0, AnimateCustom1, AnimateCustom2, AnimateCustom3, GameObjectTemplateAddon::artKits, Close, CloseAndLock, Creation, Despawn, DespawnOrUnsummon(), Destroy, Disturb, Object::GetEntry(), GetTemplateAddon(), GO_FLAG_LOCKED, GO_FLAG_NOT_SELECTABLE, Lock, MakeActive, MakeInert, None, Open, OpenAndUnlock, Rebuild, RemoveFlag(), ResetDoorOrButton(), SendCustomAnim(), SetFlag(), SetGoArtKit(), SetTapList, TC_LOG_ERROR, TC_LOG_FATAL, ToggleOpen, Object::ToUnit(), Unlock, Use(), UseArtKit0, UseArtKit1, UseArtKit2, UseArtKit3, 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 1382 of file GameObject.cpp.
References GameObjectTemplate::_generic, GameObjectTemplate::chest, DIALOG_STATUS_UNAVAILABLE, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, Player::GetBattleground(), Object::GetEntry(), GetGOInfo(), GetGoType(), GameObjectTemplate::GetLootId(), getLootState(), Player::GetQuestStatus(), Player::GetTeam(), GO_NOT_READY, GameObjectTemplate::goober, Player::HasQuestForGO(), LootStore::HaveQuestLootForPlayer(), LootTemplates_Gameobject, QUEST_STATUS_INCOMPLETE, GameObjectTemplate::questId, GameObjectTemplate::questID, and sObjectMgr.
Referenced by BuildValuesUpdate().
|
inline |
Definition at line 200 of file GameObject.h.
|
inline |
Definition at line 206 of file GameObject.h.
Referenced by Spell::EffectOpenLock().
|
overridevirtual |
Reimplemented from Object.
Definition at line 203 of file GameObject.cpp.
References WorldObject::AddToWorld(), EnableCollision(), GAMEOBJECT_TYPE_CHEST, Map::GetGameObjectBySpawnIdStore(), GetGoState(), GetGoType(), Object::GetGUID(), getLootState(), WorldObject::GetMap(), Map::GetObjectsStore(), GO_READY, GO_STATE_READY, TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Insert(), Map::InsertGameObjectModel(), Object::IsInWorld(), IsTransport(), m_model, m_spawnId, WorldObject::m_zoneScript, ZoneScript::OnGameObjectCreate(), and ToTransport().
Referenced by Map::AddToMap().
| void GameObject::AddUniqueUse | ( | Player * | player | ) |
Definition at line 927 of file GameObject.cpp.
References AddUse(), Object::GetGUID(), and m_unique_users.
Referenced by Spell::EffectTransmitted(), and Use().
|
inline |
Definition at line 214 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().
|
inline |
Definition at line 275 of file GameObject.h.
Referenced by Player::AddQuestAndCheckCompletion(), Spell::TargetInfo::DoDamageAndTriggers(), Spell::GOTargetInfo::DoTargetSpellHit(), EventInform(), Player::GetQuestDialogStatus(), gobject_commandscript::HandleGameObjectInfoCommand(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), TempSummon::InitSummon(), SmartScript::IsSmart(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), SmartScript::ProcessAction(), Spell::SendLoot(), SetDestructibleState(), SetGoState(), SetLootState(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Transport::Update(), Update(), and Use().
| void GameObject::AIM_Destroy | ( | ) |
Definition at line 152 of file GameObject.cpp.
References m_AI.
Referenced by AIM_Initialize(), and CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript().
| bool GameObject::AIM_Initialize | ( | ) |
Definition at line 158 of file GameObject.cpp.
References AIM_Destroy(), GameObjectAI::InitializeAI(), m_AI, and FactorySelector::SelectGameObjectAI().
Referenced by Create(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), Transport::Update(), and Update().
|
overridevirtual |
Reimplemented from Object.
Definition at line 2702 of file GameObject.cpp.
References Object::_changesMask, Object::_fieldNotifyFlags, ActivateToQuest(), ByteBuffer::append(), UpdateMaskPacketBuilder::AppendToPacket(), GameObjectTemplate::chest, flags, GAMEOBJECT_DYNAMIC, GAMEOBJECT_FLAGS, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_TRANSPORT, GameObjectUpdateFieldFlags, UpdateMask::GetBit(), GetGOInfo(), GetGoType(), Object::GetGUID(), GetOwnerGUID(), GetTransportPeriod(), GO_DYNFLAG_LO_ACTIVATE, GO_DYNFLAG_LO_SPARKLE, GO_FLAG_LOCKED, GO_FLAG_NOT_SELECTABLE, GameObjectTemplate::groupLootRules, HasLootRecipient(), Player::IsGameMaster(), IsLootAllowedFor(), m_goValue, Object::m_uint32Values, Object::m_valuesCount, GameObjectValue::PathProgress, UpdateMaskPacketBuilder::SetBit(), GameObjectValue::Transport, UF_FLAG_OWNER, UF_FLAG_PUBLIC, and UPDATETYPE_VALUES.
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Transport.
Definition at line 176 of file GameObject.cpp.
References WorldObject::CleanupsBeforeDelete(), Object::m_uint32Values, and RemoveFromOwner().
Referenced by Transport::CleanupsBeforeDelete().
|
inline |
Definition at line 211 of file GameObject.h.
| bool GameObject::Create | ( | ObjectGuid::LowType | guidlow, |
| uint32 | name_id, | ||
| Map * | map, | ||
| uint32 | phaseMask, | ||
| Position const & | pos, | ||
| QuaternionData const & | rotation, | ||
| uint32 | animprogress, | ||
| GOState | go_state, | ||
| uint32 | artKit = 0, |
||
| bool | dynamic = false, |
||
| ObjectGuid::LowType | spawnid = 0 |
||
| ) |
Definition at line 255 of file GameObject.cpp.
References Object::_Create(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddFlag(), Map::AddToMap(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddValue(), AIM_Initialize(), GameObjectValue::AnimationInfo, ASSERT, AsUnderlyingType(), GameObjectValue::Building, GameObjectTemplate::building, Create(), CreateModel(), GameObjectValue::CurrentSeg, GameObjectTemplate::damagedNumHits, GameObjectTemplate::displayId, GameObjectTemplate::entry, GameObjectValue::FishingHole, GameObject(), GameObject, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GAMEOBJECT_TYPE_TRAP, Map::GenerateLowGuid(), ZoneScript::GetGameObjectEntry(), GetGameObjectOverride(), GetGOInfo(), Map::GetId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSpawnId(), GO_STATE_ACTIVE, GO_STATE_READY, GameObjectValue::Health, Infinite, GameObjectTemplate::intactNumHits, INVISIBILITY_TRAP, GameObjectAddon::invisibilityType, GameObjectAddon::InvisibilityValue, GameObjectTemplate::invisible, Map::Is25ManRaid(), GameObjectTemplate::IsInfiniteGameObject(), GameObjectTemplate::IsLargeGameObject(), Position::IsPositionValid(), Large, WorldObject::LastUsedScriptID, loot, m_goInfo, m_goTemplateAddon, m_goValue, WorldObject::m_invisibility, m_prevGoState, m_spawnId, m_stationaryPosition, WorldObject::m_stealth, m_stringIds, Object::m_updateFlag, WorldObject::m_zoneScript, MAX_GAMEOBJECT_TYPE, Loot::maxDuplicates, GameObjectValue::MaxHealth, GameObjectValue::MaxOpens, GameObjectTemplate::maxSuccessOpens, GameObjectTemplate::minSuccessOpens, GameObjectTemplate::name, GameObjectAddon::ParentRotation, GameObjectValue::PathProgress, GameObjectTemplate::pause, Position::Relocate(), ReplaceAllFlags(), GameObjectTemplate::ScriptId, SetDisplayId(), Object::SetEntry(), SetFaction(), SetGoAnimProgress(), SetGoArtKit(), SetGoState(), SetGoType(), SetLevel(), SetLinkedTrap(), SetLocalRotation(), WorldObject::SetMap(), WorldObject::SetName(), Object::SetObjectScale(), SetParentRotation(), SetPhaseMask(), SetRespawnCompatibilityMode(), WorldObject::SetVisibilityDistanceOverride(), WorldObject::SetZoneScript(), GameObjectTemplate::size, sObjectMgr, GameObjectTemplate::spellId, sSpellMgr, GameObjectTemplate::startOpen, STEALTH_TRAP, GameObjectTemplate::stealthed, sTransportMgr, GameObjectTemplate::StringId, TARGET_CHECK_ALLY, TARGET_CHECK_DEFAULT, TARGET_CHECK_ENEMY, TARGET_OBJECT_TYPE_UNIT, GameObjectValue::TargetSearcherCheckType, TC_LOG_ERROR, Template, GameObjectValue::Transport, GameObjectTemplate::transport, GameObjectValue::Trap, GameObjectTemplate::trap, GameObjectTemplate::type, UPDATEFLAG_POSITION, UPDATEFLAG_TRANSPORT, WorldObject::UpdatePositionData(), urand(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by Battleground::AddObject(), Create(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleDropFlag(), gobject_commandscript::HandleGameObjectAddCommand(), LoadFromDB(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), Battlefield::SpawnGameObject(), and WorldObject::SummonGameObject().
|
protected |
Definition at line 2869 of file GameObject.cpp.
References GameObjectModel::Create(), m_model, and sWorld.
Referenced by Transport::Create(), Create(), and UpdateModel().
| void GameObject::Delete | ( | ) |
Definition at line 954 of file GameObject.cpp.
References WorldObject::AddObjectToRemoveList(), GetGameObjectOverride(), Object::GetGUID(), GetSpawnId(), GO_NOT_READY, GO_STATE_READY, RemoveFromOwner(), ReplaceAllFlags(), WorldObject::SendObjectDeSpawnAnim(), SetGoState(), SetLootState(), and sPoolMgr.
Referenced by OPvPCapturePoint::DelCapturePoint(), 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(), BattlegroundEY::RespawnFlagAfterDrop(), Update(), go_celestial_planetarium_access::UpdateAI(), go_twilight_portal::UpdateAI(), and Use().
|
static |
Definition at line 1155 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::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 OPvPCapturePoint::DelObject(), and gobject_commandscript::HandleGameObjectDeleteCommand().
| void GameObject::DespawnOrUnsummon | ( | Milliseconds | delay = 0ms, |
| Seconds | forceRespawnTime = 0s |
||
| ) |
Definition at line 933 of file GameObject.cpp.
References Delete(), m_despawnDelay, m_despawnRespawnTime, m_goData, SaveRespawnTime(), and SpawnData::spawntimesecs.
Referenced by ActivateObject(), go_ahune_ice_stone::OnGossipSelect(), go_ahune_ice_spear::Reset(), SetLootState(), Update(), go_caribou_trap::UpdateAI(), and npc_train_wrecker::npc_train_wreckerAI::VerifyTarget().
| void GameObject::EnableCollision | ( | bool | enable | ) |
Definition at line 2615 of file GameObject.cpp.
References GameObjectModel::enable(), WorldObject::GetPhaseMask(), and m_model.
Referenced by AddToWorld(), SetDestructibleState(), SetGoState(), SetLootState(), and SetPhaseMask().
| void GameObject::EventInform | ( | uint32 | eventId, |
| WorldObject * | invoker = nullptr |
||
| ) |
Definition at line 2271 of file GameObject.cpp.
References AI(), GameObjectAI::EventInform(), WorldObject::GetMap(), WorldObject::GetZoneScript(), and ZoneScript::ProcessEvent().
Referenced by Transport::DoEventIfAny(), SetDestructibleState(), and Use().
| std::string const & GameObject::GetAIName | ( | ) | const |
Definition at line 171 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by GetDebugInfo().
|
overridevirtual |
Reimplemented from Object.
Reimplemented in Transport.
Definition at line 2874 of file GameObject.cpp.
References GetAIName(), WorldObject::GetDebugInfo(), GetGoState(), GetScriptId(), and GetSpawnId().
Referenced by Transport::GetDebugInfo().
|
inline |
Definition at line 258 of file GameObject.h.
References GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GO_FLAG_DAMAGED, GO_FLAG_DESTROYED, and Object::HasFlag().
Referenced by ModifyHealth().
|
inline |
Definition at line 283 of file GameObject.h.
References GAMEOBJECT_DISPLAYID, and Object::GetUInt32Value().
Referenced by GameObjectModelOwnerImpl::GetDisplayId().
|
inlineoverridevirtual |
Reimplemented from Object.
Definition at line 97 of file GameObject.h.
References GAMEOBJECT_DYNAMIC, and Object::GetUInt32Value().
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 285 of file GameObject.h.
References GAMEOBJECT_FACTION, and Object::GetUInt32Value().
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 973 of file GameObject.cpp.
References Loot::clear(), Loot::empty(), Loot::FillLoot(), WorldObject::GetZoneAndAreaId(), and LootTemplates_Fishing.
Referenced by Player::SendLoot().
Definition at line 993 of file GameObject.cpp.
References Loot::clear(), Loot::empty(), Loot::FillLoot(), WorldObject::GetZoneAndAreaId(), LOOT_MODE_JUNK_FISH, and LootTemplates_Fishing.
Referenced by Player::SendLoot().
|
inline |
Definition at line 105 of file GameObject.h.
Referenced by GetScriptId(), gobject_commandscript::HandleGameObjectInfoCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), and SetGoArtKit().
| GameObjectOverride const * GameObject::GetGameObjectOverride | ( | ) | const |
Definition at line 906 of file GameObject.cpp.
References m_goTemplateAddon, m_spawnId, and sObjectMgr.
Referenced by Transport::Create(), Create(), Delete(), and Update().
|
inline |
Definition at line 183 of file GameObject.h.
References GAMEOBJECT_BYTES_1, and Object::GetByteValue().
Referenced by SaveToDB(), Update(), and Use().
|
inline |
Definition at line 181 of file GameObject.h.
References GAMEOBJECT_BYTES_1, and Object::GetByteValue().
Referenced by SaveToDB().
|
inline |
Definition at line 102 of file GameObject.h.
Referenced by ActivateToQuest(), BuildValuesUpdate(), Spell::CheckCast(), Create(), Spell::EffectOpenLock(), Transport::EnableMovement(), BattlegroundWS::EventPlayerClickedOnFlag(), Player::GetDefaultGossipMenuForSource(), Player::GetGameObjectIfCanInteractWith(), GetLevelForTarget(), GetScriptId(), GetSpellForLock(), GetTransportPeriod(), go_twilight_portal::go_twilight_portal(), WorldSession::HandleAlterAppearance(), OutdoorPvPSI::HandleCustomSpell(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), OPvPCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerLeave(), IsAtInteractDistance(), IsAtInteractDistance(), IsDestructibleBuilding(), IsDynTransport(), IsNeverVisible(), IsTransport(), LoadFromDB(), Transport::LoadStaticPassengers(), ModifyHealth(), 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(), go_celestial_planetarium_access::OnReportUse(), Trinity::NearestGameObjectFishingHole::operator()(), Trinity::GameObjectFocusCheck::operator()(), Trinity::GameObjectInRangeCheck::operator()(), RemoveFromOwner(), go_vazruden_liquid_fire::Reset(), Creature::SaveToDB(), SaveToDB(), OPvPCapturePoint::SendChangePhase(), Player::SendLoot(), Spell::SendLoot(), BfCapturePoint::SetCapturePointData(), SetLootState(), OPvPCapturePoint::Update(), Transport::Update(), Update(), UpdateVisibilityOf_helper(), Use(), and UseDoorOrButton().
|
inline |
Definition at line 178 of file GameObject.h.
References GAMEOBJECT_BYTES_1, and Object::GetByteValue().
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(), debug_commandscript::HandleDebugTransportCommand(), SaveToDB(), SetLootState(), go_mammoth_trap::SpellHit(), SwitchDoorOrButton(), Transport::Update(), Update(), and go_suppression_device::UpdateAI().
|
inline |
Definition at line 176 of file GameObject.h.
References GAMEOBJECT_BYTES_1, and Object::GetByteValue().
Referenced by Map::_ScriptProcessDoor(), ActivateToQuest(), AddToWorld(), BuildValuesUpdate(), Spell::CheckEffectTarget(), WorldSession::DoLootRelease(), Spell::EffectSummonObjectWild(), Player::GetGameObjectIfCanInteractWith(), GetInteractionDistance(), GetLevelForTarget(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleMovementOpcode(), Battleground::HandleTriggerBuff(), IsAtInteractDistance(), WorldObject::IsValidAttackTarget(), OutdoorPvP::OnGameObjectCreate(), OutdoorPvP::OnGameObjectRemove(), 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(), Trinity::NearestGameObjectTypeInObjectRangeCheck::operator()(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), Player::PrepareGossipMenu(), Map::ScriptsProcess(), Spell::SendLoot(), Player::SendQuestGiverStatusMultiple(), SetDestructibleState(), SetLootState(), Update(), and Use().
|
inline |
Definition at line 106 of file GameObject.h.
Referenced by WorldSession::DoLootRelease(), Transport::GetTimer(), and misc_commandscript::HandleDamageGoCommand().
| float GameObject::GetInteractionDistance | ( | ) | const |
Definition at line 2801 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, GetGoType(), and INTERACTION_DISTANCE.
Referenced by IsAtInteractDistance().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1337 of file GameObject.cpp.
References GAMEOBJECT_TYPE_TRAP, GetGOInfo(), GetGoType(), WorldObject::GetOwner(), GameObjectTemplate::level, Object::ToUnit(), and GameObjectTemplate::trap.
| GameObject * GameObject::GetLinkedTrap | ( | ) |
Definition at line 2697 of file GameObject.cpp.
References ObjectAccessor::GetGameObject(), and m_linkedTrap.
Referenced by Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), RemoveFromWorld(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), TriggeringLinkedGameObject(), and Update().
|
inline |
Definition at line 118 of file GameObject.h.
Referenced by GetWorldRotation().
|
inline |
Definition at line 204 of file GameObject.h.
Referenced by Player::SendLoot().
|
inline |
Definition at line 197 of file GameObject.h.
Referenced by Player::SendLoot().
| Player * GameObject::GetLootRecipient | ( | ) | const |
Definition at line 2639 of file GameObject.cpp.
References ObjectAccessor::FindConnectedPlayer(), and m_lootRecipient.
| Group * GameObject::GetLootRecipientGroup | ( | ) | const |
Definition at line 2646 of file GameObject.cpp.
References m_lootRecipientGroup, and sGroupMgr.
Referenced by IsLootAllowedFor().
|
inline |
Definition at line 193 of file GameObject.h.
Referenced by ActivateToQuest(), AddToWorld(), Player::SendLoot(), and Use().
|
overridevirtual |
Implements Object.
Definition at line 2325 of file GameObject.cpp.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), and sObjectMgr.
|
inlineoverridevirtual |
Implements WorldObject.
Definition at line 141 of file GameObject.h.
References Object::GetGuidValue(), and OBJECT_FIELD_CREATED_BY.
Referenced by Unit::AddGameObject(), BuildValuesUpdate(), WorldSession::DoLootRelease(), SmartScript::GetTargets(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMoneyOpcode(), IsAlwaysVisibleFor(), spell_gen_seaforium_blast::Load(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), RemoveFromOwner(), Unit::RemoveGameObject(), Player::SendLoot(), Update(), and Use().
|
inline |
Definition at line 119 of file GameObject.h.
|
inline |
Definition at line 271 of file GameObject.h.
Referenced by gobject_commandscript::HandleGameObjectInfoCommand().
|
inline |
Definition at line 163 of file GameObject.h.
Referenced by gobject_commandscript::HandleGameObjectTargetCommand(), and Player::SendLoot().
| void GameObject::GetRespawnPosition | ( | float & | x, |
| float & | y, | ||
| float & | z, | ||
| float * | ori = nullptr |
||
| ) | const |
Definition at line 2783 of file GameObject.cpp.
References Position::GetPosition(), Position::GetPosition(), m_goData, and SpawnData::spawnPoint.
Referenced by Map::GameObjectRespawnRelocation().
|
inline |
Definition at line 150 of file GameObject.h.
Referenced by Player::SendLoot().
| time_t GameObject::GetRespawnTimeEx | ( | ) | const |
Definition at line 1353 of file GameObject.cpp.
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by gobject_commandscript::HandleGameObjectTargetCommand().
| uint32 GameObject::GetScriptId | ( | ) | const |
Definition at line 2287 of file GameObject.cpp.
References gameObjectData, GetGameObjectData(), GetGOInfo(), and GameObjectTemplate::ScriptId.
Referenced by GetDebugInfo(), ScriptMgr::GetGameObjectAI(), WorldSession::HandleGossipSelectOptionOpcode(), ScriptMgr::OnAddCreaturePassenger(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnRelocate(), ScriptMgr::OnRemovePassenger(), and ScriptMgr::OnTransportUpdate().
|
inline |
Definition at line 112 of file GameObject.h.
Referenced by Map::AddToActive(), Create(), Delete(), GetDebugInfo(), SmartScript::GetScript(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), OPvPCapturePoint::HandleOpenGo(), SmartScript::IsSmart(), OutdoorPvP::OnGameObjectCreate(), OutdoorPvP::OnGameObjectRemove(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), Map::RemoveFromActive(), Spell::SendLoot(), Update(), and Use().
Definition at line 2927 of file GameObject.cpp.
References GetGOInfo(), GameObjectTemplate::GetLockId(), 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 148 of file GameObject.h.
Referenced by Unit::AddGameObject(), Unit::RemoveGameObjectImpl(), and Update().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 297 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, and Position::GetOrientation().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 294 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, and Position::GetPositionX().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 295 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, and Position::GetPositionY().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 296 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, and Position::GetPositionZ().
|
inline |
Definition at line 280 of file GameObject.h.
Referenced by InheritStringIds().
|
inline |
Definition at line 103 of file GameObject.h.
Referenced by ActivateObject(), and Player::SendLoot().
|
virtual |
Reimplemented in Transport.
Definition at line 2593 of file GameObject.cpp.
References GameObjectValue::AnimationInfo, ASSERT, GAMEOBJECT_TYPE_TRANSPORT, GetGOInfo(), m_goValue, TransportAnimation::TotalTime, and GameObjectValue::Transport.
Referenced by BuildValuesUpdate().
|
inline |
Definition at line 217 of file GameObject.h.
Referenced by Use().
|
inline |
Definition at line 216 of file GameObject.h.
Referenced by WorldSession::DoLootRelease(), and go_shallow_grave::go_shallow_graveAI::OnGossipHello().
| QuaternionData GameObject::GetWorldRotation | ( | ) | const |
Definition at line 2378 of file GameObject.cpp.
References GetLocalRotation(), WorldObject::GetTransport(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by IsAtInteractDistance().
|
inline |
Definition at line 170 of file GameObject.h.
References flags, GAMEOBJECT_FLAGS, and Object::HasFlag().
Referenced by go_blackened_urn::go_blackened_urnAI::OnGossipHello(), go_mimiron_hardmode_button::go_mimiron_hardmode_buttonAI::OnGossipHello(), and go_celestial_planetarium_access::OnReportUse().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1234 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
|
inline |
Definition at line 198 of file GameObject.h.
|
inline |
Definition at line 227 of file GameObject.h.
Referenced by BuildValuesUpdate().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1229 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
| bool GameObject::HasStringId | ( | std::string_view | id | ) | const |
Definition at line 2305 of file GameObject.cpp.
References m_stringIds.
Referenced by Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()().
| void GameObject::InheritStringIds | ( | GameObject const * | parent | ) |
Definition at line 2296 of file GameObject.cpp.
References GetStringId(), m_stringIds, Script, and SetScriptStringId().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1299 of file GameObject.cpp.
References Object::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 2882 of file GameObject.cpp.
References GAMEOBJECT_TYPE_SPELL_FOCUS, Position::GetExactDistSq(), GetGOInfo(), GetGoType(), GetInteractionDistance(), SpellInfo::GetMaxRange(), GetSpellForLock(), IsAtInteractDistance(), SpellInfo::IsPositive(), and sGameObjectDisplayInfoStore.
| bool GameObject::IsAtInteractDistance | ( | Position const & | pos, |
| float | radius | ||
| ) | const |
Definition at line 2898 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 1260 of file GameObject.cpp.
References GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GetGOInfo(), and GameObjectTemplate::type.
Referenced by misc_commandscript::HandleDamageGoCommand(), and IsAlwaysVisibleFor().
| bool GameObject::IsDynTransport | ( | ) | const |
Definition at line 1250 of file GameObject.cpp.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GetGOInfo(), GameObjectTemplate::pause, GameObjectTemplate::transport, and GameObjectTemplate::type.
| 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 2245 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()(), and Trinity::WorldObjectSpellAreaTargetCheck::operator()().
|
inline |
Definition at line 207 of file GameObject.h.
Referenced by Spell::EffectOpenLock().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1325 of file GameObject.cpp.
References WorldObject::IsInvisibleDueToDespawn(), and isSpawned().
| bool GameObject::IsLootAllowedFor | ( | Player const * | player | ) | const |
Definition at line 2682 of file GameObject.cpp.
References Player::GetGroup(), Object::GetGUID(), GetLootRecipientGroup(), m_lootRecipient, and m_lootRecipientGroup.
Referenced by BuildValuesUpdate().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1288 of file GameObject.cpp.
References GetGOInfo(), and WorldObject::IsNeverVisible().
|
inline |
Definition at line 155 of file GameObject.h.
Referenced by Battleground::HandleTriggerBuff(), SmartGameObjectAI::InitializeAI(), IsInvisibleDueToDespawn(), GameObjectModelOwnerImpl::IsSpawned(), dummy_dragonAI::OpenPortal(), Trinity::NearestGameObjectFishingHole::operator()(), Trinity::NearestGameObjectEntryInObjectRangeCheck::operator()(), Trinity::NearestUnspawnedGameObjectEntryInObjectRangeCheck::operator()(), Trinity::GameObjectFocusCheck::operator()(), Trinity::GameObjectWithOptionsInObjectRangeCheck< Customizer >::operator()(), Refresh(), Map::ScriptsProcess(), Spell::SendLoot(), and Update().
|
inline |
Definition at line 161 of file GameObject.h.
Referenced by GameEventMgr::GameEventSpawn(), and Player::SendLoot().
| bool GameObject::IsTransport | ( | ) | const |
Definition at line 1239 of file GameObject.cpp.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GetGOInfo(), and GameObjectTemplate::type.
Referenced by AddToWorld(), IsAlwaysVisibleFor(), and SetGoState().
| bool GameObject::IsWithinDistInMap | ( | Player const * | player | ) | const |
Definition at line 2922 of file GameObject.cpp.
References WorldObject::InSamePhase(), IsAtInteractDistance(), and WorldObject::IsInMap().
Referenced by WorldSession::DoLootRelease(), Player::GetGameObjectIfCanInteractWith(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMoneyOpcode(), Trinity::GameObjectFocusCheck::operator()(), Player::SendLoot(), and OPvPCapturePoint::Update().
| bool WorldObject::IsWithinDistInMap | ( | WorldObject const * | obj, |
| float | dist2compare, | ||
| bool | is3D = true, |
||
| bool | incOwnRadius = true, |
||
| bool | incTargetRadius = true |
||
| ) | const |
Definition at line 404 of file Object.cpp.
| bool GameObject::LoadFromDB | ( | ObjectGuid::LowType | spawnId, |
| Map * | map, | ||
| bool | addToMap, | ||
| bool | = true |
||
| ) |
Definition at line 1086 of file GameObject.cpp.
References GameObjectData::animprogress, GameObjectData::artKit, AsUnderlyingType(), Create(), SpawnGroupTemplateData::flags, GameObject, Map::GenerateLowGuid(), GameObjectTemplate::GetDespawnPossibility(), GameTime::GetGameTime(), GetGOInfo(), Map::GetGORespawnTime(), WorldObject::GetMap(), GO_FLAG_NODESPAWN, GameObjectData::goState, SpawnData::id, GameObjectTemplate::IsDespawnAtAction(), m_goData, m_respawnCompatibilityMode, m_respawnDelayTime, m_respawnTime, m_spawnedByDefault, m_spawnId, m_stringIds, SpawnData::phaseMask, Map::RemoveRespawnTime(), GameObjectData::rotation, SetFlag(), sObjectMgr, Spawn, SPAWN_TYPE_GAMEOBJECT, SPAWNGROUP_FLAG_COMPATIBILITY_MODE, SpawnMetadata::spawnGroupData, SpawnData::spawnPoint, SpawnData::spawntimesecs, SpawnData::StringId, TC_LOG_ERROR, and TC_LOG_WARN.
Referenced by ObjectMgr::AddGameObjectData(), Transport::CreateGOPassenger(), Map::DoRespawn(), GameEventMgr::GameEventSpawn(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), and Map::SpawnGroupSpawn().
| GameObject * GameObject::LookupFishingHoleAround | ( | float | range | ) |
Definition at line 1448 of file GameObject.cpp.
References Cell::VisitGridObjects().
Referenced by Use().
| void GameObject::ModifyHealth | ( | int32 | change, |
| WorldObject * | attackerOrHealer = nullptr, |
||
| uint32 | spellId = 0 |
||
| ) |
Definition at line 2395 of file GameObject.cpp.
References GameObjectValue::Building, GameObjectTemplate::damagedNumHits, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetDestructibleState(), GetGOInfo(), Object::GetPackGUID(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GameObjectValue::Health, m_goValue, GameObjectValue::MaxHealth, SetDestructibleState(), SetGoAnimProgress(), and SMSG_DESTRUCTIBLE_BUILDING_DAMAGE.
Referenced by Spell::EffectGameObjectDamage(), Spell::EffectGameObjectRepair(), and misc_commandscript::HandleDamageGoCommand().
| void GameObject::Refresh | ( | ) |
Definition at line 917 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(), and BattlegroundSA::ResetObjs().
|
inline |
Definition at line 298 of file GameObject.h.
Referenced by Transport::CreateGOPassenger(), and Transport::UpdatePassengerPositions().
|
inline |
Definition at line 172 of file GameObject.h.
References flags, GAMEOBJECT_FLAGS, and Object::RemoveFlag().
Referenced by go_suppression_device::Activate(), ActivateObject(), BfWGGameObjectBuilding::Destroyed(), BattlegroundIC::DestroyGate(), instance_magisters_terrace::instance_magisters_terrace_InstanceMapScript::OnGameObjectCreate(), instance_zulgurub::instance_zulgurub_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(), ResetDoorOrButton(), SetDestructibleState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetTeleporterState(), BattlegroundIC::StartingEventOpenDoors(), SwitchDoorOrButton(), and Update().
|
private |
Definition at line 184 of file GameObject.cpp.
References ASSERT, ObjectGuid::Empty, GetGOInfo(), Object::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 Object.
Definition at line 230 of file GameObject.cpp.
References Object::GetGUID(), GetLinkedTrap(), WorldObject::GetMap(), Map::GetObjectsStore(), Object::IsInWorld(), m_model, m_spawnId, WorldObject::m_zoneScript, Trinity::Containers::MultimapErasePair(), ZoneScript::OnGameObjectRemove(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Remove(), RemoveFromOwner(), WorldObject::RemoveFromWorld(), and Map::RemoveGameObjectModel().
Referenced by Map::RemoveFromMap().
|
inline |
Definition at line 201 of file GameObject.h.
|
inlineoverridevirtual |
Reimplemented from Object.
Definition at line 98 of file GameObject.h.
References GAMEOBJECT_DYNAMIC, and Object::SetUInt32Value().
|
inline |
Definition at line 173 of file GameObject.h.
References flags, GAMEOBJECT_FLAGS, and Object::SetUInt32Value().
Referenced by Transport::Create(), Create(), Delete(), and Update().
| void GameObject::ResetDoorOrButton | ( | ) |
Definition at line 1457 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 202 of file GameObject.h.
References LOOT_MODE_DEFAULT.
Referenced by GameObject().
| void GameObject::Respawn | ( | ) |
Definition at line 1373 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 1269 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 1013 of file GameObject.cpp.
References WorldLocation::GetMapId(), m_spawnId, SpawnData::phaseMask, SaveToDB(), sObjectMgr, SpawnData::spawnMask, and TC_LOG_ERROR.
Referenced by SaveToDB().
Definition at line 1027 of file GameObject.cpp.
References GameObjectData::animprogress, GameObjectData::artKit, ASSERT, Object::GetEntry(), GetGoAnimProgress(), GetGoArtKit(), GetGOInfo(), GetGoState(), WorldLocation::GetMapId(), Position::GetOrientation(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GameObjectData::goState, SpawnData::id, m_localRotation, m_respawnDelayTime, m_spawnedByDefault, m_spawnId, SpawnMetadata::mapId, SpawnData::phaseMask, Position::Relocate(), GameObjectData::rotation, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sObjectMgr, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnMask, SpawnData::spawnPoint, SpawnData::spawntimesecs, QuaternionData::w, WORLD_DEL_GAMEOBJECT, WORLD_INS_GAMEOBJECT, WorldDatabase, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
| void GameObject::SendCustomAnim | ( | uint32 | anim | ) |
Definition at line 2237 of file GameObject.cpp.
References Object::GetGUID(), WorldObject::SendMessageToSet(), and SMSG_GAMEOBJECT_CUSTOM_ANIM.
Referenced by ActivateObject(), go_gong_of_bethekk::OnGossipHello(), go_gong::go_gongAI::OnGossipHello(), Update(), go_suppression_device::UpdateAI(), and Use().
| void GameObject::SetDestructibleState | ( | GameObjectDestructibleState | state, |
| WorldObject * | attackerOrHealer = nullptr, |
||
| bool | setHealth = false |
||
| ) |
Definition at line 2442 of file GameObject.cpp.
References AI(), ASSERT, GameObjectValue::Building, GameObjectTemplate::building, GameObjectAI::Damaged(), GameObjectTemplate::damagedEvent, GameObjectTemplate::damagedNumHits, GameObjectAI::Destroyed(), GameObjectTemplate::destroyedEvent, GameObjectTemplate::destructibleData, GameObjectTemplate::displayId, EnableCollision(), EventInform(), GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetGoType(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GO_DESTRUCTIBLE_REBUILDING, GO_FLAG_DAMAGED, GO_FLAG_DESTROYED, GameObjectValue::Health, m_goInfo, m_goValue, GameObjectValue::MaxHealth, GameObjectTemplate::rebuildingEvent, RemoveFlag(), sDestructibleModelDataStore, SetDisplayId(), SetFlag(), and SetGoAnimProgress().
Referenced by Spell::EffectGameObjectSetDestructionState(), BfWGGameObjectBuilding::Init(), ModifyHealth(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnGameObjectCreate(), FrozenThroneResetWorker::operator()(), and BattlegroundIC::PostUpdateImpl().
| void GameObject::SetDisplayId | ( | uint32 | displayid | ) |
Definition at line 2602 of file GameObject.cpp.
References GAMEOBJECT_DISPLAYID, Object::SetUInt32Value(), and UpdateModel().
Referenced by Transport::Create(), Create(), and SetDestructibleState().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 286 of file GameObject.h.
References GAMEOBJECT_FACTION, and Object::SetUInt32Value().
Referenced by Transport::Create(), Create(), Spell::EffectDuel(), Spell::EffectSummonObject(), BattlegroundIC::EventPlayerClickedOnFlag(), instance_razorfen_kraul::instance_razorfen_kraul_InstanceMapScript::OnGameObjectCreate(), go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello(), BattlegroundIC::PostUpdateImpl(), and BattlegroundSA::ResetObjs().
|
inline |
Definition at line 171 of file GameObject.h.
References flags, GAMEOBJECT_FLAGS, and Object::SetFlag().
Referenced by ActivateObject(), 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_zulgurub::instance_zulgurub_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_gong_of_bethekk::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 184 of file GameObject.h.
References GAMEOBJECT_BYTES_1, and Object::SetByteValue().
Referenced by Transport::Create(), Create(), go_empowering_blood_orb::HandleObjectUse(), ModifyHealth(), and SetDestructibleState().
| void GameObject::SetGoArtKit | ( | uint8 | artkit | ) |
Definition at line 1577 of file GameObject.cpp.
References GameObjectData::artKit, GAMEOBJECT_BYTES_1, m_spawnId, Object::SetByteValue(), and sObjectMgr.
Referenced by ActivateObject(), Create(), and SetGoArtKit().
|
static |
Definition at line 1585 of file GameObject.cpp.
References GetGameObjectData(), SetGoArtKit(), and sObjectMgr.
| void GameObject::SetGoState | ( | GOState | state | ) |
Definition at line 2574 of file GameObject.cpp.
References AI(), EnableCollision(), GAMEOBJECT_BYTES_1, GO_STATE_READY, Object::IsInWorld(), IsTransport(), m_model, GameObjectAI::OnStateChanged(), and Object::SetByteValue().
Referenced by go_suppression_device::Activate(), Transport::Create(), Create(), instance_dire_maul::instance_dire_maul_InstanceMapScript::CrystalCreatureCheck(), go_suppression_device::Deactivate(), Delete(), InstanceScript::HandleGameObject(), go_empowering_blood_orb::HandleObjectUse(), instance_ulduar::instance_ulduar_InstanceMapScript::OnGameObjectCreate(), instance_zulaman::instance_zulaman_InstanceMapScript::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(), 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(), BattlegroundIC::StartingEventOpenDoors(), SwitchDoorOrButton(), Transport::Update(), Update(), go_caribou_trap::UpdateAI(), InstanceScript::UpdateDoorState(), instance_ulduar::instance_ulduar_InstanceMapScript::UpdateDoorState(), and Use().
|
inline |
Definition at line 177 of file GameObject.h.
References GAMEOBJECT_BYTES_1, and Object::SetByteValue().
Referenced by Transport::Create(), and Create().
|
inline |
Definition at line 175 of file GameObject.h.
References GAMEOBJECT_LEVEL, and Object::SetUInt32Value().
Referenced by Create(), Spell::EffectDuel(), Spell::EffectSummonObject(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), and Transport::SetPeriod().
|
inline |
| void GameObject::SetLocalRotation | ( | float | qx, |
| float | qy, | ||
| float | qz, | ||
| float | qw | ||
| ) |
Definition at line 2353 of file GameObject.cpp.
References m_localRotation, UpdatePackedRotation(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by Transport::Create(), Create(), and SetLocalRotationAngles().
| void GameObject::SetLocalRotationAngles | ( | float | z_rot, |
| float | y_rot, | ||
| float | x_rot | ||
| ) |
Definition at line 2372 of file GameObject.cpp.
References SetLocalRotation().
| void GameObject::SetLootGenerationTime | ( | ) |
Definition at line 2569 of file GameObject.cpp.
References GameTime::GetGameTime(), and m_lootGenerationTime.
Referenced by Player::SendLoot().
|
inline |
Definition at line 199 of file GameObject.h.
Definition at line 2653 of file GameObject.cpp.
References ObjectGuid::Clear(), ObjectGuid::Empty, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Player::GetGroup(), Group::GetGUID(), Object::GetGUID(), Object::GetTypeId(), Unit::IsVehicle(), m_lootRecipient, m_lootRecipientGroup, and TYPEID_PLAYER.
Referenced by instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate().
Definition at line 2533 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(), Object::GetGUID(), WorldObject::GetMap(), GO_ACTIVATED, GO_JUST_DEACTIVATED, GO_READY, GO_STATE_READY, m_lootState, m_lootStateUnitGUID, m_model, m_restockTime, and GameObjectAI::OnLootStateChanged().
Referenced by go_suppression_device::Activate(), Delete(), WorldSession::DoLootRelease(), Spell::EffectOpenLock(), 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(), Player::SendLoot(), SetRespawnTime(), Update(), Use(), and UseDoorOrButton().
|
inline |
Definition at line 131 of file GameObject.h.
References ABORT, WorldObject::GetOwnerGUID(), ObjectGuid::IsEmpty(), OBJECT_FIELD_CREATED_BY, and Object::SetGuidValue().
Referenced by Unit::AddGameObject(), Spell::EffectTransmitted(), RemoveFromOwner(), Unit::RemoveGameObjectImpl(), and Use().
| void GameObject::SetParentRotation | ( | QuaternionData const & | rotation | ) |
Definition at line 2364 of file GameObject.cpp.
References GAMEOBJECT_PARENTROTATION, Object::SetFloatValue(), QuaternionData::w, QuaternionData::x, QuaternionData::y, and QuaternionData::z.
Referenced by Transport::Create(), Create(), and BattlegroundSA::ResetObjs().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2608 of file GameObject.cpp.
References EnableCollision(), GameObjectModel::isEnabled(), m_model, and WorldObject::SetPhaseMask().
Referenced by Create(), go_twilight_portal::go_twilight_portal(), instance_blackwing_lair::instance_blackwing_lair_InstanceMapScript::OnGameObjectCreate(), and instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnGameObjectCreate().
|
inline |
Definition at line 270 of file GameObject.h.
Referenced by Create(), and gob_spider_egg::JustSummoned().
| void GameObject::SetRespawnTime | ( | int32 | respawn | ) |
Definition at line 1362 of file GameObject.cpp.
References GameTime::GetGameTime(), GO_JUST_DEACTIVATED, m_respawnCompatibilityMode, m_respawnDelayTime, m_respawnTime, m_spawnedByDefault, SetLootState(), and WorldObject::UpdateObjectVisibility().
Referenced by BfCapturePoint::DelCapturePoint(), OPvPCapturePoint::DelCapturePoint(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleCustomSpell(), OutdoorPvPSI::HandleDropFlag(), gobject_commandscript::HandleGameObjectAddCommand(), 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(), BattlegroundIC::SetupBattleground(), WorldObject::SummonGameObject(), and Update().
| void GameObject::SetScriptStringId | ( | std::string | id | ) |
Definition at line 2310 of file GameObject.cpp.
References AsUnderlyingType(), m_scriptStringId, m_stringIds, and Script.
Referenced by InheritStringIds().
|
inline |
Definition at line 162 of file GameObject.h.
Referenced by WorldObject::SummonGameObject().
|
inline |
Definition at line 143 of file GameObject.h.
Referenced by Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), and Use().
|
private |
Definition at line 1600 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 291 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 292 of file GameObject.h.
References GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT.
Definition at line 1434 of file GameObject.cpp.
References GAMEOBJECT_TYPE_TRAP, GetLinkedTrap(), SpellInfo::Id, sObjectMgr, GameObjectTemplate::spellId, sSpellMgr, GameObjectTemplate::trap, and GameObjectTemplate::type.
Referenced by Spell::SendLoot(), and Use().
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Transport.
Definition at line 453 of file GameObject.cpp.
References WorldObject::AddObjectToRemoveList(), Map::AddToMap(), Object::AddToObjectUpdateIfNeeded(), AI(), AIM_Initialize(), GameObjectValue::AnimationInfo, Map::ApplyDynamicModeRespawnScaling(), UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), WorldObject::CastSpell(), GameObjectTemplate::chest, GameObjectTemplate::chestRestockTime, ObjectGuid::Clear(), Loot::clear(), CONFIG_RESPAWN_DYNAMICMODE, GameObjectTemplate::consumable, GameObjectTemplate::cooldown, Delete(), DespawnOrUnsummon(), WorldObject::DestroyForNearbyPlayers(), GameObjectTemplate::diameter, FISHING_BOBBER_READY_TIME, GameObjectValue::FishingHole, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_TRANSPORT, GAMEOBJECT_TYPE_TRAP, GameObjectTemplate::GetAutoCloseTime(), GameObjectTemplate::GetCharges(), Object::GetEntry(), GetGameObjectOverride(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), GetGoAnimProgress(), GetGOInfo(), GetGoState(), GetGoType(), Object::GetGUID(), Map::GetLinkedRespawnTime(), GetLinkedTrap(), GameObjectTemplate::GetLockId(), WorldObject::GetMap(), WorldObject::GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), GetSpawnId(), GetSpellId(), Object::GetTypeId(), ObjectAccessor::GetUnit(), GO_ACTIVATED, GO_FLAG_IN_USE, GO_FLAG_NODESPAWN, GO_JUST_DEACTIVATED, GO_NOT_READY, GO_READY, GO_STATE_ACTIVE, GO_STATE_READY, GameObjectTemplate::goober, GRID_MAP_TYPE_MASK_CREATURE, GRID_MAP_TYPE_MASK_PLAYER, IN_MILLISECONDS, GameObjectTemplate::IsDespawnAtAction(), isSpawned(), loot, lootingGroupLowGUID, m_cooldownTime, m_despawnDelay, m_despawnRespawnTime, m_goValue, m_groupLootTimer, m_lootState, m_lootStateUnitGUID, m_respawnCompatibilityMode, m_respawnDelayTime, m_respawnTime, m_restockTime, m_SkillupList, m_spawnedByDefault, m_spawnId, m_unique_users, m_usetimes, GameObjectValue::MaxOpens, GameObjectTemplate::maxSuccessOpens, GameObjectTemplate::minSuccessOpens, MINUTE, GameObjectValue::PathProgress, RemoveFlag(), Unit::RemoveGameObject(), ReplaceAllFlags(), GameObjectAI::Reset(), ResetDoorOrButton(), SaveRespawnTime(), SendCustomAnim(), Player::SendDirectMessage(), WorldObject::SendObjectDeSpawnAnim(), SetGoState(), SetLootState(), CastSpellExtraArgs::SetOriginalCaster(), SetRespawnTime(), sGroupMgr, SMSG_FISH_ESCAPED, sObjectMgr, GameObjectTemplate::spellId, sPoolMgr, sSpellMgr, GameObjectTemplate::startDelay, sWorld, GameObjectValue::TargetSearcherCheckType, TC_LOG_ERROR, Object::ToPlayer(), Object::ToUnit(), GameObjectValue::Transport, GameObjectValue::Trap, GameObjectTemplate::trap, GameObjectTemplate::type, TYPEID_PLAYER, WorldObject::Update(), GameObjectAI::UpdateAI(), WorldObject::UpdateObjectVisibility(), urand(), Cell::VisitAllObjects(), Cell::VisitWorldObjects(), and WEEK.
|
protected |
Definition at line 2626 of file GameObject.cpp.
References CreateModel(), WorldObject::GetMap(), Map::InsertGameObjectModel(), Object::IsInWorld(), m_model, and Map::RemoveGameObjectModel().
Referenced by SetDisplayId().
| void GameObject::UpdateModelPosition | ( | ) |
Definition at line 2839 of file GameObject.cpp.
References WorldObject::GetMap(), Map::InsertGameObjectModel(), m_model, Map::RemoveGameObjectModel(), and GameObjectModel::UpdatePosition().
Referenced by Map::GameObjectRelocation(), Map::MoveAllGameObjectsInMoveList(), and Transport::UpdatePosition().
|
private |
Definition at line 2338 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 | ) |
Definition at line 1613 of file GameObject.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT, AddUniqueUse(), AddUse(), AI(), GameObjectTemplate::animSpell, GameObjectTemplate::barberChair, BATTLEGROUND_EY, BATTLEGROUND_WS, GameObjectTemplate::camera, GameObjectTemplate::CannotBeUsedUnderImmunity(), Player::CanUseBattlegroundObject(), GameObjectTemplate::castersGrouped, GameObjectTemplate::casterTargetSpell, GameObjectTemplate::casterTargetSpellTargets, WorldObject::CastSpell(), GameObjectTemplate::chair, GameObjectTemplate::chairheight, ChairListSlots, GameObjectTemplate::cinematicId, ObjectGuid::Clear(), CONTACT_DISTANCE, GameObjectTemplate::cooldown, CURRENT_CHANNELED_SPELL, GameObjectTemplate::customAnim, DEFAULT_VISIBILITY_DISTANCE, Delete(), GameObjectTemplate::entry, GameObjectTemplate::eventId, GameObjectTemplate::eventID, EventInform(), Battleground::EventPlayerClickedOnFlag(), ObjectAccessor::FindPlayer(), Unit::FinishSpell(), GAMEOBJECT_TYPE_BARBER_CHAIR, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CAMERA, GAMEOBJECT_TYPE_CHAIR, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_FLAGDROP, GAMEOBJECT_TYPE_FLAGSTAND, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_MEETINGSTONE, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_RITUAL, GAMEOBJECT_TYPE_SPELLCASTER, GAMEOBJECT_TYPE_TRAP, GameObjectTemplate::GetAutoCloseTime(), Player::GetBattleground(), WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Unit::GetCurrentSpell(), WorldObject::GetDistance2d(), Object::GetEntry(), GameTime::GetGameTimeMS(), GetGoAnimProgress(), GetGOInfo(), GetGoType(), Player::GetGroup(), Object::GetGUID(), Object::GetGUID(), Unit::GetLevel(), getLootState(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetOrientation(), WorldObject::GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetSkillValue(), GetSpawnId(), Unit::GetTarget(), Object::GetTypeId(), Battleground::GetTypeID(), GetUniqueUseCount(), ObjectAccessor::GetUnit(), Unit::GetVehicle(), WorldObject::GetZoneAndAreaId(), GO_ACTIVATED, GO_FLAG_IN_USE, GO_JUST_DEACTIVATED, GO_READY, GO_STATE_ACTIVE, GameObjectTemplate::goober, GameObjectTemplate::gossipID, GameObjectTemplate::height, IN_MILLISECONDS, irand(), ObjectGuid::IsEmpty(), Player::IsInSameRaidWith(), Group::IsMember(), GameObjectTemplate::IsUsableMounted(), GameObjectTemplate::linkedTrapId, LookupFishingHoleAround(), LOOT_FISHING, LOOT_FISHING_JUNK, LOOT_FISHINGHOLE, m_cooldownTime, m_goInfo, M_PI, m_ritualOwnerGUID, m_unique_users, m_usetimes, MAX_GAMEOBJECT_TYPE, GameObjectTemplate::pageId, GameObjectTemplate::partyOnly, Player::PrepareGossipMenu(), QUEST_STATUS_INCOMPLETE, GameObjectTemplate::questId, Unit::RemoveAurasByType(), RemoveFromOwner(), GameObjectTemplate::reqParticipants, GameObjectTemplate::ritualPersistent, Map::ScriptsStart(), Trinity::Containers::SelectRandomContainerElement(), Player::SendCinematicStart(), SendCustomAnim(), Player::SendDirectMessage(), Player::SendLoot(), Player::SendPreparedGossip(), SetFlag(), SetGoState(), SetLootState(), SetOwnerGUID(), SetSpellId(), Unit::SetStandState(), sEventScripts, GameObjectTemplate::size, SKILL_FISHING, GameObjectTemplate::slots, SMSG_ENABLE_BARBER_SHOP, SMSG_FISH_NOT_HOOKED, SMSG_GAMEOBJECT_PAGETEXT, sObjectMgr, sOutdoorPvPMgr, SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_STEALTH, SPELL_AURA_MOUNTED, SPELL_CAST_OK, GameObjectTemplate::spellcaster, GameObjectTemplate::spellId, sSpellMgr, GameObjectTemplate::summoningRitual, 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, TriggeringLinkedGameObject(), GameObjectTemplate::type, TYPEID_PLAYER, UNIT_FLAG_IMMUNE, UNIT_STAND_STATE_SIT, UNIT_STAND_STATE_SIT_LOW_CHAIR, Player::UpdateAchievementCriteria(), Player::UpdateFishingSkill(), Use(), and UseDoorOrButton().
Referenced by ActivateObject(), Spell::SendLoot(), npc_valiance_keep_cannoneer::UpdateAI(), and Use().
| void GameObject::UseDoorOrButton | ( | uint32 | time_to_restore = 0, |
| bool | alternative = false, |
||
| Unit * | user = nullptr |
||
| ) |
Definition at line 1469 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(), WorldSession::DoLootRelease(), 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(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), go_razorscale_mole_machine::go_razorscale_mole_machineAI::Reset(), go_ahune_ice_spear::Reset(), Spell::SendLoot(), and Use().
|
protected |
Definition at line 340 of file GameObject.h.
Referenced by Use().
| Loot GameObject::loot |
Definition at line 221 of file GameObject.h.
Referenced by Create(), WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), Player::SendLoot(), and Update().
| ObjectGuid GameObject::lootingGroupLowGUID |
Definition at line 229 of file GameObject.h.
Referenced by Update().
|
private |
Definition at line 373 of file GameObject.h.
Referenced by AIM_Destroy(), AIM_Initialize(), and ~GameObject().
|
protected |
Definition at line 329 of file GameObject.h.
Referenced by GameObject(), ResetDoorOrButton(), Update(), Use(), and UseDoorOrButton().
|
protected |
Definition at line 323 of file GameObject.h.
Referenced by DespawnOrUnsummon(), GameObject(), and Update().
|
protected |
Definition at line 324 of file GameObject.h.
Referenced by DespawnOrUnsummon(), GameObject(), and Update().
|
protected |
Definition at line 345 of file GameObject.h.
Referenced by DespawnOrUnsummon(), GameObject(), GetRespawnPosition(), LoadFromDB(), and SaveRespawnTime().
|
protected |
Definition at line 343 of file GameObject.h.
Referenced by Transport::CalculateSegmentPos(), Transport::Create(), Create(), GameObject(), IsInRange(), SetDestructibleState(), and Use().
|
protected |
Definition at line 344 of file GameObject.h.
Referenced by Transport::Create(), Create(), GameObject(), and GetGameObjectOverride().
|
protected |
Definition at line 346 of file GameObject.h.
Referenced by BuildValuesUpdate(), Transport::Create(), Create(), GetTransportPeriod(), ModifyHealth(), SetDestructibleState(), Transport::Update(), and Update().
| uint32 GameObject::m_groupLootTimer |
Definition at line 228 of file GameObject.h.
Referenced by GameObject(), and Update().
|
protected |
Definition at line 359 of file GameObject.h.
Referenced by GetLinkedTrap().
|
protected |
Definition at line 351 of file GameObject.h.
Referenced by SaveToDB(), SetLocalRotation(), and UpdatePackedRotation().
|
protected |
Definition at line 357 of file GameObject.h.
Referenced by GameObject(), and SetLootGenerationTime().
|
protected |
Definition at line 356 of file GameObject.h.
|
protected |
Definition at line 354 of file GameObject.h.
Referenced by GetLootRecipient(), IsLootAllowedFor(), and SetLootRecipient().
|
protected |
Definition at line 355 of file GameObject.h.
Referenced by GetLootRecipientGroup(), IsLootAllowedFor(), and SetLootRecipient().
|
protected |
Definition at line 325 of file GameObject.h.
Referenced by GameObject(), ResetDoorOrButton(), SetLootState(), Update(), and UseDoorOrButton().
|
protected |
Definition at line 326 of file GameObject.h.
Referenced by SetLootState(), and Update().
| GameObjectModel* GameObject::m_model |
Definition at line 288 of file GameObject.h.
Referenced by AddToWorld(), CreateModel(), EnableCollision(), RemoveFromWorld(), SetGoState(), SetLootState(), SetPhaseMask(), Transport::Update(), UpdateModel(), UpdateModelPosition(), and ~GameObject().
|
protected |
Definition at line 350 of file GameObject.h.
Referenced by GameObject(), and UpdatePackedRotation().
|
protected |
Definition at line 331 of file GameObject.h.
Referenced by Create(), GameObject(), and ResetDoorOrButton().
|
private |
Definition at line 374 of file GameObject.h.
Referenced by LoadFromDB(), SaveRespawnTime(), SetRespawnTime(), and Update().
|
protected |
Definition at line 322 of file GameObject.h.
Referenced by GameObject(), LoadFromDB(), SaveToDB(), SetRespawnTime(), and Update().
|
protected |
Definition at line 321 of file GameObject.h.
Referenced by GameObject(), GetRespawnTimeEx(), LoadFromDB(), Refresh(), Respawn(), SaveRespawnTime(), SetRespawnTime(), and Update().
|
protected |
Definition at line 328 of file GameObject.h.
Referenced by GameObject(), SetLootState(), and Update().
|
protected |
Definition at line 335 of file GameObject.h.
Referenced by Use().
|
protected |
Definition at line 348 of file GameObject.h.
Referenced by SetScriptStringId().
|
protected |
Definition at line 333 of file GameObject.h.
Referenced by Update().
|
protected |
Definition at line 327 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 342 of file GameObject.h.
Referenced by AddToWorld(), Create(), GameObject(), GetGameObjectOverride(), LoadFromDB(), RemoveFromWorld(), Respawn(), SaveRespawnTime(), SaveToDB(), SaveToDB(), SetGoArtKit(), and Update().
|
protected |
Definition at line 320 of file GameObject.h.
Referenced by GameObject(), and RemoveFromOwner().
|
protected |
Definition at line 352 of file GameObject.h.
Referenced by Create(), and GameObject().
|
protected |
Definition at line 347 of file GameObject.h.
Referenced by Create(), HasStringId(), InheritStringIds(), LoadFromDB(), and SetScriptStringId().
|
protected |
Definition at line 336 of file GameObject.h.
Referenced by AddUniqueUse(), Update(), and Use().
|
protected |
Definition at line 337 of file GameObject.h.
Referenced by GameObject(), Update(), and Use().