Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
GameObject Class Reference

#include <GameObject.h>

Inheritance diagram for GameObject:
Collaboration diagram for GameObject:

Public Member Functions

bool ActivateToQuest (Player *target) const
void AddLootMode (uint16 lootMode)
void AddToSkillupList (uint32 PlayerGuidLow)
void AddToWorld () OVERRIDE
void AddUniqueUse (Player *player)
void AddUse ()
GameObjectAIAI () const
void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const OVERRIDE
void CastSpell (Unit *target, uint32 spell)
void CleanupsBeforeDelete (bool finalCleanup=true) OVERRIDE
void ClearSkillupList ()
bool Create (uint32 guidlow, uint32 name_id, Map *map, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit=0)
void Delete ()
void DeleteFromDB ()
void EnableCollision (bool enable)
void EventInform (uint32 eventId)
 GameObject ()
std::string GetAIName () const
uint32 GetDBTableGUIDLow () const
GameObjectDestructibleState GetDestructibleState () const
uint32 GetDisplayId () const
void getFishLoot (Loot *loot, Player *loot_owner)
uint8 GetGoAnimProgress () const
uint8 GetGoArtKit () const
GameObjectData const * GetGOData () const
GameObjectTemplate const * GetGOInfo () const
GOState GetGoState () const
uint32 GetGOStateValue (GOState state)
GameobjectTypes GetGoType () const
GameObjectValue const * GetGOValue () const
uint8 getLevelForTarget (WorldObject const *target) const OVERRIDE
uint16 GetLootMode () const
PlayerGetLootRecipient () const
GroupGetLootRecipientGroup () const
LootState getLootState () const
std::string const & GetNameForLocaleIdx (LocaleConstant locale_idx) const OVERRIDE
UnitGetOwner () const
uint64 GetOwnerGUID () const
std::vector< uint32 > const * GetPauseTimes () const
uint32 GetRespawnDelay () const
void GetRespawnPosition (float &x, float &y, float &z, float *ori=NULL) const
time_t GetRespawnTime () const
time_t GetRespawnTimeEx () const
uint64 GetRotation () const
virtual uint32 GetScriptId () const
uint32 GetSpellId () const
float GetStationaryO () const OVERRIDE
float GetStationaryX () const OVERRIDE
float GetStationaryY () const OVERRIDE
float GetStationaryZ () const OVERRIDE
uint32 GetTransportPathProgress () const
uint32 GetTransportPeriod () const
uint32 GetUniqueUseCount () const
uint32 GetUseCount () const
bool hasInvolvedQuest (uint32 quest_id) const OVERRIDE
bool HasLootMode (uint16 lootMode) const
bool HasLootRecipient () const
bool hasQuest (uint32 quest_id) const OVERRIDE
bool IsAlwaysVisibleFor (WorldObject const *seer) const OVERRIDE
bool IsDestructibleBuilding () const
bool IsDynTransport () const
bool IsInRange (float x, float y, float z, float radius) const
bool IsInSkillupList (uint32 PlayerGuidLow) const
bool IsInvisibleDueToDespawn () const OVERRIDE
bool IsLootAllowedFor (Player const *player) const
bool isSpawned () const
bool isSpawnedByDefault () const
bool IsTransport () const
bool LoadFromDB (uint32 guid, Map *map)
bool LoadGameObjectFromDB (uint32 guid, Map *map, bool addToMap=true)
GameObjectLookupFishingHoleAround (float range)
void ModifyHealth (int32 change, Unit *attackerOrHealer=NULL, uint32 spellId=0)
void Refresh ()
void RemoveFromWorld () OVERRIDE
void RemoveLootMode (uint16 lootMode)
void ResetDoorOrButton ()
void ResetLootMode ()
void Respawn ()
void SaveRespawnTime () OVERRIDE
void SaveToDB ()
void SaveToDB (uint32 mapid, uint32 spawnMask)
void SendCustomAnim (uint32 anim)
void SetDestructibleState (GameObjectDestructibleState state, Player *eventInvoker=NULL, bool setHealth=false)
void SetDisplayId (uint32 displayid)
void SetGameobjectTransparence (uint8 transparency)
void SetGoAnimProgress (uint8 animprogress)
void SetGoArtKit (uint8 artkit)
void SetGoHealth (uint8 health)
void SetGoState (GOState state)
void SetGoType (GameobjectTypes type)
void SetLegacyTransportTravelTime (uint32 travelTime)
void SetLootMode (uint16 lootMode)
void SetLootRecipient (Unit *unit)
void SetLootState (LootState s, Unit *unit=NULL)
void SetOwnerGUID (uint64 owner)
bool SetPhased (uint32 id, bool update, bool apply) OVERRIDE
void SetPhaseMask (uint32 newPhaseMask, bool update) OVERRIDE
void SetRespawnTime (int32 respawn)
void SetSpawnedByDefault (bool b)
void SetSpellId (uint32 id)
void SetTransportPathProgress (uint32 pathProgress)
void StartLegacyTransportToFirstStop (uint32 travelTime)
void StopLegacyTransportAtCurrentProgress ()
void StopLegacyTransportAtInitialStop ()
TransportToTransport ()
Transport const * ToTransport () const
void TriggeringLinkedGameObject (uint32 trapEntry, Unit *target)
void Update (uint32 p_time) OVERRIDE
void UpdateModelPosition ()
void UpdateRotationFields (float rotation2=0.0f, float rotation3=0.0f)
void UpdateWorldRotationField ()
void Use (Unit *user)
void UseDoorOrButton (uint32 time_to_restore=0, bool alternative=false, Unit *user=NULL)
 ~GameObject ()
