|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <GameObject.h>
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 () |
| GameObjectAI * | AI () 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 |
| Player * | GetLootRecipient () const |
| Group * | GetLootRecipientGroup () const |
| LootState | getLootState () const |
| std::string const & | GetNameForLocaleIdx (LocaleConstant locale_idx) const OVERRIDE |
| Unit * | GetOwner () 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) |
| GameObject * | LookupFishingHoleAround (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 () |
| Transport * | ToTransport () |
| 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 () |
| Map * | FindMap () const |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| uint32 | GetAreaId () const |
| Map const * | GetBaseMap () const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistance2d (WorldObject const *obj) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| void | GetFirstCollisionPosition (Position &pos, float dist, float angle) |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetGridActivationRange () const |
| uint32 | GetInstanceId () const |
| InstanceScript * | GetInstanceScript () |
| Map * | GetMap () const |
| std::string const & | GetName () const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle) const |
| void | GetNearPosition (Position &pos, float dist, float angle) |
| uint16 | GetNotifyFlags () const |
| float | GetObjectSize () const |
| uint32 | GetPhaseMask () const |
| std::set< uint32 > const & | GetPhases () const |
| void | GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const |
| void | GetRandomNearPosition (Position &pos, float radius) |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| void | GetRandomPoint (Position const &srcPos, float distance, Position &pos) const |
| float | GetSightRange (WorldObject const *target=NULL) const |
| std::set< uint32 > const & | GetTerrainSwaps () const |
| virtual uint64 | GetTransGUID () const |
| float | GetTransOffsetO () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| Transport * | GetTransport () const |
| int8 | GetTransSeat () const |
| uint32 | GetTransTime () const |
| float | GetVisibilityRange () const |
| std::set< uint32 > const & | GetWorldMapSwaps () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| uint32 | GetZoneId () const |
| ZoneScript * | GetZoneScript () const |
| bool | HasPhaseList (uint32 phase) |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | isActiveObject () const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| bool | isInFront (WorldObject const *target, float arc=M_PI) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isNeedNotify (uint16 f) const |
| bool | IsPermanentWorldObject () const |
| bool | IsPhased (uint32 phase) const |
| bool | IsPhased (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsTerrainSwaped (uint32 terrainSwap) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinLOS (float x, float y, float z) const |
| bool | IsWithinLOSInMap (WorldObject const *obj) const |
| bool | IsWorldObject () const |
| void | MonsterSay (const char *text, Language language, WorldObject const *target) |
| void | MonsterSay (int32 textId, Language language, WorldObject const *target) |
| void | MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false) |
| void | MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false) |
| void | MonsterYell (const char *text, Language language, WorldObject const *target) |
| void | MonsterYell (int32 textId, Language language, WorldObject const *target) |
| void | MovePosition (Position &pos, float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| bool | NotifyExecuted (uint16 f) const |
| void | PlayDirectSound (uint32 sound_id, Player *target=NULL) |
| void | PlayDistanceSound (uint32 sound_id, Player *target) |
| void | RebuildTerrainSwaps () |
| void | RebuildWorldMapAreaSwaps () |
| void | ResetAllNotifies () |
| virtual void | ResetMap () |
| virtual void | SendMessageToSet (WorldPacket *data, bool self) |
| virtual void | SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr) |
| virtual void | SendMessageToSetInRange (WorldPacket *data, float dist, bool self) |
| void | SendObjectDeSpawnAnim (uint64 guid) |
| void | SendPlaySound (uint32 SoundSound, bool OnlySelf) |
| void | setActive (bool isActiveObject) |
| virtual void | SetMap (Map *map) |
| void | SetName (std::string const &newname) |
| void | SetNotified (uint16 f) |
| void | SetTransport (Transport *t) |
| void | SetWorldObject (bool apply) |
| void | SetZoneScript () |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const |
| TempSummon * | SummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL) |
| void | UpdateAllowedPositionZ (float x, float y, float &z) const |
| void | UpdateAreaPhase () |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| virtual void | UpdateObjectVisibility (bool forced=true) |
| template<class NOTIFIER> | |
| void | VisitNearbyGridObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyWorldObject (float const &radius, NOTIFIER ¬ifier) const |
| virtual | ~WorldObject () |
| Public Member Functions inherited from Object | |
| bool | AddUInt64Value (uint16 index, uint64 value) |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | ClearUpdateMask (bool remove) |
| virtual void | DestroyForPlayer (Player *target, bool onDeath=false) const |
| void | ForceValuesUpdateAtIndex (uint32) |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint32 | GetDynamicUInt32Value (uint32 tab, uint16 index) const |
| uint32 | GetEntry () const |
| float | GetFloatValue (uint16 index) const |
| uint64 | GetGUID () const |
| uint32 | GetGUIDHigh () const |
| uint32 | GetGUIDLow () const |
| uint32 | GetGUIDMid () const |
| int32 | GetInt32Value (uint16 index) const |
| ObjectGuid | GetObjectGUID () const |
| float | GetObjectScale () const |
| const ByteBuffer & | GetPackGUID () const |
| TypeID | GetTypeId () const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| uint16 | GetValuesCount () const |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| bool | HasFlag (uint16 index, uint32 flag) const |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| bool | IsInWorld () const |
| bool | isType (uint16 mask) const |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| bool | RemoveUInt64Value (uint16 index, uint64 value) |
| void | SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const |
| void | SendUpdateToPlayer (Player *player) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value) |
| void | SetEntry (uint32 entry) |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetInt32Value (uint16 index, int32 value) |
| 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) |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| virtual | ~Object () |
| Public Member Functions inherited from WorldLocation | |
| uint32 | GetMapId () const |
| WorldLocation (const WorldLocation &loc) | |
| WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0) | |
| void | WorldRelocate (const WorldLocation &loc) |
| Public Member Functions inherited from Position | |
| float | GetAngle (float x, float y) const |
| float | GetAngle (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDist2dSq (float x, float y) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| void | GetPosition (Position *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (WorldObject const *target, float width) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsPositionValid () const |
| bool | operator!= (Position const &a) |
| bool | operator== (Position const &a) |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| Position::PositionXYZStreamer | PositionXYZStream () |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| std::string | ToString () const |
| Public Member Functions inherited from GridObject< GameObject > | |
| void | AddToGrid (GridRefManager< GameObject > &m) |
| bool | IsInGrid () const |
| void | RemoveFromGrid () |
| virtual | ~GridObject () |
Static Public Member Functions | |
| static GameObject * | GetGameObject (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 |
| GameObjectModel * | m_model |
| Public Attributes inherited from WorldObject | |
| uint32 | LastUsedScriptID |
| FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > | m_invisibility |
| FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > | m_invisibilityDetect |
| MovementInfo | m_movementInfo |
| FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > | m_serverSideVisibility |
| FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > | m_serverSideVisibilityDetect |
| FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > | m_stealth |
| FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > | m_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, uint64 > | ChairSlotAndUser |
Protected Member Functions | |
| bool | AIM_Initialize () |
| GameObjectModel * | CreateModel () |
| 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 () | |
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 | |
| GameObjectAI * | m_AI |
Definition at line 628 of file GameObject.h.
|
protected |
Definition at line 867 of file GameObject.h.
|
explicit |
Definition at line 27 of file GameObject.cpp.
References GAMEOBJECT_END, GO_NOT_READY, lootingGroupLowGUID, m_AI, m_cooldownTime, m_DBTableGuid, m_goData, m_goInfo, m_goValue, m_groupLootTimer, m_lootRecipient, m_lootRecipientGroup, m_lootState, m_model, Object::m_objectType, Object::m_objectTypeId, m_respawnDelayTime, m_respawnTime, m_ritualOwner, m_rotation, m_spawnedByDefault, m_spellId, m_stationaryPosition, Object::m_updateFlag, m_usetimes, Object::m_valuesCount, MapObject::MapObject(), ResetLootMode(), TYPEID_GAMEOBJECT, TYPEMASK_GAMEOBJECT, UPDATEFLAG_ROTATION, UPDATEFLAG_STATIONARY_POSITION, and WorldObject::WorldObject().
Referenced by Transport::CreateGOPassenger(), Delete(), GetGameObject(), LookupFishingHoleAround(), SetGoArtKit(), Transport::TeleportTransport(), Transport::Transport(), TriggeringLinkedGameObject(), Update(), and Use().
| GameObject::~GameObject | ( | ) |
Definition at line 59 of file GameObject.cpp.
|
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().
| bool GameObject::ActivateToQuest | ( | Player * | target | ) | const |
Definition at line 1272 of file GameObject.cpp.
References GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, Player::GetBattleground(), Object::GetEntry(), GetGOInfo(), GetGoType(), Player::GetQuestStatus(), Player::GetTeam(), Player::HasQuestForGO(), LootTemplates_Gameobject, QUEST_STATUS_INCOMPLETE, GameObjectTemplate::questID, GameObjectTemplate::questId, and sObjectMgr.
Referenced by BuildValuesUpdate().
|
inline |
Definition at line 749 of file GameObject.h.
References m_LootMode.
|
inline |
Definition at line 753 of file GameObject.h.
References m_SkillupList.
|
virtual |
Reimplemented from Object.
Definition at line 129 of file GameObject.cpp.
References Object::AddToWorld(), EnableCollision(), GAMEOBJECT_TYPE_CHEST, GetGoState(), GetGoType(), getLootState(), WorldObject::GetMap(), GO_READY, GO_STATE_READY, Map::InsertGameObjectModel(), Object::IsInWorld(), IsTransport(), m_model, WorldObject::m_zoneScript, and sObjectAccessor.
Referenced by Map::AddToMap().
| 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().
|
inline |
Definition at line 765 of file GameObject.h.
References m_usetimes.
Referenced by AddUniqueUse(), WorldSession::DoLootRelease(), and Use().
|
inline |
Definition at line 824 of file GameObject.h.
References m_AI.
Referenced by EventInform(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), SetLootState(), Update(), Transport::Update(), and Use().
|
protected |
Definition at line 67 of file GameObject.cpp.
References m_AI, and FactorySelector::SelectGameObjectAI().
Referenced by Create(), Transport::CreateLocal(), Update(), and Transport::Update().
|
virtual |
Reimplemented from Object.
Definition at line 2505 of file GameObject.cpp.
References Object::_changesMask, ActivateToQuest(), ByteBuffer::append(), UpdateMask::AppendToPacket(), GameObjectTemplate::chest, GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_MO_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GameObjectUpdateFieldFlags, UpdateMask::GetBlockCount(), GetGOInfo(), GetGoType(), Object::GetGUID(), GetOwnerGUID(), Skyfire::GameObjects::GetTransportDynamicPathProgress(), GetTransportPeriod(), Object::GetUInt32Value(), GO_DYNFLAG_LO_ACTIVATE, GO_DYNFLAG_LO_SPARKLE, GO_FLAG_LOCKED, GO_FLAG_NOT_SELECTABLE, GameObjectTemplate::groupLootRules, HasLootRecipient(), Player::IsGameMaster(), IsLootAllowedFor(), IsTransport(), Object::m_fieldNotifyFlags, m_goValue, Object::m_uint32Values, Object::m_valuesCount, OBJECT_FIELD_DYNAMIC_FLAGS, UpdateMask::SetBit(), UpdateMask::SetCount(), UF_FLAG_OWNER, UF_FLAG_PUBLIC, UF_FLAG_VIEWER_DEPENDENT, UPDATETYPE_VALUES, and Skyfire::GameObjects::UsesControlledTransportProgress().
Definition at line 2023 of file GameObject.cpp.
References SpellInfo::CalcCastTime(), Unit::CastSpell(), SpellInfo::Effects, Object::GetGUID(), GetOwner(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SpellImplicitTargetInfo::GetTarget(), MAX_SPELL_EFFECTS, Unit::setFaction(), Unit::SetOwnerGUID(), sSpellMgr, WorldObject::SummonTrigger(), TARGET_UNIT_CASTER, and SpellEffectInfo::TargetA.
Referenced by go_wind_stone::SummonNPC(), TriggeringLinkedGameObject(), Update(), and Use().
|
virtual |
Reimplemented from WorldObject.
Definition at line 89 of file GameObject.cpp.
References WorldObject::GetTransport(), Object::IsInWorld(), WorldObject::m_movementInfo, Object::m_uint32Values, RemoveFromOwner(), RemoveFromWorld(), Transport::RemovePassenger(), WorldObject::SetTransport(), and ToTransport().
|
inline |
Definition at line 762 of file GameObject.h.
References m_SkillupList.
| 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().
|
protected |
Definition at line 2672 of file GameObject.cpp.
References GameObjectModel::Create(), and sWorld.
Referenced by Create(), Transport::Create(), Transport::CreateLocal(), and UpdateModel().
| void GameObject::Delete | ( | ) |
Definition at line 667 of file GameObject.cpp.
References WorldObject::AddObjectToRemoveList(), GameObject(), GAMEOBJECT_FIELD_FLAGS, GetDBTableGUIDLow(), GetGOInfo(), Object::GetGUID(), GO_NOT_READY, GO_STATE_READY, RemoveFromOwner(), WorldObject::SendObjectDeSpawnAnim(), SetGoState(), SetLootState(), Object::SetUInt32Value(), and sPoolMgr.
Referenced by OPvPCapturePoint::DelObject(), OutdoorPvPSI::HandleCustomSpell(), Player::OnArchaeologyFindUsed(), Unit::RemoveGameObject(), BattlegroundEY::RespawnFlagAfterDrop(), Update(), and Use().
| void GameObject::DeleteFromDB | ( | ) |
Definition at line 853 of file GameObject.cpp.
References WorldObject::GetMap(), m_DBTableGuid, Map::RemoveGORespawnTime(), PreparedStatement::setUInt32(), sObjectMgr, WORLD_DEL_EVENT_GAMEOBJECT, WORLD_DEL_GAMEOBJECT, and WorldDatabase.
Referenced by LuaGameObject::RemoveFromWorld().
| void GameObject::EnableCollision | ( | bool | enable | ) |
Definition at line 2427 of file GameObject.cpp.
References WorldObject::GetPhaseMask(), and m_model.
Referenced by AddToWorld(), SetDestructibleState(), SetGoState(), SetLootState(), SetPhased(), and SetPhaseMask().
| void GameObject::EventInform | ( | uint32 | eventId | ) |
Definition at line 2122 of file GameObject.cpp.
References AI(), GameObjectAI::EventInform(), and WorldObject::m_zoneScript.
Referenced by Transport::DoEventIfAny(), SetDestructibleState(), and Use().
| std::string GameObject::GetAIName | ( | ) | const |
Definition at line 81 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by SmartGameObjectAI::Permissible(), and FactorySelector::SelectGameObjectAI().
|
inline |
Definition at line 651 of file GameObject.h.
References m_DBTableGuid.
Referenced by Delete(), OPvPCapturePoint::DelObject(), GetRespawnPosition(), OutdoorPvP::OnGameObjectCreate(), OutdoorPvP::OnGameObjectRemove(), Skyfire::GameObjectWithDbGUIDCheck::operator()(), Update(), and Use().
|
inline |
Definition at line 811 of file GameObject.h.
References GAMEOBJECT_FIELD_FLAGS, 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 828 of file GameObject.h.
References GAMEOBJECT_FIELD_DISPLAY_ID, and Object::GetUInt32Value().
Referenced by LuaGameObject::GetDisplayId().
Definition at line 684 of file GameObject.cpp.
References Loot::clear(), Loot::FillLoot(), WorldObject::GetZoneAndAreaId(), and LootTemplates_Fishing.
Referenced by Player::SendLoot().
|
static |
Definition at line 871 of file GameObject.cpp.
References GameObject(), Map::GetGameObject(), WorldObject::GetMap(), and WorldObject::WorldObject().
Referenced by boss_sapphiron::boss_sapphironAI::CastExplosion(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::CaveDestruction(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::DoAction(), boss_netherspite::boss_netherspiteAI::HandleDoors(), spell_warl_demonic_circle_teleport::spell_warl_demonic_circle_teleport_AuraScript::HandleTeleport(), npc_manaforge_control_console::npc_manaforge_control_consoleAI::JustDied(), npc_announcer_toc10::OnGossipSelect(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::RestoreAll(), npc_announcer_toc5::npc_announcer_toc5AI::SetData(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::SetInFace(), Battleground::SpawnBGObject(), boss_lich_king_toc::boss_lich_king_tocAI::UpdateAI(), npc_manaforge_control_console::npc_manaforge_control_consoleAI::UpdateAI(), npc_shadowmoon_tuber_node::npc_shadowmoon_tuber_nodeAI::UpdateAI(), and npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::UpdateEscortAI().
|
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().
|
inline |
Definition at line 730 of file GameObject.h.
References GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, and Object::GetByteValue().
Referenced by SaveToDB().
|
inline |
|
inline |
Definition at line 643 of file GameObject.h.
References m_goInfo.
Referenced by ActivateToQuest(), BuildValuesUpdate(), Create(), Transport::CreateLocal(), Delete(), BattlegroundSA::DestroyGate(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), Transport::EnableMovement(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundSA::EventPlayerDamagedGO(), Player::GetDefaultGossipMenuForSource(), GetScriptId(), GetStationaryO(), GetStationaryX(), GetStationaryY(), GetStationaryZ(), WorldSession::HandleAlterAppearance(), OutdoorPvPSI::HandleCustomSpell(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), WorldSession::HandleGossipSelectOptionOpcode(), InitializeLegacyTransport(), IsDestructibleBuilding(), IsDynTransport(), IsTransport(), LoadGameObjectFromDB(), Transport::LoadStaticPassengers(), ModifyHealth(), Skyfire::GameObjectFocusCheck::operator()(), Skyfire::GameObjectInRangeCheck::operator()(), Skyfire::NearestGameObjectFishingHole::operator()(), RemoveFromOwner(), Creature::SaveToDB(), SaveToDB(), Player::SendLoot(), BfCapturePoint::SetCapturePointData(), StopLegacyTransportAtInitialStop(), Update(), Transport::Update(), UpdateVisibilityOf_helper(), Use(), and UseDoorOrButton().
|
inline |
Definition at line 717 of file GameObject.h.
References GAMEOBJECT_FIELD_PERCENT_HEALTH, and Object::GetByteValue().
Referenced by Map::_ScriptProcessDoor(), AddToWorld(), TransportMgr::CreateLocalTransport(), instance_blackrock_spire::instance_blackrock_spireMapScript::Dragonspireroomcheck(), BattlegroundSA::GetBoatDebugStatus(), LuaGameObject::GetGoState(), debug_commandscript::HandleDebugTransportCommand(), SaveToDB(), SetGoState(), SetLootState(), SwitchDoorOrButton(), Update(), Transport::Update(), and UpdateLegacyTransportPathProgress().
Definition at line 2630 of file GameObject.cpp.
References GO_STATE_ACTIVE, GO_STATE_ACTIVE_ALTERNATIVE, GO_STATE_READY, GO_STATE_TRANSPORT_ACTIVE, and GO_STATE_TRANSPORT_STOPPED.
Referenced by Create(), Transport::CreateLocal(), SetGoState(), StartLegacyTransportToFirstStop(), StopLegacyTransportAtCurrentProgress(), and StopLegacyTransportAtInitialStop().
|
inline |
Definition at line 719 of file GameObject.h.
References GAMEOBJECT_FIELD_PERCENT_HEALTH, and Object::GetByteValue().
Referenced by Map::_ScriptProcessDoor(), ActivateToQuest(), Spell::AddGOTarget(), Transport::AddPassenger(), AddToWorld(), Object::BuildCreateUpdateBlockForPlayer(), Object::BuildMovementUpdate(), BuildValuesUpdate(), TransportMgr::CreateLocalTransport(), WorldSession::DoLootRelease(), InstanceScript::DoUseDoorOrButton(), Spell::EffectSummonObjectWild(), Transport::EnableMovement(), GetPauseTimes(), GetTransportPeriod(), LuaPlayer::GossipAddQuests(), WorldSession::HandleAutostoreLootItemOpcode(), HandleLegacyTransportStateChange(), WorldSession::HandleMovementOpcodes(), Battleground::HandleTriggerBuff(), OutdoorPvP::OnGameObjectCreate(), OutdoorPvP::OnGameObjectRemove(), Skyfire::NearestGameObjectTypeInObjectRangeCheck::operator()(), Player::PrepareGossipMenu(), Transport::RemovePassenger(), Map::ScriptsProcess(), WorldSession::SendQuestgiverStatusMultiple(), SetDestructibleState(), SetLegacyTransportTravelTime(), SetOwnerGUID(), SetTransportPathProgress(), StartLegacyTransportToFirstStop(), StopLegacyTransportAtCurrentProgress(), StopLegacyTransportAtInitialStop(), Update(), Transport::Update(), Transport::UpdatePosition(), and Use().
|
inline |
Definition at line 645 of file GameObject.h.
References m_goValue.
Referenced by Object::BuildMovementUpdate(), WorldSession::DoLootRelease(), Transport::GetTimer(), misc_commandscript::HandleDamageCommand(), and Transport::Update().
Definition at line 1193 of file GameObject.cpp.
References GO_STATE_TRANSPORT_STOPPED, m_goValue, and m_transportPauseTimes.
Referenced by HandleLegacyTransportStateChange(), and UpdateLegacyTransportPathProgress().
|
inlinevirtual |
Reimplemented from WorldObject.
Definition at line 794 of file GameObject.h.
References getLevelForTarget(), GetOwner(), OVERRIDE, and WorldObject::WorldObject().
Referenced by getLevelForTarget().
|
inline |
Definition at line 746 of file GameObject.h.
References m_LootMode.
Referenced by Player::SendLoot().
| Player * GameObject::GetLootRecipient | ( | ) | const |
Definition at line 2451 of file GameObject.cpp.
References ObjectAccessor::FindPlayer(), and m_lootRecipient.
| Group * GameObject::GetLootRecipientGroup | ( | ) | const |
Definition at line 2458 of file GameObject.cpp.
References m_lootRecipientGroup, and sGroupMgr.
Referenced by IsLootAllowedFor().
|
inline |
Definition at line 742 of file GameObject.h.
References m_lootState.
Referenced by AddToWorld(), InstanceScript::DoUseDoorOrButton(), LuaGameObject::GetLootState(), Player::OnArchaeologyFindUsed(), Player::SendLoot(), and Use().
|
virtual |
Reimplemented from WorldObject.
Definition at line 2135 of file GameObject.cpp.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), and sObjectMgr.
| Unit * GameObject::GetOwner | ( | ) | const |
Definition at line 1215 of file GameObject.cpp.
References GetOwnerGUID(), and ObjectAccessor::GetUnit().
Referenced by WorldObject::CanDetectStealthOf(), CastSpell(), getLevelForTarget(), IsAlwaysVisibleFor(), TriggeringLinkedGameObject(), Update(), and Use().
|
inline |
Definition at line 679 of file GameObject.h.
References GAMEOBJECT_FIELD_CREATED_BY, and Object::GetUInt64Value().
Referenced by Unit::AddGameObject(), BuildValuesUpdate(), WorldSession::DoLootRelease(), GetOwner(), Player::GetResearchDigsiteForFind(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMoneyOpcode(), IsAlwaysVisibleFor(), RemoveFromOwner(), Unit::RemoveGameObject(), Player::SendLoot(), SetOwnerGUID(), Update(), and Use().
| std::vector< uint32 > const * GameObject::GetPauseTimes | ( | ) | const |
Definition at line 938 of file GameObject.cpp.
References GAMEOBJECT_TYPE_TRANSPORT, GetGoType(), and m_transportPauseTimes.
|
inline |
Definition at line 713 of file GameObject.h.
References m_respawnDelayTime.
Referenced by gobject_commandscript::HandleGameObjectTargetCommand().
| void GameObject::GetRespawnPosition | ( | float & | x, |
| float & | y, | ||
| float & | z, | ||
| float * | ori = NULL ) const |
Definition at line 2596 of file GameObject.cpp.
References GetDBTableGUIDLow(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_DBTableGuid, and sObjectMgr.
Referenced by Map::GameObjectRespawnRelocation().
|
inline |
Definition at line 689 of file GameObject.h.
References m_respawnTime.
Referenced by Player::SendLoot().
|
inline |
Definition at line 690 of file GameObject.h.
References m_respawnTime.
Referenced by gobject_commandscript::HandleGameObjectTargetCommand().
|
inline |
Definition at line 822 of file GameObject.h.
References m_rotation.
|
inlinevirtual |
Definition at line 823 of file GameObject.h.
References GetGOInfo(), and GameObjectTemplate::ScriptId.
Referenced by ScriptMgr::GetDialogStatus(), ScriptMgr::GetGameObjectAI(), ScriptMgr::OnAddCreaturePassenger(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnDummyEffect(), ScriptMgr::OnGameObjectDamaged(), ScriptMgr::OnGameObjectDestroyed(), ScriptMgr::OnGameObjectLootStateChanged(), ScriptMgr::OnGameObjectStateChanged(), ScriptMgr::OnGameObjectUpdate(), ScriptMgr::OnGossipHello(), ScriptMgr::OnGossipSelect(), ScriptMgr::OnGossipSelectCode(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestReward(), ScriptMgr::OnRelocate(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnTransportUpdate(), and FactorySelector::SelectGameObjectAI().
|
inline |
Definition at line 687 of file GameObject.h.
References m_spellId.
Referenced by Unit::AddGameObject(), Unit::RemoveGameObject(), and Update().
|
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().
|
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().
|
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().
|
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().
|
inline |
Definition at line 722 of file GameObject.h.
References m_goValue.
Referenced by BattlegroundSA::GetBoatDebugStatus().
| uint32 GameObject::GetTransportPeriod | ( | ) | const |
Definition at line 922 of file GameObject.cpp.
References GAMEOBJECT_FIELD_LEVEL, GAMEOBJECT_TYPE_TRANSPORT, GetGoType(), Object::GetUInt32Value(), and m_goValue.
Referenced by BuildValuesUpdate(), TransportMgr::CreateLocalTransport(), BattlegroundSA::GetBoatDebugStatus(), HandleLegacyTransportStateChange(), InitializeLegacyTransport(), SetTransportPathProgress(), and UpdateLegacyTransportPathProgress().
|
inline |
|
inline |
Definition at line 767 of file GameObject.h.
References m_usetimes.
Referenced by WorldSession::DoLootRelease().
Definition at line 1028 of file GameObject.cpp.
References GAMEOBJECT_FIELD_LEVEL, GAMEOBJECT_TYPE_TRANSPORT, GetGoType(), GetLegacyTransportTargetProgress(), Skyfire::GameObjects::GetLegacyTransportTransitionTime(), getMSTime(), GetTransportPeriod(), GO_DYNFLAG_LO_INVERTED_MOVEMENT, GO_STATE_TRANSPORT_ACTIVE, GO_STATE_TRANSPORT_STOPPED, m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), OBJECT_FIELD_DYNAMIC_FLAGS, Object::RemoveFlag(), Object::SetFlag(), SetLegacyTransportStopped(), Object::SetUInt32Value(), and UpdateLegacyTransportPathProgress().
Referenced by SetGoState().
|
virtual |
Reimplemented from Object.
Definition at line 890 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
|
inline |
Definition at line 747 of file GameObject.h.
References m_LootMode.
|
inline |
Definition at line 778 of file GameObject.h.
References HasLootRecipient(), m_lootRecipient, and m_lootRecipientGroup.
Referenced by BuildValuesUpdate(), and HasLootRecipient().
|
virtual |
Reimplemented from Object.
Definition at line 879 of file GameObject.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by LuaGameObject::HasQuest().
|
protected |
Definition at line 946 of file GameObject.cpp.
References Skyfire::GameObjects::ClampLegacyTransportPathProgress(), GAMEOBJECT_FIELD_LEVEL, GetGOInfo(), Skyfire::GameObjects::GetInitialLegacyTransportPathProgress(), getMSTime(), GetTransportPeriod(), m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), GameObjectTemplate::pause, Object::SetUInt32Value(), GameObjectTemplate::startOpen, sTransportMgr, and GameObjectTemplate::transport.
Referenced by Create(), and Transport::CreateLocal().
|
virtual |
Reimplemented from WorldObject.
Definition at line 1226 of file GameObject.cpp.
References Object::GetGUID(), GetOwner(), GetOwnerGUID(), WorldObject::IsAlwaysVisibleFor(), IsDestructibleBuilding(), Unit::IsFriendlyTo(), IsTransport(), Object::isType(), TYPEMASK_UNIT, and WorldObject::WorldObject().
| bool GameObject::IsDestructibleBuilding | ( | ) | const |
Definition at line 1206 of file GameObject.cpp.
References GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GetGOInfo(), and GameObjectTemplate::type.
Referenced by misc_commandscript::HandleDamageCommand(), IsAlwaysVisibleFor(), and LuaGameObject::IsDestructible().
| bool GameObject::IsDynTransport | ( | ) | const |
Definition at line 912 of file GameObject.cpp.
References GAMEOBJECT_TYPE_MO_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 2096 of file GameObject.cpp.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::IsWithinDist3d(), m_goInfo, GameObjectDisplayInfoEntry::maxX, GameObjectDisplayInfoEntry::maxY, GameObjectDisplayInfoEntry::maxZ, GameObjectDisplayInfoEntry::minX, GameObjectDisplayInfoEntry::minY, GameObjectDisplayInfoEntry::minZ, and sGameObjectDisplayInfoStore.
Referenced by _IsWithinDist(), Skyfire::GameObjectInRangeCheck::operator()(), and Skyfire::WorldObjectSpellAreaTargetCheck::operator()().
|
inline |
Definition at line 754 of file GameObject.h.
References m_SkillupList.
|
virtual |
Reimplemented from WorldObject.
Definition at line 1251 of file GameObject.cpp.
References WorldObject::IsInvisibleDueToDespawn(), and isSpawned().
| bool GameObject::IsLootAllowedFor | ( | Player const * | player | ) | const |
Definition at line 2490 of file GameObject.cpp.
References Player::GetGroup(), Object::GetGUID(), GetLootRecipientGroup(), m_lootRecipient, and m_lootRecipientGroup.
Referenced by BuildValuesUpdate().
|
inline |
Definition at line 705 of file GameObject.h.
References m_respawnDelayTime, m_respawnTime, and m_spawnedByDefault.
Referenced by Battleground::HandleTriggerBuff(), IsInvisibleDueToDespawn(), LuaGameObject::IsSpawned(), dummy_dragonAI::OpenPortal(), Skyfire::NearestGameObjectFishingHole::operator()(), Refresh(), Map::ScriptsProcess(), and Update().
|
inline |
Definition at line 711 of file GameObject.h.
References m_spawnedByDefault.
Referenced by GameEventMgr::GameEventSpawn(), Player::SendLoot(), and PoolGroup< T >::Spawn1Object().
| bool GameObject::IsTransport | ( | ) | const |
Definition at line 901 of file GameObject.cpp.
References GAMEOBJECT_TYPE_MO_TRANSPORT, GAMEOBJECT_TYPE_TRANSPORT, GetGOInfo(), and GameObjectTemplate::type.
Referenced by AddToWorld(), BuildValuesUpdate(), IsAlwaysVisibleFor(), LuaGameObject::IsTransport(), and SetGoState().
Definition at line 661 of file GameObject.h.
References LoadGameObjectFromDB(), and MapObject::Map.
Definition at line 770 of file GameObject.cpp.
References GameObjectData::animprogress, GameObjectData::artKit, Create(), GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_TYPE_QUESTGIVER, GetGOInfo(), Map::GetGORespawnTime(), Map::GetInstanceId(), WorldObject::GetMap(), GetPhasesForGroup(), GO_FLAG_INTERACT_COND, GO_FLAG_NODESPAWN, GameObjectData::go_state, HIGHGUID_GAMEOBJECT, GameObjectData::id, m_DBTableGuid, m_goData, m_respawnDelayTime, m_respawnTime, m_spawnedByDefault, MapObject::Map, GameObjectData::orientation, GameObjectData::phaseGroup, GameObjectData::phaseid, GameObjectData::posX, GameObjectData::posY, GameObjectData::posZ, Object::RemoveFlag(), Map::RemoveGORespawnTime(), GameObjectData::rotation0, GameObjectData::rotation1, GameObjectData::rotation2, GameObjectData::rotation3, Object::SetFlag(), SetPhased(), SF_LOG_ERROR, sObjectMgr, and GameObjectData::spawntimesecs.
Referenced by ObjectMgr::AddGOData(), Transport::CreateGOPassenger(), GameEventMgr::GameEventSpawn(), gobject_commandscript::HandleGameObjectAddCommand(), LoadFromDB(), LuaGlobalFunctions::PerformIngameSpawn(), and PoolGroup< T >::Spawn1Object().
| GameObject * GameObject::LookupFishingHoleAround | ( | float | range | ) |
Definition at line 1343 of file GameObject.cpp.
References Skyfire::ComputeCellCoord(), GameObject(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), and Cell::Visit().
Referenced by Use().
|
protected |
Definition at line 1182 of file GameObject.cpp.
References Object::GetUInt32Value(), Object::IsInWorld(), Object::m_objectUpdated, OBJECT_FIELD_DYNAMIC_FLAGS, sObjectAccessor, and Object::UpdateUInt32Value().
Referenced by HandleLegacyTransportStateChange(), InitializeLegacyTransport(), SetLegacyTransportTravelTime(), SetTransportPathProgress(), StartLegacyTransportToFirstStop(), StopLegacyTransportAtCurrentProgress(), StopLegacyTransportAtInitialStop(), and UpdateLegacyTransportPathProgress().
Definition at line 2186 of file GameObject.cpp.
References Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), GetDestructibleState(), GetGOInfo(), Object::GetGUID(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, m_goValue, Player::SendDirectMessage(), SetDestructibleState(), SetGoAnimProgress(), SMSG_DESTRUCTIBLE_BUILDING_DAMAGE, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by misc_commandscript::HandleDamageCommand().
| void GameObject::Refresh | ( | ) |
Definition at line 651 of file GameObject.cpp.
References Map::AddToMap(), WorldObject::GetMap(), isSpawned(), m_respawnTime, and m_spawnedByDefault.
Referenced by BattlegroundSA::ResetObjs().
|
private |
Definition at line 105 of file GameObject.cpp.
References ASSERT, GetGOInfo(), Object::GetGUIDLow(), GetOwnerGUID(), ObjectAccessor::GetUnit(), GUID_LOPART(), IS_PET_GUID(), IS_PLAYER_GUID(), m_spellId, SetOwnerGUID(), and SF_LOG_FATAL.
Referenced by CleanupsBeforeDelete(), Delete(), RemoveFromWorld(), and Use().
|
virtual |
Reimplemented from WorldObject.
Definition at line 149 of file GameObject.cpp.
References WorldObject::GetMap(), Object::IsInWorld(), m_model, WorldObject::m_zoneScript, RemoveFromOwner(), WorldObject::RemoveFromWorld(), Map::RemoveGameObjectModel(), and sObjectAccessor.
Referenced by CleanupsBeforeDelete(), BattlegroundIC::PostUpdateImpl(), Map::RemoveFromMap(), LuaGameObject::RemoveFromWorld(), and Map::~Map().
|
inline |
Definition at line 750 of file GameObject.h.
References m_LootMode.
| void GameObject::ResetDoorOrButton | ( | ) |
Definition at line 1358 of file GameObject.cpp.
References GO_JUST_DEACTIVATED, GO_READY, m_cooldownTime, m_lootState, SetLootState(), and SwitchDoorOrButton().
Referenced by InstanceScript::DoUseDoorOrButton(), FrozenThroneResetWorker::operator()(), Update(), and npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI().
|
inline |
Definition at line 751 of file GameObject.h.
References LOOT_MODE_DEFAULT, and m_LootMode.
Referenced by GameObject().
| void GameObject::Respawn | ( | ) |
Definition at line 1263 of file GameObject.cpp.
References WorldObject::GetMap(), m_DBTableGuid, m_respawnTime, m_spawnedByDefault, and Map::RemoveGORespawnTime().
Referenced by Skyfire::RespawnDo::operator()().
|
virtual |
Reimplemented from WorldObject.
Definition at line 1220 of file GameObject.cpp.
References WorldObject::GetMap(), m_DBTableGuid, m_goData, m_respawnTime, m_spawnedByDefault, and Map::SaveGORespawnTime().
Referenced by Map::RemoveFromMap(), and Update().
| void GameObject::SaveToDB | ( | ) |
Definition at line 697 of file GameObject.cpp.
References WorldLocation::GetMapId(), m_DBTableGuid, SaveToDB(), SF_LOG_ERROR, sObjectMgr, and GameObjectData::spawnMask.
Referenced by SaveToDB(), and LuaGameObject::SaveToDB().
Definition at line 711 of file GameObject.cpp.
References GameObjectData::animprogress, GameObjectData::artKit, GAMEOBJECT_FIELD_PARENT_ROTATION, Object::GetEntry(), Object::GetFloatValue(), GetGoAnimProgress(), GetGoArtKit(), GetGOInfo(), GetGoState(), Object::GetGUIDLow(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GameObjectData::go_state, GameObjectData::id, m_DBTableGuid, m_respawnDelayTime, m_spawnedByDefault, GameObjectData::mapid, GameObjectData::orientation, GameObjectData::posX, GameObjectData::posY, GameObjectData::posZ, GameObjectData::rotation0, GameObjectData::rotation1, GameObjectData::rotation2, GameObjectData::rotation3, PreparedStatement::setFloat(), PreparedStatement::setInt32(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), sObjectMgr, GameObjectData::spawnMask, GameObjectData::spawntimesecs, WORLD_DEL_GAMEOBJECT, WORLD_INS_GAMEOBJECT, and WorldDatabase.
| void GameObject::SendCustomAnim | ( | uint32 | anim | ) |
Definition at line 2067 of file GameObject.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), WorldObject::SendMessageToSet(), SMSG_GAMEOBJECT_CUSTOM_ANIM, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void GameObject::SetDestructibleState | ( | GameObjectDestructibleState | state, |
| Player * | eventInvoker = NULL, | ||
| bool | setHealth = false ) |
Definition at line 2274 of file GameObject.cpp.
References ASSERT, EnableCollision(), EventInform(), GAMEOBJECT_FIELD_FLAGS, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, Player::GetBattleground(), GetGoType(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_INTACT, GO_DESTRUCTIBLE_REBUILDING, GO_FLAG_DAMAGED, GO_FLAG_DESTROYED, m_goInfo, m_goValue, Object::RemoveFlag(), sDestructibleModelDataStore, SetDisplayId(), Object::SetFlag(), SetGoAnimProgress(), and sScriptMgr.
Referenced by BfWGGameObjectBuilding::Init(), ModifyHealth(), and FrozenThroneResetWorker::operator()().
| void GameObject::SetDisplayId | ( | uint32 | displayid | ) |
Definition at line 2408 of file GameObject.cpp.
References GAMEOBJECT_FIELD_DISPLAY_ID, Object::SetUInt32Value(), and UpdateModel().
Referenced by Create(), Transport::Create(), Transport::CreateLocal(), and SetDestructibleState().
|
inline |
Definition at line 734 of file GameObject.h.
References GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, and Object::SetByteValue().
|
inline |
Definition at line 733 of file GameObject.h.
References GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, and Object::SetByteValue().
Referenced by Create(), Transport::Create(), Transport::CreateLocal(), ModifyHealth(), and SetDestructibleState().
| void GameObject::SetGoArtKit | ( | uint8 | artkit | ) |
Definition at line 1382 of file GameObject.cpp.
References GameObjectData::artKit, GAMEOBJECT_FIELD_STATE_SPELL_VISUAL_ID, m_DBTableGuid, Object::SetByteValue(), and sObjectMgr.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), Create(), and SetGoArtKit().
|
static |
Definition at line 1390 of file GameObject.cpp.
References GameObject(), GetGOData(), SetGoArtKit(), and sObjectMgr.
|
inline |
Definition at line 729 of file GameObject.h.
References GAMEOBJECT_FIELD_PERCENT_HEALTH, and Object::SetByteValue().
Referenced by Create().
| void GameObject::SetGoState | ( | GOState | state | ) |
Definition at line 2388 of file GameObject.cpp.
References EnableCollision(), GAMEOBJECT_FIELD_PERCENT_HEALTH, GetGoState(), GetGOStateValue(), GO_STATE_READY, HandleLegacyTransportStateChange(), Object::IsInWorld(), IsTransport(), m_model, Object::SetByteValue(), and sScriptMgr.
Referenced by Create(), Transport::Create(), Delete(), Transport::EnableMovement(), InstanceScript::HandleGameObject(), item_dehta_trap_smasher::OnUse(), FrozenThroneResetWorker::operator()(), boss_palehoof::boss_palehoofAI::Reset(), npc_trapped_mammoth_calf::npc_trapped_mammoth_calfAI::Reset(), boss_novos::boss_novosAI::SetCrystalStatus(), LuaGameObject::SetGoState(), SwitchDoorOrButton(), Update(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), Transport::Update(), npc_nesingwary_trapper::npc_nesingwary_trapperAI::UpdateAI(), InstanceScript::UpdateDoorState(), and Use().
|
inline |
Definition at line 720 of file GameObject.h.
References GAMEOBJECT_FIELD_PERCENT_HEALTH, and Object::SetByteValue().
Referenced by Create(), Transport::Create(), and Transport::CreateLocal().
|
protected |
Definition at line 1173 of file GameObject.cpp.
References Object::GetUInt32Value(), OBJECT_FIELD_DYNAMIC_FLAGS, Skyfire::GameObjects::SetLegacyTransportStoppedFlag(), and Object::SetUInt32Value().
Referenced by Create(), Transport::CreateLocal(), HandleLegacyTransportStateChange(), SetLegacyTransportTravelTime(), StartLegacyTransportToFirstStop(), StopLegacyTransportAtCurrentProgress(), StopLegacyTransportAtInitialStop(), and UpdateLegacyTransportPathProgress().
| void GameObject::SetLegacyTransportTravelTime | ( | uint32 | travelTime | ) |
Definition at line 1087 of file GameObject.cpp.
References GAMEOBJECT_FIELD_LEVEL, GAMEOBJECT_TYPE_TRANSPORT, GetGoType(), getMSTime(), m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), SetLegacyTransportStopped(), and Object::SetUInt32Value().
|
inline |
Definition at line 748 of file GameObject.h.
References m_LootMode.
| void GameObject::SetLootRecipient | ( | Unit * | unit | ) |
Definition at line 2465 of file GameObject.cpp.
References Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Player::GetGroup(), Object::GetGUID(), Object::GetTypeId(), Unit::IsVehicle(), m_lootRecipient, m_lootRecipientGroup, and TYPEID_PLAYER.
Definition at line 2372 of file GameObject.cpp.
References AI(), EnableCollision(), GetGoState(), GO_ACTIVATED, GO_JUST_DEACTIVATED, GO_READY, GO_STATE_READY, m_lootState, m_model, GameObjectAI::OnStateChanged(), and sScriptMgr.
Referenced by Delete(), WorldSession::DoLootRelease(), gobject_commandscript::HandleGameObjectActivateCommand(), npc_trapped_mammoth_calf::npc_trapped_mammoth_calfAI::MovementInform(), Player::OnArchaeologyFindUsed(), ResetDoorOrButton(), Map::ScriptsProcess(), Player::SendLoot(), LuaGameObject::SetLootState(), Update(), Use(), and UseDoorOrButton().
|
inline |
Definition at line 665 of file GameObject.h.
References ASSERT, GAMEOBJECT_FIELD_CREATED_BY, GAMEOBJECT_TYPE_SPELL_FOCUS, GetGoType(), GetOwnerGUID(), IS_PLAYER_GUID(), m_spawnedByDefault, and Object::SetUInt64Value().
Referenced by Unit::AddGameObject(), Spell::EffectTransmitted(), RemoveFromOwner(), Unit::RemoveGameObject(), SpawnSurveyGameObject(), and Use().
|
virtual |
Reimplemented from WorldObject.
Definition at line 2420 of file GameObject.cpp.
References EnableCollision(), m_model, and WorldObject::SetPhased().
Referenced by Battleground::AddObject(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleDropFlag(), LoadGameObjectFromDB(), Battlefield::SpawnGameObject(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), SpawnSurveyGameObject(), and WorldObject::SummonGameObject().
|
virtual |
Reimplemented from WorldObject.
Definition at line 2414 of file GameObject.cpp.
References EnableCollision(), m_model, and WorldObject::SetPhaseMask().
|
inline |
Definition at line 699 of file GameObject.h.
References m_respawnDelayTime, and m_respawnTime.
Referenced by OPvPCapturePoint::DelObject(), LuaGameObject::Despawn(), Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), OutdoorPvPSI::HandleCustomSpell(), OutdoorPvPSI::HandleDropFlag(), Player::OnArchaeologyFindUsed(), dummy_dragonAI::OpenPortal(), Unit::RemoveGameObject(), LuaGameObject::Respawn(), Map::ScriptsProcess(), BattlegroundIC::SetupBattleground(), SpawnSurveyGameObject(), WorldObject::SummonGameObject(), and Update().
|
inline |
Definition at line 712 of file GameObject.h.
References m_spawnedByDefault.
Referenced by LuaGameObject::Despawn(), LuaGameObject::Respawn(), and WorldObject::SummonGameObject().
|
inline |
Definition at line 682 of file GameObject.h.
References m_spawnedByDefault, and m_spellId.
Referenced by Spell::EffectDuel(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), and SpawnSurveyGameObject().
| void GameObject::SetTransportPathProgress | ( | uint32 | pathProgress | ) |
Definition at line 930 of file GameObject.cpp.
References GetGoType(), Skyfire::GameObjects::GetTransportDynamicPathProgress(), GetTransportPeriod(), m_goValue, and MarkLegacyTransportPathProgressChanged().
| void GameObject::StartLegacyTransportToFirstStop | ( | uint32 | travelTime | ) |
Definition at line 1103 of file GameObject.cpp.
References GAMEOBJECT_FIELD_LEVEL, GAMEOBJECT_FIELD_PERCENT_HEALTH, GAMEOBJECT_TYPE_TRANSPORT, GetGOStateValue(), GetGoType(), getMSTime(), GO_DYNFLAG_LO_INVERTED_MOVEMENT, GO_STATE_TRANSPORT_STOPPED, m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), OBJECT_FIELD_DYNAMIC_FLAGS, Object::RemoveFlag(), Object::SetByteValue(), Object::SetFlag(), SetLegacyTransportStopped(), and Object::SetUInt32Value().
Referenced by BattlegroundSA::DebugStartBoats(), and BattlegroundSA::StartShips().
| void GameObject::StopLegacyTransportAtCurrentProgress | ( | ) |
Definition at line 1153 of file GameObject.cpp.
References GAMEOBJECT_FIELD_LEVEL, GAMEOBJECT_FIELD_PERCENT_HEALTH, GAMEOBJECT_TYPE_TRANSPORT, GetGOStateValue(), GetGoType(), getMSTime(), GO_STATE_TRANSPORT_STOPPED, m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), Object::SetByteValue(), SetLegacyTransportStopped(), Object::SetUInt32Value(), and UpdateLegacyTransportPathProgress().
Referenced by BattlegroundSA::DebugStopBoats().
| void GameObject::StopLegacyTransportAtInitialStop | ( | ) |
Definition at line 1128 of file GameObject.cpp.
References GAMEOBJECT_FIELD_LEVEL, GAMEOBJECT_FIELD_PERCENT_HEALTH, GAMEOBJECT_TYPE_TRANSPORT, GetGOInfo(), GetGOStateValue(), GetGoType(), getMSTime(), GO_DYNFLAG_LO_INVERTED_MOVEMENT, GO_STATE_TRANSPORT_STOPPED, m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), OBJECT_FIELD_DYNAMIC_FLAGS, Object::RemoveFlag(), Object::SetByteValue(), SetLegacyTransportStopped(), Object::SetUInt32Value(), GameObjectTemplate::startOpen, and GameObjectTemplate::transport.
Referenced by BattlegroundSA::ResetObjs(), and BattlegroundSA::SendTransportInit().
|
private |
Definition at line 1405 of file GameObject.cpp.
References GAMEOBJECT_FIELD_FLAGS, GetGoState(), GO_FLAG_IN_USE, GO_STATE_ACTIVE, GO_STATE_ACTIVE_ALTERNATIVE, GO_STATE_READY, Object::RemoveFlag(), Object::SetFlag(), and SetGoState().
Referenced by ResetDoorOrButton(), and UseDoorOrButton().
|
inline |
Definition at line 833 of file GameObject.h.
References Object::GetGUID(), and IS_MO_TRANSPORT_GUID().
Referenced by Object::BuildMovementUpdate(), CleanupsBeforeDelete(), and Map::ScriptsProcess().
|
inline |
Definition at line 834 of file GameObject.h.
References Object::GetGUID(), and IS_MO_TRANSPORT_GUID().
Definition at line 1312 of file GameObject.cpp.
References CastSpell(), Skyfire::ComputeCellCoord(), GameObject(), GAMEOBJECT_TYPE_TRAP, WorldObject::GetMap(), GetOwner(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetSpellMaxRangeForTarget(), sObjectMgr, GameObjectTemplate::spellId, sSpellMgr, GameObjectTemplate::trap, GameObjectTemplate::type, and Cell::Visit().
Referenced by Use().
|
virtual |
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().
|
protected |
Definition at line 977 of file GameObject.cpp.
References GetGoState(), GetLegacyTransportTargetProgress(), getMSTime(), GetTransportPeriod(), GO_DYNFLAG_LO_INVERTED_MOVEMENT, Object::HasFlag(), Skyfire::GameObjects::InterpolateLegacyTransportPathProgress(), m_goValue, m_transportPauseTimes, MarkLegacyTransportPathProgressChanged(), OBJECT_FIELD_DYNAMIC_FLAGS, SetLegacyTransportStopped(), and Skyfire::GameObjects::WrapTransportPathProgress().
Referenced by HandleLegacyTransportStateChange(), StopLegacyTransportAtCurrentProgress(), Update(), and Transport::Update().
|
protected |
Definition at line 2438 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 2618 of file GameObject.cpp.
References WorldObject::GetMap(), Map::InsertGameObjectModel(), m_model, and Map::RemoveGameObjectModel().
Referenced by Map::GameObjectRelocation(), Map::MoveAllGameObjectsInMoveList(), Transport::TeleportTransport(), and Transport::UpdatePosition().
| void GameObject::UpdateRotationFields | ( | float | rotation2 = 0.0f, |
| float | rotation3 = 0.0f ) |
Definition at line 2169 of file GameObject.cpp.
References GAMEOBJECT_FIELD_PARENT_ROTATION, Position::GetOrientation(), Object::SetFloatValue(), and UpdateWorldRotationField().
Referenced by Create(), Transport::Create(), Transport::CreateLocal(), BattlegroundSA::ResetObjs(), and Transport::UpdatePosition().
| void GameObject::UpdateWorldRotationField | ( | ) |
Definition at line 2148 of file GameObject.cpp.
References Position::GetOrientation(), and m_rotation.
Referenced by Transport::UpdatePosition(), and UpdateRotationFields().
| void GameObject::Use | ( | Unit * | user | ) |
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().
| void GameObject::UseDoorOrButton | ( | uint32 | time_to_restore = 0, |
| bool | alternative = false, | ||
| Unit * | user = NULL ) |
Definition at line 1368 of file GameObject.cpp.
References GameObjectTemplate::GetAutoCloseTime(), GetGOInfo(), GO_ACTIVATED, GO_READY, m_cooldownTime, m_lootState, SetLootState(), and SwitchDoorOrButton().
Referenced by Map::_ScriptProcessDoor(), WorldSession::DoLootRelease(), InstanceScript::DoUseDoorOrButton(), Use(), and LuaGameObject::UseDoorOrButton().
|
protected |
Definition at line 868 of file GameObject.h.
Referenced by Use().
| Loot GameObject::loot |
Definition at line 772 of file GameObject.h.
Referenced by Create(), WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), Player::SendLoot(), and Update().
| uint32 GameObject::lootingGroupLowGUID |
Definition at line 780 of file GameObject.h.
Referenced by GameObject(), and Update().
|
private |
Definition at line 892 of file GameObject.h.
Referenced by AI(), AIM_Initialize(), GameObject(), and ~GameObject().
|
protected |
Definition at line 859 of file GameObject.h.
Referenced by GameObject(), ResetDoorOrButton(), Update(), Use(), and UseDoorOrButton().
|
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().
|
protected |
Definition at line 872 of file GameObject.h.
Referenced by GameObject(), GetGOData(), LoadGameObjectFromDB(), and SaveRespawnTime().
|
protected |
Definition at line 871 of file GameObject.h.
Referenced by Transport::CalculateSegmentPos(), Create(), Transport::Create(), Transport::CreateLocal(), GameObject(), GetGOInfo(), IsInRange(), and SetDestructibleState().
|
protected |
Definition at line 873 of file GameObject.h.
Referenced by BuildValuesUpdate(), Create(), Transport::Create(), Transport::CreateLocal(), GameObject(), GetGOValue(), GetLegacyTransportTargetProgress(), GetTransportPathProgress(), GetTransportPeriod(), HandleLegacyTransportStateChange(), InitializeLegacyTransport(), ModifyHealth(), SetDestructibleState(), SetLegacyTransportTravelTime(), SetTransportPathProgress(), StartLegacyTransportToFirstStop(), StopLegacyTransportAtCurrentProgress(), StopLegacyTransportAtInitialStop(), Update(), Transport::Update(), and UpdateLegacyTransportPathProgress().
| uint32 GameObject::m_groupLootTimer |
Definition at line 779 of file GameObject.h.
Referenced by GameObject(), and Update().
|
protected |
Definition at line 881 of file GameObject.h.
Referenced by AddLootMode(), GetLootMode(), HasLootMode(), RemoveLootMode(), ResetLootMode(), and SetLootMode().
|
protected |
Definition at line 879 of file GameObject.h.
Referenced by GameObject(), GetLootRecipient(), HasLootRecipient(), IsLootAllowedFor(), and SetLootRecipient().
|
protected |
Definition at line 880 of file GameObject.h.
Referenced by GameObject(), GetLootRecipientGroup(), HasLootRecipient(), IsLootAllowedFor(), and SetLootRecipient().
|
protected |
Definition at line 857 of file GameObject.h.
Referenced by GameObject(), getLootState(), ResetDoorOrButton(), SetLootState(), Update(), and UseDoorOrButton().
| GameObjectModel* GameObject::m_model |
Definition at line 830 of file GameObject.h.
Referenced by AddToWorld(), Create(), Transport::Create(), Transport::CreateLocal(), EnableCollision(), GameObject(), RemoveFromWorld(), SetGoState(), SetLootState(), SetPhased(), SetPhaseMask(), UpdateModel(), UpdateModelPosition(), and ~GameObject().
|
protected |
Definition at line 856 of file GameObject.h.
Referenced by GameObject(), GetRespawnDelay(), isSpawned(), LoadGameObjectFromDB(), SaveToDB(), SetRespawnTime(), and Update().
|
protected |
Definition at line 855 of file GameObject.h.
Referenced by GameObject(), GetRespawnTime(), GetRespawnTimeEx(), isSpawned(), LoadGameObjectFromDB(), Refresh(), Respawn(), SaveRespawnTime(), SetRespawnTime(), Update(), and Use().
|
protected |
Definition at line 863 of file GameObject.h.
Referenced by GameObject(), and Use().
|
protected |
Definition at line 876 of file GameObject.h.
Referenced by GameObject(), GetRotation(), and UpdateWorldRotationField().
|
protected |
Definition at line 861 of file GameObject.h.
Referenced by AddToSkillupList(), ClearSkillupList(), IsInSkillupList(), and Update().
|
protected |
Definition at line 858 of file GameObject.h.
Referenced by GameObject(), isSpawned(), isSpawnedByDefault(), LoadGameObjectFromDB(), Refresh(), Respawn(), SaveRespawnTime(), SaveToDB(), SetOwnerGUID(), SetSpawnedByDefault(), SetSpellId(), and Update().
|
protected |
Definition at line 854 of file GameObject.h.
Referenced by GameObject(), GetSpellId(), RemoveFromOwner(), and SetSpellId().
|
protected |
Definition at line 877 of file GameObject.h.
Referenced by Create(), Transport::CreateLocal(), GameObject(), GetStationaryO(), GetStationaryX(), GetStationaryY(), and GetStationaryZ().
|
protected |
Definition at line 874 of file GameObject.h.
Referenced by Create(), Transport::CreateLocal(), GetLegacyTransportTargetProgress(), GetPauseTimes(), HandleLegacyTransportStateChange(), InitializeLegacyTransport(), SetLegacyTransportTravelTime(), StartLegacyTransportToFirstStop(), StopLegacyTransportAtCurrentProgress(), StopLegacyTransportAtInitialStop(), and UpdateLegacyTransportPathProgress().
|
protected |
Definition at line 864 of file GameObject.h.
Referenced by AddUniqueUse(), GetUniqueUseCount(), Update(), and Use().
|
protected |
Definition at line 865 of file GameObject.h.
Referenced by AddUse(), GameObject(), GetUseCount(), Update(), and Use().