19 #ifndef TRINITYCORE_GAMEOBJECT_H
20 #define TRINITYCORE_GAMEOBJECT_H
634 default:
return false;
646 default:
return false;
682 default:
return true;
829 #define MAX_GO_STATE 3
830 #define MAX_GO_STATE_TRANSPORT_STOP_FRAMES 9
835 explicit GameObjectData() : id(0), mapid(0), phaseMask(0), posX(0.0f), posY(0.0f), posZ(0.0f), orientation(0.0f),
836 rotation0(0.0f), rotation1(0.0f), rotation2(0.0f), rotation3(0.0f), spawntimesecs(0),
837 animprogress(0), go_state(
GO_STATE_ACTIVE), spawnMask(0), artKit(0), phaseid(0), phaseGroup(0), dbData(
true) { }
878 #define FISHING_BOBBER_READY_TIME 5
888 void AddToWorld()
override;
889 void RemoveFromWorld()
override;
890 void CleanupsBeforeDelete(
bool finalCleanup =
true)
override;
892 bool Create(
ObjectGuid::LowType guidlow,
uint32 name_id,
Map* map,
uint32 phaseMask,
float x,
float y,
float z,
float ang,
float rotation0,
float rotation1,
float rotation2,
float rotation3,
uint32 animprogress,
GOState go_state,
uint32 artKit = 0);
898 bool IsTransport()
const;
899 bool IsDynTransport()
const;
900 bool IsDestructibleBuilding()
const;
904 void UpdateRotationFields(
float rotation2 = 0.0f,
float rotation3 = 0.0f);
907 std::string
const& GetNameForLocaleIdx(
LocaleConstant locale_idx)
const override;
918 if (!owner.
IsEmpty() && !GetOwnerGUID().IsEmpty() && GetOwnerGUID() != owner)
922 m_spawnedByDefault =
false;
926 Unit* GetOwner()
const;
930 m_spawnedByDefault =
false;
938 time_t now = time(
NULL);
939 if (m_respawnTime > now)
940 return m_respawnTime;
947 m_respawnTime = respawn > 0 ? time(
NULL) + respawn : 0;
948 m_respawnDelayTime = respawn > 0 ? respawn : 0;
953 return m_respawnDelayTime == 0 ||
954 (m_respawnTime > 0 && !m_spawnedByDefault) ||
955 (m_respawnTime == 0 && m_spawnedByDefault);
962 void getFishLoot(
Loot* loot, Player* loot_owner);
963 void getFishLootJunk(
Loot* loot, Player* loot_owner);
967 void SetGoState(
GOState state);
968 virtual uint32 GetTransportPeriod()
const;
971 void SetGoArtKit(
uint8 artkit);
976 bool SetInPhase(
uint32 id,
bool update,
bool apply)
override;
977 void EnableCollision(
bool enable);
979 void Use(
Unit* user);
995 return m_SkillupList.count(playerGuid) > 0;
999 void AddUniqueUse(Player* player);
1005 void SaveRespawnTime()
override;
1009 Player* GetLootRecipient()
const;
1010 Group* GetLootRecipientGroup()
const;
1011 void SetLootRecipient(
Unit* unit);
1012 bool IsLootAllowedFor(Player
const* player)
const;
1013 bool HasLootRecipient()
const {
return !m_lootRecipient.IsEmpty() || !m_lootRecipientGroup.IsEmpty(); }
1017 bool hasQuest(
uint32 quest_id)
const override;
1018 bool hasInvolvedQuest(
uint32 quest_id)
const override;
1019 bool ActivateToQuest(Player* target)
const;
1020 void UseDoorOrButton(
uint32 time_to_restore = 0,
bool alternative =
false,
Unit* user =
NULL);
1022 void ResetDoorOrButton();
1024 void TriggeringLinkedGameObject(
uint32 trapEntry,
Unit* target);
1026 bool IsNeverVisible()
const override;
1028 bool IsAlwaysVisibleFor(
WorldObject const* seer)
const override;
1029 bool IsInvisibleDueToDespawn()
const override;
1033 if (
Unit* owner = GetOwner())
1034 return owner->getLevelForTarget(target);
1039 GameObject* LookupFishingHoleAround(
float range);
1041 void CastSpell(
Unit* target,
uint32 spell,
bool triggered =
true);
1042 void SendCustomAnim(
uint32 anim);
1043 bool IsInRange(
float x,
float y,
float z,
float radius)
const;
1063 std::string GetAIName()
const;
1064 void SetDisplayId(
uint32 displayid);
1071 void GetRespawnPosition(
float &x,
float &y,
float &z,
float* ori =
NULL)
const;
1082 float GetInteractionDistance()
const;
1084 void UpdateModelPosition();
1087 void SetAnimKitId(
uint16 animKitId,
bool oneshot);
1090 bool AIM_Initialize();
1122 void RemoveFromOwner();
1123 void SwitchDoorOrButton(
bool activate,
bool alternative =
false);
struct GameObjectTemplate::@221::@255 barberChair
LootState m_lootState
Definition: GameObject.h:1096
uint32 chestLoot
Definition: GameObject.h:98
struct GameObjectTemplate::@221::@239 duelFlag
std::string castBarCaption
Definition: GameObject.h:41
GameObjectAI * AI() const
Definition: GameObject.h:1061
uint32 RespawnTime
Definition: GameObject.h:523
struct GameObjectTemplate::@221::@253 auraGenerator
struct GameObjectTemplate::@221::@240 fishingNode
uint32 NeutralEventHorde
Definition: GameObject.h:421
uint32 LargeAOI
Definition: GameObject.h:125
uint32 InteriorVisible
Definition: GameObject.h:480
uint32 Reached7thfloor
Definition: GameObject.h:255
uint32 spawnMask
Definition: GameObject.h:852
std::string unk1
Definition: GameObject.h:42
uint32 RebuildingTime
Definition: GameObject.h:491
std::vector< uint32 > GameObjectQuestItemList
Definition: GameObject.h:859
uint32 Timeto2ndfloor
Definition: GameObject.h:240
uint32 minSuperiority
Definition: GameObject.h:425
float posZ
Definition: GameObject.h:843
uint32 camera
Definition: GameObject.h:281
int32 Unused
Definition: GameObject.h:475
uint32 GetCharges() const
Definition: GameObject.h:686
uint32 GetLinkedGameObjectEntry() const
Definition: GameObject.h:697
Definition: GameObject.h:825
uint32 requireLOS
Definition: GameObject.h:75
Definition: ByteBuffer.h:70
Definition: SharedDefines.h:2107
StringVector CastBarCaption
Definition: GameObject.h:806
struct GameObjectTemplate::@221::@261 garrisonBuilding
float rotation0
Definition: GameObject.h:845
TransportAnimation const * AnimationInfo
Definition: GameObject.h:780
struct GameObjectTemplate::@221::@230 chair
Definition: GameObject.h:871
GuidSet m_unique_users
Definition: GameObject.h:1104
GOState GetGoState() const
Definition: GameObject.h:966
uint32 DamageImmuneOK
Definition: GameObject.h:119
Definition: SharedDefines.h:2101
Definition: TransportMgr.h:86
uint32 DifficultyAnimations
Definition: GameObject.h:460
LootState
Definition: GameObject.h:866
LootState getLootState() const
Definition: GameObject.h:981
ObjectGuid m_lootStateUnitGUID
Definition: GameObject.h:1097
uint32 Reached5thfloor
Definition: GameObject.h:251
uint32 worldstate3
Definition: GameObject.h:424
int32 spawntimesecs
Definition: GameObject.h:849
uint32 data[MAX_GAMEOBJECT_DATA]
Definition: GameObject.h:620
uint32 minRestock
Definition: GameObject.h:101
struct GameObjectTemplate::@221::@271 UILink
uint32 m_usetimes
Definition: GameObject.h:1105
uint32 RebuildingEvent
Definition: GameObject.h:494
uint32 trivialSkillLow
Definition: GameObject.h:120
Definition: GameObject.h:811
uint32 ExpireDuration
Definition: GameObject.h:395
Definition: OutdoorPvP.h:87
int32 Unused6
Definition: GameObject.h:488
uint32 BlocksPathsDown
Definition: GameObject.h:510
uint32 allowstopping
Definition: GameObject.h:301
uint32 m_respawnDelayTime
Definition: GameObject.h:1095
struct GameObjectTemplate::@221::@243 DONOTUSE
struct GameObjectTemplate::@221::@235 areaDamage
struct GameObjectTemplate::@221::@270 DONOTUSE3
struct GameObjectTemplate::@221::@244 guardPost
float rotation2
Definition: GameObject.h:847
uint32 gossipID
Definition: GameObject.h:84
uint32 DestructibleModelRec
Definition: GameObject.h:493
struct GameObjectTemplate::@221::@269 garrisonMonumentPlaque
GameObjectData const * GetGOData() const
Definition: GameObject.h:895
Definition: GameObject.h:870
void SetGoType(GameobjectTypes type)
Definition: GameObject.h:965
struct GameObjectTemplate::@221::@249 flagDrop
uint32 WorldStateSetsState
Definition: GameObject.h:225
uint32 auraID2
Definition: GameObject.h:446
uint32 FrequentHeartbeat
Definition: GameObject.h:437
uint32 moveSpeed
Definition: GameObject.h:294
uint32 unidirectional
Definition: GameObject.h:432
uint32 IgnoreBoundingBox
Definition: GameObject.h:232
Position m_stationaryPosition
Definition: GameObject.h:1116
time_t GetRespawnTime() const
Definition: GameObject.h:935
GameObjectData()
Definition: GameObject.h:835
std::string AIName
Definition: GameObject.h:624
struct GameObjectTemplate::@221::@232 text
struct GameObjectTemplate::@221::@224 button
uint32 creatureID
Definition: GameObject.h:338
uint32 stopEventID
Definition: GameObject.h:297
float rotation3
Definition: GameObject.h:848
int32 Unused10
Definition: GameObject.h:496
uint32 damageMax
Definition: GameObject.h:271
Definition: GameObject.h:826
uint32 InteriorLight
Definition: GameObject.h:481
uint32 areaID
Definition: GameObject.h:358
GameObjectAI * m_AI
Definition: GameObject.h:1132
Definition: UpdateFields.h:317
uint32 SpawnVignette
Definition: GameObject.h:126
uint32 GetCooldown() const
Definition: GameObject.h:757
uint32 Reached8thfloor
Definition: GameObject.h:257
uint32 Reached10thfloor
Definition: GameObject.h:261
Definition: SharedDefines.h:2074
StringVector Name
Definition: GameObject.h:805
uint32 DefendedEventHorde
Definition: GameObject.h:573
uint32 maxSuperiority
Definition: GameObject.h:426
#define UI64LIT(N)
Definition: Define.h:138
Definition: GameObject.h:34
uint32 ShipmentContainer
Definition: GameObject.h:600
int32 Unused9
Definition: GameObject.h:495
uint32 minTime
Definition: GameObject.h:427
struct GameObjectTemplate::@221::@264 clientItem
int32 charges
Definition: GameObject.h:345
uint32 onlychargeheightcheck
Definition: GameObject.h:262
uint32 DifficultyEpic
Definition: GameObject.h:456
arena_t NULL
Definition: jemalloc_internal.h:624
struct GameObjectTemplate::@221::@262 garrisonPlot
uint32 SpellVisual2
Definition: GameObject.h:578
time_t GetRespawnTimeEx() const
Definition: GameObject.h:936
Definition: SharedDefines.h:2091
struct GameObjectTemplate::@221::@258 trapdoor
uint32 SpellVisual3
Definition: GameObject.h:579
Definition: Transport.h:28
struct GameObjectTemplate::@221::@247 flagStand
uint32 AssaultBroadcastHorde
Definition: GameObject.h:564
GameObjectDestructibleState GetDestructibleState() const
Definition: GameObject.h:1048
Definition: SharedDefines.h:2073
struct GameObjectTemplate::@221::@267 garrisonMonument
uint32 phaseid
Definition: GameObject.h:854
uint32 ProgressEventHorde
Definition: GameObject.h:419
uint32 InstanceType
Definition: GameObject.h:453
uint32 auraID1
Definition: GameObject.h:444
uint32 Timeto10thfloor
Definition: GameObject.h:260
void RemoveLootMode(uint16 lootMode)
Definition: GameObject.h:989
uint32 StateUpdateTimer
Definition: GameObject.h:783
void SetRespawnTime(int32 respawn)
Definition: GameObject.h:945
uint32 displayId
Definition: GameObject.h:38
uint32 AssaultBroadcastAlliance
Definition: GameObject.h:567
uint32 DontPlayOpenAnim
Definition: GameObject.h:231
struct GameObjectTemplate::@221::@227 binder
uint32 faction
Definition: GameObject.h:43
ObjectGuid::LowType GetSpawnId() const
Definition: GameObject.h:902
uint32 DamagedEvent
Definition: GameObject.h:484
uint32 pageMaterial
Definition: GameObject.h:83
uint32 DifficultyNormal
Definition: GameObject.h:454
GameObjectData const * m_goData
Definition: GameObject.h:1112
uint32 linkedTrap
Definition: GameObject.h:70
struct GameObjectTemplate::@221::@265 capturePoint
uint32 pickupSpell
Definition: GameObject.h:364
uint64 LowType
Definition: ObjectGuid.h:199
float size
Definition: GameObject.h:45
void SetGoAnimProgress(uint8 animprogress)
Definition: GameObject.h:973
void apply(T *val)
Definition: ByteConverter.h:41
float orientation
Definition: GameObject.h:844
uint32 Timeto7thfloor
Definition: GameObject.h:254
bool LoadFromDB(ObjectGuid::LowType spawnId, Map *map)
Definition: GameObject.h:911
uint32 GroupXP
Definition: GameObject.h:118
uint32 DifficultyLegendary
Definition: GameObject.h:457
Definition: GameObjectAI.h:29
GameObjectTemplate const * m_goInfo
Definition: GameObject.h:1111
int32 Unused3
Definition: GameObject.h:485
struct GameObjectTemplate::@221::@246 meetingStone
float GetStationaryZ() const override
Definition: GameObject.h:1078
std::string IconName
Definition: GameObject.h:40
uint32 UILinkType
Definition: GameObject.h:616
GameobjectTypes
Definition: SharedDefines.h:2063
time_t m_cooldownTime
Definition: GameObject.h:1099
uint32 Reached9thfloor
Definition: GameObject.h:259
uint32 questID
Definition: GameObject.h:105
Definition: SharedDefines.h:69
uint32 GetRespawnDelay() const
Definition: GameObject.h:959
InvisibilityType
Definition: SharedDefines.h:1695
uint32 CaptureEventAlliance
Definition: GameObject.h:416
struct GameObjectTemplate::@221::@250 miniGame
std::unordered_map< ObjectGuid::LowType, GameObjectAddon > GameObjectAddonContainer
Definition: GameObject.h:817
uint32 Secondarydoodadset
Definition: GameObject.h:589
#define true
Definition: CascPort.h:17
uint32 language
Definition: GameObject.h:196
Definition: SharedDefines.h:2128
Definition: SharedDefines.h:2145
Definition: GameObject.h:824
GuidSet m_SkillupList
Definition: GameObject.h:1101
uint32 returnAura
Definition: GameObject.h:366
uint64 GetRotation() const
Definition: GameObject.h:1059
uint32 CurrentSeg
Definition: GameObject.h:781
struct GameObjectTemplate::@221::@237 mapobject
uint32 Reached1stfloor
Definition: GameObject.h:243
uint32 questGiver
Definition: GameObject.h:82
uint16 m_LootMode
Definition: GameObject.h:1120
std::unordered_map< uint32, GameObjectQuestItemList > GameObjectQuestItemMap
Definition: GameObject.h:860
Definition: SharedDefines.h:2102
uint32 worldstate2
Definition: GameObject.h:414
uint32 highlight
Definition: GameObject.h:139
uint8 getLevelForTarget(WorldObject const *target) const override
Definition: GameObject.h:1031
Definition: SharedDefines.h:2144
uint32 startDelay
Definition: GameObject.h:158
uint32 DifficultyHeroic
Definition: GameObject.h:455
uint32 GetLockId() const
Definition: GameObject.h:650
struct GameObjectTemplate::@221::@225 questgiver
uint32 Timeto5thfloor
Definition: GameObject.h:250
struct GameObjectTemplate::@221::@234 transport
uint32 UncontestedTime
Definition: GameObject.h:436
uint32 allowMounted
Definition: GameObject.h:89
uint32 DefendedBroadcastAlliance
Definition: GameObject.h:569
uint32 logloot
Definition: GameObject.h:110
uint32 onlychargetimecheck
Definition: GameObject.h:263
uint32 onlyCreatorUse
Definition: GameObject.h:175
int32 ExclusiveCategory
Definition: GameObject.h:525
time_t m_respawnTime
Definition: GameObject.h:1094
uint32 IntactEvent
Definition: GameObject.h:478
GameObjectModel * m_model
Definition: GameObject.h:1070
uint32 openTextID
Definition: GameObject.h:56
uint32 DungeonEncounter
Definition: GameObject.h:122
uint32 transportPhysics
Definition: GameObject.h:298
uint32 DamageEvent
Definition: GameObject.h:497
uint32 SummonerTriggered
Definition: GameObject.h:168
struct GameObjectTemplate::@221::@229 trap
uint32 SpellVisual1
Definition: GameObject.h:577
Definition: SharedDefines.h:2078
uint8 artKit
Definition: GameObject.h:853
uint32 ContestedEventAlliance
Definition: GameObject.h:418
uint32 stealthAffected
Definition: GameObject.h:162
uint32 FlagDrop
Definition: GameObject.h:524
struct GameObjectTemplate::@221::@259 newflag
Definition: SharedDefines.h:2066
ObjectGuid lootingGroupLowGUID
Definition: GameObject.h:1015
uint32 spell
Definition: GameObject.h:123
uint32 serverOnly
Definition: GameObject.h:140
uint32 MaxOpens
Definition: GameObject.h:788
uint32 SyncAnimationtoObjectLifetime
Definition: GameObject.h:235
int32 Unused1
Definition: GameObject.h:482
uint32 ContestedEventHorde
Definition: GameObject.h:417
Definition: UpdateFields.h:323
uint32 maxLevel
Definition: GameObject.h:357
int32 Unused4
Definition: GameObject.h:486
uint32 conditionID2
Definition: GameObject.h:447
StringVector Unk1
Definition: GameObject.h:807
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...
Definition: GameObject.h:1126
LocaleConstant
Definition: Common.h:115
uint32 maxRestock
Definition: GameObject.h:102
Definition: SharedDefines.h:2080
uint32 chairslots
Definition: GameObject.h:173
uint32 Timeto8thfloor
Definition: GameObject.h:256
uint32 chestRestockTime
Definition: GameObject.h:99
Definition: LootMgr.h:314
uint32 CaptureBroadcastAlliance
Definition: GameObject.h:568
uint32 Legacy
Definition: GameObject.h:463
uint32 TrophyTypeID
Definition: GameObject.h:594
uint32 PlotInstance
Definition: GameObject.h:542
Definition: SharedDefines.h:2146
GameObjectValue m_goValue
Definition: GameObject.h:1113
Definition: SharedDefines.h:2129
uint32 floatingTooltip
Definition: GameObject.h:113
float GetPositionY() const
Definition: Position.h:105
uint32 NeutralEventAlliance
Definition: GameObject.h:422
G3D::int16 z
Definition: Vector3int16.h:46
int32 namedset
Definition: GameObject.h:587
void SetSpawnedByDefault(bool b)
Definition: GameObject.h:958
uint32 open
Definition: GameObject.h:53
Transport const * ToTransport() const
Definition: GameObject.h:1074
bool GetDespawnPossibility() const
Definition: GameObject.h:672
struct GameObjectTemplate::@221::@226 chest
void AddToSkillupList(ObjectGuid const &PlayerGuidLow)
Definition: GameObject.h:992
uint32 Reached2ndfloor
Definition: GameObject.h:244
uint32 IgnoredByPathing
Definition: GameObject.h:58
int32 HeightOffset
Definition: GameObject.h:469
uint32 speedWorldState2
Definition: GameObject.h:435
int32 Unused2
Definition: GameObject.h:483
uint32 GetEventScriptId() const
Definition: GameObject.h:746
uint32 floatOnWater
Definition: GameObject.h:142
float GetPositionZ() const
Definition: Position.h:106
int32_t int32
Definition: Define.h:146
Definition: SharedDefines.h:2089
Definition: GameObject.h:803
uint32 GetLootId() const
Definition: GameObject.h:726
uint32_t uint32
Definition: Define.h:150
uint32 eventID
Definition: GameObject.h:207
Definition: GameObject.h:774
uint64_t uint64
Definition: Define.h:149
struct GameObjectTemplate::@221::@254 dungeonDifficulty
uint32 ChestProperties
Definition: GameObject.h:129
void RelocateStationaryPosition(float x, float y, float z, float o)
Definition: GameObject.h:1080
Transport * ToTransport()
Definition: GameObject.h:1073
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:894
float GetStationaryX() const override
Definition: GameObject.h:1076
uint32 pageID
Definition: GameObject.h:195
float GetStationaryO() const override
Definition: GameObject.h:1079
uint32 id
Definition: GameObject.h:838
G3D::int16 y
Definition: Vector2int16.h:38
uint32 autoClose
Definition: GameObject.h:54
uint16_t uint16
Definition: Define.h:151
int32 unkInt32
Definition: GameObject.h:46
uint32 casterTargetSpell
Definition: GameObject.h:320
Loot loot
Definition: GameObject.h:1007
struct GameObjectTemplate::@221::@245 spellCaster
Definition: GameObject.h:880
int32 mapID
Definition: GameObject.h:245
bool IsUsableMounted() const
Definition: GameObject.h:638
float GetStationaryY() const override
Definition: GameObject.h:1077
uint32 cooldown
Definition: GameObject.h:156
uint32 returnSpell
Definition: GameObject.h:367
uint32 entry
Definition: GameObject.h:36
uint32 xpDifficulty
Definition: GameObject.h:116
uint32 AnimKit
Definition: GameObject.h:549
std::vector< uint32 > * StopFrames
Definition: GameObject.h:782
uint32 ScriptId
Definition: GameObject.h:625
uint32 maxTime
Definition: GameObject.h:428
uint32 startingValue
Definition: GameObject.h:431
InvisibilityType invisibilityType
Definition: GameObject.h:813
struct GameObjectTemplate::@221::@233 goober
uint32 casters
Definition: GameObject.h:316
ObjectGuid GetOwnerGUID() const
Definition: GameObject.h:925
Definition: UpdateFields.h:321
uint32 worldState1
Definition: GameObject.h:300
uint32 CaptureEventHorde
Definition: GameObject.h:415
uint32 level
Definition: GameObject.h:106
Definition: UpdateFields.h:319
uint32 TrophyInstanceID
Definition: GameObject.h:595
Definition: GameObject.h:822
void AddLootMode(uint16 lootMode)
Definition: GameObject.h:988
Definition: SharedDefines.h:2090
struct GameObjectTemplate::@221::@256 destructibleBuilding
struct GameObjectTemplate::@221::@257 guildbank
uint32 m_groupLootTimer
Definition: GameObject.h:1014
uint32 HeroicAttachment
Definition: GameObject.h:458
Definition: GameObject.h:823
bool IsDespawnAtAction() const
Definition: GameObject.h:628
GOState
Definition: GameObject.h:820
uint32 GetGossipMenuId() const
Definition: GameObject.h:736
uint32 startEventID
Definition: GameObject.h:296
struct GameObjectTemplate::@221::@251 DONOTUSE2
uint32 usegrouplootrules
Definition: GameObject.h:112
uint32 playerCast
Definition: GameObject.h:167
uint32 castersGrouped
Definition: GameObject.h:322
Definition: GameObjectModel.h:50
uint32 ChallengeAttachment
Definition: GameObject.h:459
Definition: GameObject.h:833
uint32 InitStopped
Definition: GameObject.h:302
bool HasLootRecipient() const
Definition: GameObject.h:1013
uint64 m_rotation
Definition: GameObject.h:1115
uint32 IgnoreTotems
Definition: GameObject.h:165
OPvPCapturePoint * OPvPObj
Definition: GameObject.h:793
uint32 damageSchool
Definition: GameObject.h:272
uint32 SitAnimKit
Definition: GameObject.h:470
uint32 Item
Definition: GameObject.h:555
uint32 ritualPersistent
Definition: GameObject.h:319
Definition: UpdateFields.h:318
bool isSpawned() const
Definition: GameObject.h:951
std::vector< std::string > StringVector
Definition: Common.h:142
uint32 GetFaction() const
Definition: GameObject.h:1067
uint32 CaptureTime
Definition: GameObject.h:560
uint32 startOpen
Definition: GameObject.h:52
uint32 ProgressEventAlliance
Definition: GameObject.h:420
uint32 chestPersonalLoot
Definition: GameObject.h:127
Definition: SharedDefines.h:2067
uint32 ritualNoTargetCheck
Definition: GameObject.h:323
bool m_spawnedByDefault
Definition: GameObject.h:1098
GameobjectTypes GetGoType() const
Definition: GameObject.h:964
struct GameObjectTemplate::@221::@266 phaseableMO
uint32 CreatureDisplayInfo
Definition: GameObject.h:548
uint32 SortFarZ
Definition: GameObject.h:234
uint8 GetGoAnimProgress() const
Definition: GameObject.h:972
uint32 charges
Definition: GameObject.h:155
uint32 CaptureBroadcastHorde
Definition: GameObject.h:565
uint32 m_spellId
Definition: GameObject.h:1093
Definition: SharedDefines.h:2075
void AddUse()
Definition: GameObject.h:1000
uint16 mapid
Definition: GameObject.h:839
Definition: GameObject.h:868
uint32 ReturnonDefenderInteract
Definition: GameObject.h:527
std::string name
Definition: GameObject.h:39
uint32 GetDisplayId() const
Definition: GameObject.h:1065
std::set< ObjectGuid > GuidSet
Definition: ObjectGuid.h:332
uint32 Reached6thfloor
Definition: GameObject.h:253
uint32 GiganticAOI
Definition: GameObject.h:61
uint32 noDamageImmune
Definition: GameObject.h:55
#define TC_GAME_API
Definition: Define.h:134
struct GameObjectTemplate::@221::@272 raw
#define ABORT
Definition: Errors.h:56
struct GameObjectTemplate::@221::@242 mailbox
uint32 customAnim
Definition: GameObject.h:85
uint32 animprogress
Definition: GameObject.h:850
void SetSpellId(uint32 id)
Definition: GameObject.h:928
uint32 killbonustime
Definition: GameObject.h:433
uint32 neutralPercent
Definition: GameObject.h:423
uint32 Health
Definition: GameObject.h:798
uint8 GetGoArtKit() const
Definition: GameObject.h:970
struct GameObjectTemplate::@221::@238 moTransport
ChairSlotAndUser ChairListSlots
Definition: GameObject.h:1108
ObjectGuid m_lootRecipientGroup
Definition: GameObject.h:1119
uint32 DefendedBroadcastHorde
Definition: GameObject.h:566
float rotation1
Definition: GameObject.h:846
std::unordered_map< uint32, GameObjectTemplate > GameObjectTemplateContainer
Definition: GameObject.h:769
uint32 minLevel
Definition: GameObject.h:356
uint8_t uint8
Definition: Define.h:152
uint32 spellFocusType
Definition: GameObject.h:182
Definition: Position.h:27
uint32 UseGarrisonOwnerGuildColors
Definition: GameObject.h:146
uint32 accelRate
Definition: GameObject.h:295
uint32 closeTextID
Definition: GameObject.h:57
uint32 DestroyedEvent
Definition: GameObject.h:489
uint32 CreditProxyCreature
Definition: GameObject.h:476
ObjectGuid m_lootRecipient
Definition: GameObject.h:1118
uint32 Reached3rdfloor
Definition: GameObject.h:247
uint32 PathProgress
Definition: GameObject.h:779
Definition: SharedDefines.h:2100
ObjectGuid m_ritualOwnerGUID
Definition: GameObject.h:1103
Definition: SharedDefines.h:2068
struct GameObjectTemplate::@221::@252 controlZone
uint32 HealthRec
Definition: GameObject.h:477
bool dbData
Definition: GameObject.h:856
uint32 GetUniqueUseCount() const
Definition: GameObject.h:1003
int32 Unused7
Definition: GameObject.h:490
uint32 GetAutoCloseTime() const
Definition: GameObject.h:709
uint32 GetSpellId() const
Definition: GameObject.h:933
uint32 phaseGroup
Definition: GameObject.h:855
GameObjectDestructibleState
Definition: SharedDefines.h:2142
GameObjectValue const * GetGOValue() const
Definition: GameObject.h:896
void SetLootMode(uint16 lootMode)
Definition: GameObject.h:987
uint32 TrueInfiniteAOI
Definition: GameObject.h:303
struct GameObjectTemplate::@221::@248 fishingHole
Definition: ObjectGuid.h:189
struct GameObjectTemplate::@221::@223 door
uint32 partyOnly
Definition: GameObject.h:346
uint32_t uint32
Definition: g3dmath.h:168
uint32 flags
Definition: GameObject.h:44
uint32 conditionID1
Definition: GameObject.h:59
#define const
Definition: zconf.h:217
Definition: SharedDefines.h:2087
uint32 PVPEnabling
Definition: GameObject.h:479
G3D::int16 x
Definition: Vector2int16.h:37
uint32 Reached4thfloor
Definition: GameObject.h:249
uint32 DefendedEventAlliance
Definition: GameObject.h:576
struct GameObjectTemplate::@221::@268 garrisonShipment
struct GameObjectTemplate::@221::@231 spellFocus
uint32 speedWorldState1
Definition: GameObject.h:434
void ResetLootMode()
Definition: GameObject.h:990
uint32 turnpersonallootsecurityoff
Definition: GameObject.h:128
bool HasLootMode(uint16 lootMode) const
Definition: GameObject.h:986
uint32 triggeredEvent
Definition: GameObject.h:103
float posX
Definition: GameObject.h:841
float GetPositionX() const
Definition: Position.h:104
uint32 trivialSkillHigh
Definition: GameObject.h:121
uint32 Timeto3rdfloor
Definition: GameObject.h:246
int32 Unused8
Definition: GameObject.h:492
bool isSpawnedByDefault() const
Definition: GameObject.h:957
Definition: SharedDefines.h:2086
uint32 damageMin
Definition: GameObject.h:270
struct GameObjectTemplate::@221::@263 clientCreature
uint32 lootLevel
Definition: GameObject.h:117
uint32 stealthed
Definition: GameObject.h:160
struct GameObjectTemplate::@221::@241 ritual
uint32 taxiPathID
Definition: GameObject.h:293
uint16 GetLootMode() const
Definition: GameObject.h:985
uint32 Timeto4thfloor
Definition: GameObject.h:248
uint32 animSpell
Definition: GameObject.h:318
Definition: GameObject.h:869
uint32 phaseMask
Definition: GameObject.h:840
uint32 casterTargetSpellTargets
Definition: GameObject.h:321
Definition: SharedDefines.h:2077
virtual uint32 GetScriptId() const
Definition: GameObject.h:1060
Definition: SharedDefines.h:2076
Definition: SharedDefines.h:2071
uint32 SpellVisual5
Definition: GameObject.h:581
float posY
Definition: GameObject.h:842
uint32 consumable
Definition: GameObject.h:100
uint32 Primarydoodadset
Definition: GameObject.h:588
uint32 MaxHealth
Definition: GameObject.h:799
uint32 type
Definition: GameObject.h:37
ObjectGuid::LowType m_spawnId
For new or temporary gameobjects is 0 for saved it is lowguid.
Definition: GameObject.h:1110
int32 Unused5
Definition: GameObject.h:487
std::map< uint32, ObjectGuid > ChairSlotAndUser
Definition: GameObject.h:1107
uint32 InvisibilityValue
Definition: GameObject.h:814
uint32 InfiniteAOI
Definition: GameObject.h:62
bool IsEmpty() const
Definition: ObjectGuid.h:242
void SetFaction(uint32 faction)
Definition: GameObject.h:1068
void SetOwnerGUID(ObjectGuid owner)
Definition: GameObject.h:915
uint16 GetAIAnimKitId() const override
Definition: GameObject.h:1086
GOState go_state
Definition: GameObject.h:851
uint32 Timeto6thfloor
Definition: GameObject.h:252
uint16 _animKitId
Definition: GameObject.h:1133
struct GameObjectTemplate::@221::@260 newflagdrop
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
uint32 notInCombat
Definition: GameObject.h:109
uint32 SpellVisual4
Definition: GameObject.h:580
bool IsInSkillupList(ObjectGuid const &playerGuid) const
Definition: GameObject.h:993
uint32 radius
Definition: GameObject.h:153
int32 xpLevel
Definition: GameObject.h:115
uint32 Timeto9thfloor
Definition: GameObject.h:258
uint32 chairheight
Definition: GameObject.h:174
Definition: SharedDefines.h:2065
uint32 EnablePortalsonopen
Definition: GameObject.h:60
#define MAX_GAMEOBJECT_DATA
Definition: SharedDefines.h:2117
uint32 leaveLoot
Definition: GameObject.h:108
uint32 NeverUsableWhileMounted
Definition: GameObject.h:92
void ClearSkillupList()
Definition: GameObject.h:997
uint32 GetUseCount() const
Definition: GameObject.h:1002