Public Member Functions inherited from WorldObject
void _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask)
void AddObjectToRemoveList ()
void AddToNotify (uint16 f)
void BuildUpdate (UpdateDataMapType &)
bool CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const
void ClearPhases (bool update=false)
void DestroyForNearbyPlayers ()
MapFindMap () const
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
GameObjectFindNearestGameObject (uint32 entry, float range) const
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
uint32 GetAreaId () const
Map const * GetBaseMap () const
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
void GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetDistance (float x, float y, float z) const
float GetDistance (Position const &pos) const
float GetDistance (WorldObject const *obj) const
float GetDistance2d (float x, float y) const
float GetDistance2d (WorldObject const *obj) const
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
float GetDistanceZ (WorldObject const *obj) const
void GetFirstCollisionPosition (Position &pos, float dist, float angle)
void GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetGridActivationRange () const
uint32 GetInstanceId () const
InstanceScriptGetInstanceScript ()
MapGetMap () const
std::string const & GetName () const
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const
void GetNearPoint2D (float &x, float &y, float distance, float absAngle) const
void GetNearPosition (Position &pos, float dist, float angle)
uint16 GetNotifyFlags () const
float GetObjectSize () const
uint32 GetPhaseMask () const
std::set< uint32 > const & GetPhases () const
void GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const
void GetRandomNearPosition (Position &pos, float radius)
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
void GetRandomPoint (Position const &srcPos, float distance, Position &pos) const
float GetSightRange (WorldObject const *target=NULL) const
std::set< uint32 > const & GetTerrainSwaps () const
virtual uint64 GetTransGUID () const
float GetTransOffsetO () const
float GetTransOffsetX () const
float GetTransOffsetY () const
float GetTransOffsetZ () const
TransportGetTransport () const
int8 GetTransSeat () const
uint32 GetTransTime () const
float GetVisibilityRange () const
std::set< uint32 > const & GetWorldMapSwaps () const
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
uint32 GetZoneId () const
ZoneScriptGetZoneScript () const
bool HasPhaseList (uint32 phase)
bool InSamePhase (uint32 phasemask) const
bool InSamePhase (WorldObject const *obj) const
bool isActiveObject () const
bool isInBack (WorldObject const *target, float arc=M_PI) const
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
bool isInFront (WorldObject const *target, float arc=M_PI) const
bool IsInMap (WorldObject const *obj) const
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
bool IsInRange2d (float x, float y, float minRange, float maxRange) const
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
bool isNeedNotify (uint16 f) const
bool IsPermanentWorldObject () const
bool IsPhased (uint32 phase) const
bool IsPhased (WorldObject const *obj) const
bool IsSelfOrInSameMap (WorldObject const *obj) const
bool IsTerrainSwaped (uint32 terrainSwap) const
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinDist2d (float x, float y, float dist) const
bool IsWithinDist2d (Position const *pos, float dist) const
bool IsWithinDist3d (float x, float y, float z, float dist) const
bool IsWithinDist3d (Position const *pos, float dist) const
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinLOS (float x, float y, float z) const
bool IsWithinLOSInMap (WorldObject const *obj) const
bool IsWorldObject () const
void MonsterSay (const char *text, Language language, WorldObject const *target)
void MonsterSay (int32 textId, Language language, WorldObject const *target)
void MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false)
void MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false)
void MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false)
void MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false)
void MonsterYell (const char *text, Language language, WorldObject const *target)
void MonsterYell (int32 textId, Language language, WorldObject const *target)
void MovePosition (Position &pos, float dist, float angle)
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
bool NotifyExecuted (uint16 f) const
void PlayDirectSound (uint32 sound_id, Player *target=NULL)
void PlayDistanceSound (uint32 sound_id, Player *target)
void RebuildTerrainSwaps ()
void RebuildWorldMapAreaSwaps ()
void ResetAllNotifies ()
virtual void ResetMap ()
virtual void SendMessageToSet (WorldPacket *data, bool self)
virtual void SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr)
virtual void SendMessageToSetInRange (WorldPacket *data, float dist, bool self)
void SendObjectDeSpawnAnim (uint64 guid)
void SendPlaySound (uint32 SoundSound, bool OnlySelf)
void setActive (bool isActiveObject)
virtual void SetMap (Map *map)
void SetName (std::string const &newname)
void SetNotified (uint16 f)
void SetTransport (Transport *t)
void SetWorldObject (bool apply)
void SetZoneScript ()
TempSummonSummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const
TempSummonSummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL)
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime)
CreatureSummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL)
void UpdateAllowedPositionZ (float x, float y, float &z) const
void UpdateAreaPhase ()
void UpdateGroundPositionZ (float x, float y, float &z) const
virtual void UpdateObjectVisibility (bool forced=true)
template<class NOTIFIER>
void VisitNearbyGridObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyWorldObject (float const &radius, NOTIFIER &notifier) const
virtual ~WorldObject ()
Public Member Functions inherited from Object
bool AddUInt64Value (uint16 index, uint64 value)
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
void ApplyPercentModFloatValue (uint16 index, float val, bool apply)
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const
void ClearUpdateMask (bool remove)
virtual void DestroyForPlayer (Player *target, bool onDeath=false) const
void ForceValuesUpdateAtIndex (uint32)
uint8 GetByteValue (uint16 index, uint8 offset) const
uint32 GetDynamicUInt32Value (uint32 tab, uint16 index) const
uint32 GetEntry () const
float GetFloatValue (uint16 index) const
uint64 GetGUID () const
uint32 GetGUIDHigh () const
uint32 GetGUIDLow () const
uint32 GetGUIDMid () const
int32 GetInt32Value (uint16 index) const
ObjectGuid GetObjectGUID () const
float GetObjectScale () const
const ByteBufferGetPackGUID () const
TypeID GetTypeId () const
uint16 GetUInt16Value (uint16 index, uint8 offset) const
uint32 GetUInt32Value (uint16 index) const
uint64 GetUInt64Value (uint16 index) const
uint16 GetValuesCount () const
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
bool HasFlag (uint16 index, uint32 flag) const
bool HasFlag64 (uint16 index, uint64 flag) const
bool IsInWorld () const
bool isType (uint16 mask) const
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void RemoveFieldNotifyFlag (uint16 flag)
void RemoveFlag (uint16 index, uint32 oldFlag)
void RemoveFlag64 (uint16 index, uint64 oldFlag)
bool RemoveUInt64Value (uint16 index, uint64 value)
void SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const
void SendUpdateToPlayer (Player *player)
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void SetByteValue (uint16 index, uint8 offset, uint8 value)
void SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value)
void SetEntry (uint32 entry)
void SetFieldNotifyFlag (uint16 flag)
void SetFlag (uint16 index, uint32 newFlag)
void SetFlag64 (uint16 index, uint64 newFlag)
void SetFloatValue (uint16 index, float value)
void SetInt16Value (uint16 index, uint8 offset, int16 value)
void SetInt32Value (uint16 index, int32 value)
virtual void SetObjectScale (float scale)
void SetStatFloatValue (uint16 index, float value)
void SetStatInt32Value (uint16 index, int32 value)
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
void SetUInt32Value (uint16 index, uint32 value)
void SetUInt64Value (uint16 index, uint64 value)
AreaTriggerToAreaTrigger ()
AreaTrigger const * ToAreaTrigger () const
CorpseToCorpse ()
Corpse const * ToCorpse () const
CreatureToCreature ()
Creature const * ToCreature () const
DynamicObjectToDynObject ()
DynamicObject const * ToDynObject () const
GameObjectToGameObject ()
GameObject const * ToGameObject () const
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
void ToggleFlag (uint16 index, uint32 flag)
void ToggleFlag64 (uint16 index, uint64 flag)
PlayerToPlayer ()
Player const * ToPlayer () const
UnitToUnit ()
Unit const * ToUnit () const
void UpdateUInt32Value (uint16 index, uint32 value)
virtual ~Object ()
Public Member Functions inherited from WorldLocation
uint32 GetMapId () const
 WorldLocation (const WorldLocation &loc)
 WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0)
void WorldRelocate (const WorldLocation &loc)
Public Member Functions inherited from Position
float GetAngle (float x, float y) const
float GetAngle (Position const *pos) const
float GetExactDist (float x, float y, float z) const
float GetExactDist (Position const *pos) const
float GetExactDist2d (const float x, const float y) const
float GetExactDist2d (Position const *pos) const
float GetExactDist2dSq (float x, float y) const
float GetExactDist2dSq (Position const *pos) const
float GetExactDistSq (float x, float y, float z) const
float GetExactDistSq (Position const *pos) const
float GetOrientation () const
void GetPosition (float &x, float &y) const
void GetPosition (float &x, float &y, float &z) const
void GetPosition (float &x, float &y, float &z, float &o) const
void GetPosition (Position *pos) const
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
float GetPositionX () const
float GetPositionY () const
float GetPositionZ () const
float GetRelativeAngle (float x, float y) const
float GetRelativeAngle (Position const *pos) const
void GetSinCos (float x, float y, float &vsin, float &vcos) const
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
bool HasInLine (WorldObject const *target, float width) const
bool IsInDist (float x, float y, float z, float dist) const
bool IsInDist (Position const *pos, float dist) const
bool IsInDist2d (float x, float y, float dist) const
bool IsInDist2d (Position const *pos, float dist) const
bool IsPositionValid () const
bool operator!= (Position const &a)
bool operator== (Position const &a)
Position::PositionXYZOStreamer PositionXYZOStream ()
Position::PositionXYZStreamer PositionXYZStream ()
void Relocate (float x, float y)
void Relocate (float x, float y, float z)
void Relocate (float x, float y, float z, float orientation)
void Relocate (Position const &pos)
void Relocate (Position const *pos)
void RelocateOffset (Position const &offset)
void SetOrientation (float orientation)
std::string ToString () const
Public Member Functions inherited from GridObject< GameObject >
void AddToGrid (GridRefManager< GameObject > &m)
bool IsInGrid () const
void RemoveFromGrid ()
virtual ~GridObject ()

Static Public Member Functions

static GameObjectGetGameObject (WorldObject &object, uint64 guid)
static void SetGoArtKit (uint8 artkit, GameObject *go, uint32 lowguid=0)
Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)

Public Attributes

Loot loot
uint32 lootingGroupLowGUID
uint32 m_groupLootTimer
GameObjectModelm_model
Public Attributes inherited from WorldObject
uint32 LastUsedScriptID
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
MovementInfo m_movementInfo
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
Public Attributes inherited from WorldLocation
uint32 m_mapId
Public Attributes inherited from Position
float m_orientation
float m_positionX
float m_positionY
float m_positionZ

Protected Types

typedef std::map< uint32, uint64ChairSlotAndUser

Protected Member Functions

bool AIM_Initialize ()
GameObjectModelCreateModel ()
uint32 GetLegacyTransportTargetProgress (GOState state) const
void HandleLegacyTransportStateChange (GOState oldState, GOState newState)
void InitializeLegacyTransport ()
void MarkLegacyTransportPathProgressChanged ()
void SetLegacyTransportStopped (bool stopped)
void UpdateLegacyTransportPathProgress ()
void UpdateModel ()
Protected Member Functions inherited from WorldObject
virtual bool IsAlwaysDetectableFor (WorldObject const *) const
virtual bool IsNeverVisible () const
void SetLocationInstanceId (uint32 _instanceId)
void SetLocationMapId (uint32 _mapId)
 WorldObject (bool isWorldObject)
Protected Member Functions inherited from Object
std::string _ConcatFields (uint16 startIndex, uint16 size) const
void _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh)
void _InitValues ()
void _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
void BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 Object ()
Protected Member Functions inherited from MapObject
 MapObject ()

Protected Attributes

ChairSlotAndUser ChairListSlots
time_t m_cooldownTime
uint32 m_DBTableGuid
 For new or temporary gameobjects is 0 for saved it is lowguid.
GameObjectData const * m_goData
GameObjectTemplate const * m_goInfo
GameObjectValue m_goValue
uint16 m_LootMode
uint64 m_lootRecipient
uint32 m_lootRecipientGroup
LootState m_lootState
uint32 m_respawnDelayTime
time_t m_respawnTime
Playerm_ritualOwner
uint64 m_rotation
std::list< uint32m_SkillupList
bool m_spawnedByDefault
uint32 m_spellId
Position m_stationaryPosition
std::vector< uint32m_transportPauseTimes
std::set< uint64m_unique_users
uint32 m_usetimes
Protected Attributes inherited from WorldObject
bool m_isActive
const bool m_isWorldObject
std::string m_name
Transportm_transport
ZoneScriptm_zoneScript
Protected Attributes inherited from Object
union { 
   float *   m_floatValues 
   int32 *   m_int32Values 
   uint32 *   m_uint32Values 
}; 
UpdateMask _changesMask
std::vector< bool * > m_dynamicChange
std::vector< uint32 * > m_dynamicTab
uint16 m_fieldNotifyFlags
uint16 m_objectType
TypeID m_objectTypeId
bool m_objectUpdated
uint16 m_updateFlag
uint16 m_valuesCount

Private Member Functions

bool _IsWithinDist (WorldObject const *obj, float dist2compare, bool) const OVERRIDE
 Object distance/size - overridden from Object::_IsWithinDist. Needs to take in account proper GO size.
void RemoveFromOwner ()
void SwitchDoorOrButton (bool activate, bool alternative=false)

Private Attributes

GameObjectAIm_AI

Detailed Description

Definition at line 628 of file GameObject.h.

Member Typedef Documentation

◆ ChairSlotAndUser

typedef std::map<uint32, uint64> GameObject::ChairSlotAndUser
protected

Definition at line 867 of file GameObject.h.

Constructor & Destructor Documentation

◆ GameObject()

◆ ~GameObject()

GameObject::~GameObject ( )

Definition at line 59 of file GameObject.cpp.

References m_AI, and m_model.

Member Function Documentation

◆ _IsWithinDist()

bool GameObject::_IsWithinDist ( WorldObject const * obj,
float dist2compare,
bool  ) const
inlineprivatevirtual

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 887 of file GameObject.h.

References IsInRange(), OVERRIDE, and WorldObject::WorldObject().

◆ ActivateToQuest()

◆ AddLootMode()

void GameObject::AddLootMode ( uint16 lootMode)
inline

Definition at line 749 of file GameObject.h.

References m_LootMode.

◆ AddToSkillupList()

void GameObject::AddToSkillupList ( uint32 PlayerGuidLow)
inline

Definition at line 753 of file GameObject.h.

References m_SkillupList.

◆ AddToWorld()

void GameObject::AddToWorld ( )
virtual

◆ AddUniqueUse()

void GameObject::AddUniqueUse ( Player * player)

Definition at line 661 of file GameObject.cpp.

References AddUse(), Object::GetGUID(), and m_unique_users.

Referenced by Spell::EffectTransmitted(), and Use().

◆ AddUse()

void GameObject::AddUse ( )
inline

Definition at line 765 of file GameObject.h.

References m_usetimes.

Referenced by AddUniqueUse(), WorldSession::DoLootRelease(), and Use().

◆ AI()

◆ AIM_Initialize()

bool GameObject::AIM_Initialize ( )
protected

◆ BuildValuesUpdate()

◆ CastSpell()

◆ CleanupsBeforeDelete()

void GameObject::CleanupsBeforeDelete ( bool finalCleanup = true)
virtual

◆ ClearSkillupList()

void GameObject::ClearSkillupList ( )
inline

Definition at line 762 of file GameObject.h.

References m_SkillupList.

◆ Create()

bool GameObject::Create ( uint32 guidlow,
uint32 name_id,
Map * map,
float x,
float y,
float z,
float ang,
float rotation0,
float rotation1,
float rotation2,
float rotation3,
uint32 animprogress,
GOState go_state,
uint32 artKit = 0 )

Definition at line 166 of file GameObject.cpp.

References Object::_Create(), AIM_Initialize(), ASSERT, GameObjectTemplate::building, CreateModel(), GameObjectTemplate::damagedNumHits, GameObjectTemplate::displayId, GameObjectTemplate::entry, GameObjectTemplate::faction, GameObjectTemplate::fishinghole, GameObjectTemplate::flags, GAMEOBJECT_FIELD_FACTION_TEMPLATE, GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_FIELD_PARENT_ROTATION, GAMEOBJECT_FIELD_PERCENT_HEALTH, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_TRANSPORT, GAMEOBJECT_TYPE_TRAP, GetGOInfo(), GetGOStateValue(), Map::GetId(), Skyfire::GameObjects::GetInitialLegacyTransportState(), HIGHGUID_GAMEOBJECT, HIGHGUID_TRANSPORT, InitializeLegacyTransport(), GameObjectTemplate::intactNumHits, INVISIBILITY_TRAP, GameObjectTemplate::invisible, Map::Is25ManRaid(), Position::IsPositionValid(), WorldObject::LastUsedScriptID, loot, m_goInfo, m_goValue, WorldObject::m_invisibility, m_model, m_stationaryPosition, WorldObject::m_stealth, m_transportPauseTimes, Object::m_updateFlag, WorldObject::m_zoneScript, MapObject::Map, MAX_GAMEOBJECT_TYPE, GameObjectTemplate::maxSuccessOpens, GameObjectTemplate::minSuccessOpens, GameObjectTemplate::name, Position::Relocate(), GameObjectTemplate::ScriptId, Object::SetByteValue(), SetDisplayId(), Object::SetEntry(), Object::SetFloatValue(), SetGoAnimProgress(), SetGoArtKit(), SetGoHealth(), SetGoState(), SetGoType(), SetLegacyTransportStopped(), WorldObject::SetMap(), WorldObject::SetName(), Object::SetObjectScale(), Object::SetUInt32Value(), WorldObject::SetZoneScript(), SF_LOG_ERROR, GameObjectTemplate::size, sObjectMgr, GameObjectTemplate::startOpen, STEALTH_TRAP, GameObjectTemplate::stealthed, GameObjectTemplate::transport, GameObjectTemplate::type, UPDATEFLAG_TRANSPORT, and UpdateRotationFields().

Referenced by Battleground::AddObject(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleDropFlag(), gobject_commandscript::HandleGameObjectAddCommand(), LoadGameObjectFromDB(), LuaGlobalFunctions::PerformIngameSpawn(), Battlefield::SpawnGameObject(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), SpawnSurveyGameObject(), and WorldObject::SummonGameObject().

◆ CreateModel()

GameObjectModel * GameObject::CreateModel ( )
protected

Definition at line 2672 of file GameObject.cpp.

References GameObjectModel::Create(), and sWorld.

Referenced by Create(), Transport::Create(), Transport::CreateLocal(), and UpdateModel().

◆ Delete()

◆ DeleteFromDB()

◆ EnableCollision()

void GameObject::EnableCollision ( bool enable)

◆ EventInform()

void GameObject::EventInform ( uint32 eventId)

◆ GetAIName()

std::string GameObject::GetAIName ( ) const

◆ GetDBTableGUIDLow()

◆ GetDestructibleState()

◆ GetDisplayId()

uint32 GameObject::GetDisplayId ( ) const
inline

Definition at line 828 of file GameObject.h.

References GAMEOBJECT_FIELD_DISPLAY_ID, and Object::GetUInt32Value().

Referenced by LuaGameObject::GetDisplayId().

◆ getFishLoot()

void GameObject::getFishLoot ( Loot * loot,
Player * loot_owner )

◆ GetGameObject()

◆ GetGoAnimProgress()

uint8 GameObject::GetGoAnimProgress ( ) const
inline

Definition at line 732 of file GameObject.h.

References GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, and Object::GetByteValue().

Referenced by SaveToDB(), Update(), and Use().

◆ GetGoArtKit()

uint8 GameObject::GetGoArtKit ( ) const
inline

Definition at line 730 of file GameObject.h.

References GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, and Object::GetByteValue().

Referenced by SaveToDB().

◆ GetGOData()

GameObjectData const * GameObject::GetGOData ( ) const
inline

Definition at line 644 of file GameObject.h.

References m_goData.

Referenced by SetGoArtKit().

◆ GetGOInfo()

◆ GetGoState()

◆ GetGOStateValue()

◆ GetGoType()

◆ GetGOValue()

GameObjectValue const * GameObject::GetGOValue ( ) const
inline

◆ GetLegacyTransportTargetProgress()

uint32 GameObject::GetLegacyTransportTargetProgress ( GOState state) const
protected

◆ getLevelForTarget()

uint8 GameObject::getLevelForTarget ( WorldObject const * target) const
inlinevirtual

Reimplemented from WorldObject.

Definition at line 794 of file GameObject.h.

References getLevelForTarget(), GetOwner(), OVERRIDE, and WorldObject::WorldObject().

Referenced by getLevelForTarget().

◆ GetLootMode()

uint16 GameObject::GetLootMode ( ) const
inline

Definition at line 746 of file GameObject.h.

References m_LootMode.

Referenced by Player::SendLoot().

◆ GetLootRecipient()

Player * GameObject::GetLootRecipient ( ) const

Definition at line 2451 of file GameObject.cpp.

References ObjectAccessor::FindPlayer(), and m_lootRecipient.

◆ GetLootRecipientGroup()

Group * GameObject::GetLootRecipientGroup ( ) const

Definition at line 2458 of file GameObject.cpp.

References m_lootRecipientGroup, and sGroupMgr.

Referenced by IsLootAllowedFor().

◆ getLootState()

LootState GameObject::getLootState ( ) const
inline

◆ GetNameForLocaleIdx()

std::string const & GameObject::GetNameForLocaleIdx ( LocaleConstant locale_idx) const
virtual

Reimplemented from WorldObject.

Definition at line 2135 of file GameObject.cpp.

References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), and sObjectMgr.

◆ GetOwner()

◆ GetOwnerGUID()

◆ GetPauseTimes()

std::vector< uint32 > const * GameObject::GetPauseTimes ( ) const

Definition at line 938 of file GameObject.cpp.

References GAMEOBJECT_TYPE_TRANSPORT, GetGoType(), and m_transportPauseTimes.

◆ GetRespawnDelay()

uint32 GameObject::GetRespawnDelay ( ) const
inline

Definition at line 713 of file GameObject.h.

References m_respawnDelayTime.

Referenced by gobject_commandscript::HandleGameObjectTargetCommand().

◆ GetRespawnPosition()

void GameObject::GetRespawnPosition ( float & x,
float & y,
float & z,
float * ori = NULL ) const

◆ GetRespawnTime()

time_t GameObject::GetRespawnTime ( ) const
inline

Definition at line 689 of file GameObject.h.

References m_respawnTime.

Referenced by Player::SendLoot().

◆ GetRespawnTimeEx()

time_t GameObject::GetRespawnTimeEx ( ) const
inline

Definition at line 690 of file GameObject.h.

References m_respawnTime.

Referenced by gobject_commandscript::HandleGameObjectTargetCommand().

◆ GetRotation()

uint64 GameObject::GetRotation ( ) const
inline

Definition at line 822 of file GameObject.h.

References m_rotation.

◆ GetScriptId()

◆ GetSpellId()

uint32 GameObject::GetSpellId ( ) const
inline

Definition at line 687 of file GameObject.h.

References m_spellId.

Referenced by Unit::AddGameObject(), Unit::RemoveGameObject(), and Update().

◆ GetStationaryO()

float GameObject::GetStationaryO ( ) const
inlinevirtual

Reimplemented from WorldObject.

Definition at line 839 of file GameObject.h.

References GAMEOBJECT_TYPE_MO_TRANSPORT, GetGOInfo(), Position::GetOrientation(), m_stationaryPosition, and OVERRIDE.

Referenced by Transport::Update().

◆ GetStationaryX()

float GameObject::GetStationaryX ( ) const
inlinevirtual

Reimplemented from WorldObject.

Definition at line 836 of file GameObject.h.

References GAMEOBJECT_TYPE_MO_TRANSPORT, GetGOInfo(), Position::GetPositionX(), m_stationaryPosition, and OVERRIDE.

Referenced by Transport::Update().

◆ GetStationaryY()

float GameObject::GetStationaryY ( ) const
inlinevirtual

Reimplemented from WorldObject.

Definition at line 837 of file GameObject.h.

References GAMEOBJECT_TYPE_MO_TRANSPORT, GetGOInfo(), Position::GetPositionY(), m_stationaryPosition, and OVERRIDE.

Referenced by Transport::Update().

◆ GetStationaryZ()

float GameObject::GetStationaryZ ( ) const
inlinevirtual

Reimplemented from WorldObject.

Definition at line 838 of file GameObject.h.

References GAMEOBJECT_TYPE_MO_TRANSPORT, GetGOInfo(), Position::GetPositionZ(), m_stationaryPosition, and OVERRIDE.

Referenced by Transport::Update().

◆ GetTransportPathProgress()

uint32 GameObject::GetTransportPathProgress ( ) const
inline

Definition at line 722 of file GameObject.h.

References m_goValue.

Referenced by BattlegroundSA::GetBoatDebugStatus().

◆ GetTransportPeriod()

◆ GetUniqueUseCount()

uint32 GameObject::GetUniqueUseCount ( ) const
inline

Definition at line 768 of file GameObject.h.

References m_unique_users.

Referenced by Use().

◆ GetUseCount()

uint32 GameObject::GetUseCount ( ) const
inline

Definition at line 767 of file GameObject.h.

References m_usetimes.

Referenced by WorldSession::DoLootRelease().

◆ HandleLegacyTransportStateChange()

◆ hasInvolvedQuest()

bool GameObject::hasInvolvedQuest ( uint32 quest_id) const
virtual

Reimplemented from Object.

Definition at line 890 of file GameObject.cpp.

References Object::GetEntry(), and sObjectMgr.

◆ HasLootMode()

bool GameObject::HasLootMode ( uint16 lootMode) const
inline

Definition at line 747 of file GameObject.h.

References m_LootMode.

◆ HasLootRecipient()

bool GameObject::HasLootRecipient ( ) const
inline

Definition at line 778 of file GameObject.h.

References HasLootRecipient(), m_lootRecipient, and m_lootRecipientGroup.

Referenced by BuildValuesUpdate(), and HasLootRecipient().

◆ hasQuest()

bool GameObject::hasQuest ( uint32 quest_id) const
virtual

Reimplemented from Object.

Definition at line 879 of file GameObject.cpp.

References Object::GetEntry(), and sObjectMgr.

Referenced by LuaGameObject::HasQuest().

◆ InitializeLegacyTransport()

◆ IsAlwaysVisibleFor()

bool GameObject::IsAlwaysVisibleFor ( WorldObject const * seer) const
virtual

◆ IsDestructibleBuilding()

bool GameObject::IsDestructibleBuilding ( ) const

◆ IsDynTransport()

◆ IsInRange()

bool GameObject::IsInRange ( float x,
float y,
float z,
float radius ) const

◆ IsInSkillupList()

bool GameObject::IsInSkillupList ( uint32 PlayerGuidLow) const
inline

Definition at line 754 of file GameObject.h.

References m_SkillupList.

◆ IsInvisibleDueToDespawn()

bool GameObject::IsInvisibleDueToDespawn ( ) const
virtual

Reimplemented from WorldObject.

Definition at line 1251 of file GameObject.cpp.

References WorldObject::IsInvisibleDueToDespawn(), and isSpawned().

◆ IsLootAllowedFor()

bool GameObject::IsLootAllowedFor ( Player const * player) const

◆ isSpawned()

◆ isSpawnedByDefault()

bool GameObject::isSpawnedByDefault ( ) const
inline

◆ IsTransport()

◆ LoadFromDB()

bool GameObject::LoadFromDB ( uint32 guid,
Map * map )
inline

Definition at line 661 of file GameObject.h.

References LoadGameObjectFromDB(), and MapObject::Map.

◆ LoadGameObjectFromDB()

◆ LookupFishingHoleAround()

GameObject * GameObject::LookupFishingHoleAround ( float range)

◆ MarkLegacyTransportPathProgressChanged()

◆ ModifyHealth()

◆ Refresh()

void GameObject::Refresh ( )

◆ RemoveFromOwner()

◆ RemoveFromWorld()

◆ RemoveLootMode()

void GameObject::RemoveLootMode ( uint16 lootMode)
inline

Definition at line 750 of file GameObject.h.

References m_LootMode.

◆ ResetDoorOrButton()

◆ ResetLootMode()

void GameObject::ResetLootMode ( )
inline

Definition at line 751 of file GameObject.h.

References LOOT_MODE_DEFAULT, and m_LootMode.

Referenced by GameObject().

◆ Respawn()

void GameObject::Respawn ( )

◆ SaveRespawnTime()

void GameObject::SaveRespawnTime ( )
virtual

◆ SaveToDB() [1/2]

void GameObject::SaveToDB ( )

◆ SaveToDB() [2/2]

◆ SendCustomAnim()

◆ SetDestructibleState()

◆ SetDisplayId()

void GameObject::SetDisplayId ( uint32 displayid)

◆ SetGameobjectTransparence()

void GameObject::SetGameobjectTransparence ( uint8 transparency)
inline

Definition at line 734 of file GameObject.h.

References GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, and Object::SetByteValue().

◆ SetGoAnimProgress()

void GameObject::SetGoAnimProgress ( uint8 animprogress)
inline

◆ SetGoArtKit() [1/2]

◆ SetGoArtKit() [2/2]

void GameObject::SetGoArtKit ( uint8 artkit,
GameObject * go,
uint32 lowguid = 0 )
static

Definition at line 1390 of file GameObject.cpp.

References GameObject(), GetGOData(), SetGoArtKit(), and sObjectMgr.

◆ SetGoHealth()

void GameObject::SetGoHealth ( uint8 health)
inline

Definition at line 729 of file GameObject.h.

References GAMEOBJECT_FIELD_PERCENT_HEALTH, and Object::SetByteValue().

Referenced by Create().

◆ SetGoState()

◆ SetGoType()

void GameObject::SetGoType ( GameobjectTypes type)
inline

◆ SetLegacyTransportStopped()

◆ SetLegacyTransportTravelTime()

◆ SetLootMode()

void GameObject::SetLootMode ( uint16 lootMode)
inline

Definition at line 748 of file GameObject.h.

References m_LootMode.

◆ SetLootRecipient()

◆ SetLootState()

◆ SetOwnerGUID()

◆ SetPhased()

◆ SetPhaseMask()

void GameObject::SetPhaseMask ( uint32 newPhaseMask,
bool update )
virtual

Reimplemented from WorldObject.

Definition at line 2414 of file GameObject.cpp.

References EnableCollision(), m_model, and WorldObject::SetPhaseMask().

◆ SetRespawnTime()

◆ SetSpawnedByDefault()

void GameObject::SetSpawnedByDefault ( bool b)
inline

◆ SetSpellId()

void GameObject::SetSpellId ( uint32 id)
inline

◆ SetTransportPathProgress()

void GameObject::SetTransportPathProgress ( uint32 pathProgress)

◆ StartLegacyTransportToFirstStop()

◆ StopLegacyTransportAtCurrentProgress()

◆ StopLegacyTransportAtInitialStop()

◆ SwitchDoorOrButton()

void GameObject::SwitchDoorOrButton ( bool activate,
bool alternative = false )
private

◆ ToTransport() [1/2]

Transport * GameObject::ToTransport ( )
inline

◆ ToTransport() [2/2]

Transport const * GameObject::ToTransport ( ) const
inline

Definition at line 834 of file GameObject.h.

References Object::GetGUID(), and IS_MO_TRANSPORT_GUID().

◆ TriggeringLinkedGameObject()

◆ Update()

void GameObject::Update ( uint32 p_time)
virtual
Todo
move activated state code (cast itself) to GO_ACTIVATED, in this place only check activating and set state
Todo
rename radius to diameter (goInfo->trap.radius) should be (goInfo->trap.diameter)

If this is summoned by a spell with ie. SPELL_EFFECT_SUMMON_OBJECT_WILD, with or without owner, we check respawn criteria based on spell The GetOwnerGUID() check is mostly for compatibility with hacky scripts - 99% of the time summoning should be done trough spells.

Reimplemented from WorldObject.

Reimplemented in Transport.

Definition at line 288 of file GameObject.cpp.

References Map::AddToMap(), AI(), AIM_Initialize(), GameObjectTemplate::autoCloseTime, UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), CastSpell(), CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY, GameObjectTemplate::cooldown, DAY, Delete(), Group::EndRoll(), FISHING_BOBBER_READY_TIME, GameObjectTemplate::fishinghole, GameObject(), GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_TRANSPORT, GAMEOBJECT_TYPE_TRAP, Player::GetBattleground(), GameObjectTemplate::GetCharges(), GetDBTableGUIDLow(), Object::GetEntry(), GetGoAnimProgress(), GetGOInfo(), GetGoState(), GetGoType(), Object::GetGUID(), Map::GetLinkedRespawnTime(), WorldObject::GetMap(), WorldLocation::GetMapId(), GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), GetSpellId(), Object::GetTypeId(), 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, HIGHGUID_GAMEOBJECT, Player::InBattleground(), isSpawned(), loot, lootingGroupLowGUID, m_cooldownTime, m_DBTableGuid, m_goValue, m_groupLootTimer, m_lootState, m_respawnDelayTime, m_respawnTime, m_SkillupList, m_spawnedByDefault, m_unique_users, m_usetimes, MAKE_NEW_GUID(), GameObjectTemplate::maxSuccessOpens, GameObjectTemplate::minSuccessOpens, MINUTE, GameObjectTemplate::radius, Object::RemoveFlag(), Unit::RemoveGameObject(), ResetDoorOrButton(), SaveRespawnTime(), SendCustomAnim(), Player::SendDirectMessage(), WorldObject::SendObjectDeSpawnAnim(), SetGoState(), SetLootState(), SetRespawnTime(), Object::SetUInt32Value(), SF_LOG_ERROR, sGroupMgr, SMSG_FISH_ESCAPED, sObjectMgr, GameObjectTemplate::spellId, sPoolMgr, sScriptMgr, GameObjectTemplate::startDelay, sWorld, Object::ToPlayer(), GameObjectTemplate::trap, GameObjectTemplate::type, TYPEID_PLAYER, GameObjectAI::UpdateAI(), UpdateLegacyTransportPathProgress(), WorldObject::UpdateObjectVisibility(), WorldObject::VisitNearbyGridObject(), and WorldObject::VisitNearbyWorldObject().

◆ UpdateLegacyTransportPathProgress()

◆ UpdateModel()

void GameObject::UpdateModel ( )
protected

◆ UpdateModelPosition()

◆ UpdateRotationFields()

void GameObject::UpdateRotationFields ( float rotation2 = 0.0f,
float rotation3 = 0.0f )

◆ UpdateWorldRotationField()

void GameObject::UpdateWorldRotationField ( )

Definition at line 2148 of file GameObject.cpp.

References Position::GetOrientation(), and m_rotation.

Referenced by Transport::UpdatePosition(), and UpdateRotationFields().

◆ Use()

void GameObject::Use ( Unit * user)
Todo
I do not understand this hack. Need some explanation.
Todo
find reasonable value for fishing hole search
Todo
else: junk

Definition at line 1418 of file GameObject.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT, AddUniqueUse(), AddUse(), AI(), GameObjectTemplate::animSpell, GameObjectTemplate::barberChair, BATTLEGROUND_EY, BATTLEGROUND_TP, BATTLEGROUND_WS, GameObjectTemplate::camera, Player::CanUseBattlegroundObject(), GameObjectTemplate::castersGrouped, GameObjectTemplate::casterTargetSpell, GameObjectTemplate::casterTargetSpellTargets, CastSpell(), Unit::CastSpell(), GameObjectTemplate::chair, GameObjectTemplate::chairheight, ChairListSlots, GameObjectTemplate::cinematicId, 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(), GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_TYPE_BARBER_CHAIR, GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CAMERA, GAMEOBJECT_TYPE_CHAIR, GAMEOBJECT_TYPE_CHEST, 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_SPELLCASTER, GAMEOBJECT_TYPE_SUMMONING_RITUAL, GAMEOBJECT_TYPE_TRAP, GameObjectTemplate::GetAutoCloseTime(), Player::GetBattleground(), Unit::GetCurrentSpell(), GetDBTableGUIDLow(), WorldObject::GetDistance2d(), Object::GetEntry(), GetGoAnimProgress(), GetGOInfo(), GetGoType(), Object::GetGUID(), Object::GetGUIDLow(), Unit::getLevel(), getLootState(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Object::GetObjectGUID(), Position::GetOrientation(), GetOwner(), GetOwnerGUID(), ObjectAccessor::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetQuestStatus(), Player::GetSession(), Player::GetSkillValue(), Unit::GetTarget(), Battleground::GetTypeID(), Object::GetTypeId(), GetUniqueUseCount(), Unit::GetVehicle(), WorldObject::GetZoneAndAreaId(), GO_ACTIVATED, GO_FLAG_IN_USE, GO_FLAG_NOT_SELECTABLE, GO_JUST_DEACTIVATED, GO_READY, GO_STATE_ACTIVE, GameObjectTemplate::goober, GameObjectTemplate::gossipID, Object::HasFlag(), GameObjectTemplate::height, Player::IsInSameRaidWith(), Player::KillCreditGO(), GameObjectTemplate::linkedTrapId, LookupFishingHoleAround(), LOOT_CORPSE, LOOT_FISHING, LOOT_FISHINGHOLE, m_cooldownTime, M_PI, m_respawnTime, m_ritualOwner, 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(), Skyfire::Containers::SelectRandomContainerElement(), Player::SendCinematicStart(), SendCustomAnim(), Player::SendDirectMessage(), Player::SendLoot(), WorldSession::SendPageText(), Player::SendPreparedGossip(), Object::SetFlag(), SetGoState(), SetLootState(), SetOwnerGUID(), Unit::SetStandState(), sEventScripts, SF_LOG_DEBUG, SF_LOG_ERROR, GameObjectTemplate::size, SKILL_FISHING, GameObjectTemplate::slots, SMSG_ENABLE_BARBER_SHOP, SMSG_FISH_NOT_HOOKED, sObjectMgr, sOutdoorPvPMgr, SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_STEALTH, SPELL_AURA_MOUNTED, GameObjectTemplate::spellcaster, GameObjectTemplate::spellId, sScriptMgr, sSpellMgr, GameObjectTemplate::summoningRitual, sWorld, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, Player::TeleportTo(), Object::ToPlayer(), GameObjectTemplate::trap, TriggeringLinkedGameObject(), GameObjectTemplate::type, TYPEID_PLAYER, UNIT_STAND_STATE_SIT, UNIT_STAND_STATE_SIT_LOW_CHAIR, Player::UpdateAchievementCriteria(), Player::UpdateFishingSkill(), Use(), and UseDoorOrButton().

Referenced by npc_valiance_keep_cannoneer::npc_valiance_keep_cannoneerAI::UpdateAI(), and Use().

◆ UseDoorOrButton()

void GameObject::UseDoorOrButton ( uint32 time_to_restore = 0,
bool alternative = false,
Unit * user = NULL )

Member Data Documentation

◆ ChairListSlots

ChairSlotAndUser GameObject::ChairListSlots
protected

Definition at line 868 of file GameObject.h.

Referenced by Use().

◆ loot

◆ lootingGroupLowGUID

uint32 GameObject::lootingGroupLowGUID

Definition at line 780 of file GameObject.h.

Referenced by GameObject(), and Update().

◆ m_AI

GameObjectAI* GameObject::m_AI
private

Definition at line 892 of file GameObject.h.

Referenced by AI(), AIM_Initialize(), GameObject(), and ~GameObject().

◆ m_cooldownTime

time_t GameObject::m_cooldownTime
protected

Definition at line 859 of file GameObject.h.

Referenced by GameObject(), ResetDoorOrButton(), Update(), Use(), and UseDoorOrButton().

◆ m_DBTableGuid

uint32 GameObject::m_DBTableGuid
protected

For new or temporary gameobjects is 0 for saved it is lowguid.

Definition at line 870 of file GameObject.h.

Referenced by DeleteFromDB(), GameObject(), GetDBTableGUIDLow(), GetRespawnPosition(), LoadGameObjectFromDB(), Respawn(), SaveRespawnTime(), SaveToDB(), SaveToDB(), SetGoArtKit(), and Update().

◆ m_goData

GameObjectData const* GameObject::m_goData
protected

Definition at line 872 of file GameObject.h.

Referenced by GameObject(), GetGOData(), LoadGameObjectFromDB(), and SaveRespawnTime().

◆ m_goInfo

◆ m_goValue

◆ m_groupLootTimer

uint32 GameObject::m_groupLootTimer

Definition at line 779 of file GameObject.h.

Referenced by GameObject(), and Update().

◆ m_LootMode

uint16 GameObject::m_LootMode
protected

◆ m_lootRecipient

uint64 GameObject::m_lootRecipient
protected

◆ m_lootRecipientGroup

uint32 GameObject::m_lootRecipientGroup
protected

◆ m_lootState

LootState GameObject::m_lootState
protected

◆ m_model

◆ m_respawnDelayTime

uint32 GameObject::m_respawnDelayTime
protected

◆ m_respawnTime

time_t GameObject::m_respawnTime
protected

◆ m_ritualOwner

Player* GameObject::m_ritualOwner
protected

Definition at line 863 of file GameObject.h.

Referenced by GameObject(), and Use().

◆ m_rotation

uint64 GameObject::m_rotation
protected

Definition at line 876 of file GameObject.h.

Referenced by GameObject(), GetRotation(), and UpdateWorldRotationField().

◆ m_SkillupList

std::list<uint32> GameObject::m_SkillupList
protected

Definition at line 861 of file GameObject.h.

Referenced by AddToSkillupList(), ClearSkillupList(), IsInSkillupList(), and Update().

◆ m_spawnedByDefault

◆ m_spellId

uint32 GameObject::m_spellId
protected

Definition at line 854 of file GameObject.h.

Referenced by GameObject(), GetSpellId(), RemoveFromOwner(), and SetSpellId().

◆ m_stationaryPosition

Position GameObject::m_stationaryPosition
protected

◆ m_transportPauseTimes

◆ m_unique_users

std::set<uint64> GameObject::m_unique_users
protected

Definition at line 864 of file GameObject.h.

Referenced by AddUniqueUse(), GetUniqueUseCount(), Update(), and Use().

◆ m_usetimes

uint32 GameObject::m_usetimes
protected

Definition at line 865 of file GameObject.h.

Referenced by AddUse(), GameObject(), GetUseCount(), Update(), and Use().


The documentation for this class was generated from the following files: