TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GameObjectTemplate Struct Reference

#include <GameObject.h>

Public Member Functions

bool IsDespawnAtAction () const
 
bool IsUsableMounted () const
 
uint32 GetLockId () const
 
bool GetDespawnPossibility () const
 
uint32 GetCharges () const
 
uint32 GetLinkedGameObjectEntry () const
 
uint32 GetAutoCloseTime () const
 
uint32 GetLootId () const
 
uint32 GetGossipMenuId () const
 
uint32 GetEventScriptId () const
 
uint32 GetCooldown () const
 

Public Attributes

uint32 entry
 
uint32 type
 
uint32 displayId
 
std::string name
 
std::string IconName
 
std::string castBarCaption
 
std::string unk1
 
uint32 faction
 
uint32 flags
 
float size
 
int32 unkInt32
 
union {
   struct {
      uint32   startOpen
 
      uint32   open
 
      uint32   autoClose
 
      uint32   noDamageImmune
 
      uint32   openTextID
 
      uint32   closeTextID
 
      uint32   IgnoredByPathing
 
      uint32   conditionID1
 
      uint32   EnablePortalsonopen
 
      uint32   GiganticAOI
 
      uint32   InfiniteAOI
 
   }   door
 
   struct {
      uint32   startOpen
 
      uint32   open
 
      uint32   autoClose
 
      uint32   linkedTrap
 
      uint32   noDamageImmune
 
      uint32   GiganticAOI
 
      uint32   openTextID
 
      uint32   closeTextID
 
      uint32   requireLOS
 
      uint32   conditionID1
 
   }   button
 
   struct {
      uint32   open
 
      uint32   questGiver
 
      uint32   pageMaterial
 
      uint32   gossipID
 
      uint32   customAnim
 
      uint32   noDamageImmune
 
      uint32   openTextID
 
      uint32   requireLOS
 
      uint32   allowMounted
 
      uint32   GiganticAOI
 
      uint32   conditionID1
 
      uint32   NeverUsableWhileMounted
 
   }   questgiver
 
   struct {
      uint32   open
 
      uint32   chestLoot
 
      uint32   chestRestockTime
 
      uint32   consumable
 
      uint32   minRestock
 
      uint32   maxRestock
 
      uint32   triggeredEvent
 
      uint32   linkedTrap
 
      uint32   questID
 
      uint32   level
 
      uint32   requireLOS
 
      uint32   leaveLoot
 
      uint32   notInCombat
 
      uint32   logloot
 
      uint32   openTextID
 
      uint32   usegrouplootrules
 
      uint32   floatingTooltip
 
      uint32   conditionID1
 
      int32   xpLevel
 
      uint32   xpDifficulty
 
      uint32   lootLevel
 
      uint32   GroupXP
 
      uint32   DamageImmuneOK
 
      uint32   trivialSkillLow
 
      uint32   trivialSkillHigh
 
      uint32   DungeonEncounter
 
      uint32   spell
 
      uint32   GiganticAOI
 
      uint32   LargeAOI
 
      uint32   SpawnVignette
 
      uint32   chestPersonalLoot
 
      uint32   turnpersonallootsecurityoff
 
      uint32   ChestProperties
 
   }   chest
 
   struct {
   }   binder
 
   struct {
      uint32   floatingTooltip
 
      uint32   highlight
 
      uint32   serverOnly
 
      uint32   GiganticAOI
 
      uint32   floatOnWater
 
      uint32   questID
 
      uint32   conditionID1
 
      uint32   LargeAOI
 
      uint32   UseGarrisonOwnerGuildColors
 
   }   generic
 
   struct {
      uint32   open
 
      uint32   level
 
      uint32   radius
 
      uint32   spell
 
      uint32   charges
 
      uint32   cooldown
 
      uint32   autoClose
 
      uint32   startDelay
 
      uint32   serverOnly
 
      uint32   stealthed
 
      uint32   GiganticAOI
 
      uint32   stealthAffected
 
      uint32   openTextID
 
      uint32   closeTextID
 
      uint32   IgnoreTotems
 
      uint32   conditionID1
 
      uint32   playerCast
 
      uint32   SummonerTriggered
 
   }   trap
 
   struct {
      uint32   chairslots
 
      uint32   chairheight
 
      uint32   onlyCreatorUse
 
      uint32   triggeredEvent
 
      uint32   conditionID1
 
   }   chair
 
   struct {
      uint32   spellFocusType
 
      uint32   radius
 
      uint32   linkedTrap
 
      uint32   serverOnly
 
      uint32   questID
 
      uint32   GiganticAOI
 
      uint32   floatingTooltip
 
      uint32   floatOnWater
 
      uint32   conditionID1
 
   }   spellFocus
 
   struct {
      uint32   pageID
 
      uint32   language
 
      uint32   pageMaterial
 
      uint32   allowMounted
 
      uint32   conditionID1
 
      uint32   NeverUsableWhileMounted
 
   }   text
 
   struct {
      uint32   open
 
      uint32   questID
 
      uint32   eventID
 
      uint32   autoClose
 
      uint32   customAnim
 
      uint32   consumable
 
      uint32   cooldown
 
      uint32   pageID
 
      uint32   language
 
      uint32   pageMaterial
 
      uint32   spell
 
      uint32   noDamageImmune
 
      uint32   linkedTrap
 
      uint32   GiganticAOI
 
      uint32   openTextID
 
      uint32   closeTextID
 
      uint32   requireLOS
 
      uint32   allowMounted
 
      uint32   floatingTooltip
 
      uint32   gossipID
 
      uint32   WorldStateSetsState
 
      uint32   floatOnWater
 
      uint32   conditionID1
 
      uint32   playerCast
 
      uint32   SpawnVignette
 
      uint32   startOpen
 
      uint32   DontPlayOpenAnim
 
      uint32   IgnoreBoundingBox
 
      uint32   NeverUsableWhileMounted
 
      uint32   SortFarZ
 
      uint32   SyncAnimationtoObjectLifetime
 
   }   goober
 
   struct {
      uint32   Timeto2ndfloor
 
      uint32   startOpen
 
      uint32   autoClose
 
      uint32   Reached1stfloor
 
      uint32   Reached2ndfloor
 
      int32   mapID
 
      uint32   Timeto3rdfloor
 
      uint32   Reached3rdfloor
 
      uint32   Timeto4thfloor
 
      uint32   Reached4thfloor
 
      uint32   Timeto5thfloor
 
      uint32   Reached5thfloor
 
      uint32   Timeto6thfloor
 
      uint32   Reached6thfloor
 
      uint32   Timeto7thfloor
 
      uint32   Reached7thfloor
 
      uint32   Timeto8thfloor
 
      uint32   Reached8thfloor
 
      uint32   Timeto9thfloor
 
      uint32   Reached9thfloor
 
      uint32   Timeto10thfloor
 
      uint32   Reached10thfloor
 
      uint32   onlychargeheightcheck
 
      uint32   onlychargetimecheck
 
   }   transport
 
   struct {
      uint32   open
 
      uint32   radius
 
      uint32   damageMin
 
      uint32   damageMax
 
      uint32   damageSchool
 
      uint32   autoClose
 
      uint32   openTextID
 
      uint32   closeTextID
 
   }   areaDamage
 
   struct {
      uint32   open
 
      uint32   camera
 
      uint32   eventID
 
      uint32   openTextID
 
      uint32   conditionID1
 
   }   camera
 
   struct {
   }   mapobject
 
   struct {
      uint32   taxiPathID
 
      uint32   moveSpeed
 
      uint32   accelRate
 
      uint32   startEventID
 
      uint32   stopEventID
 
      uint32   transportPhysics
 
      int32   mapID
 
      uint32   worldState1
 
      uint32   allowstopping
 
      uint32   InitStopped
 
      uint32   TrueInfiniteAOI
 
   }   moTransport
 
   struct {
   }   duelFlag
 
   struct {
   }   fishingNode
 
   struct {
      uint32   casters
 
      uint32   spell
 
      uint32   animSpell
 
      uint32   ritualPersistent
 
      uint32   casterTargetSpell
 
      uint32   casterTargetSpellTargets
 
      uint32   castersGrouped
 
      uint32   ritualNoTargetCheck
 
      uint32   conditionID1
 
   }   ritual
 
   struct {
      uint32   conditionID1
 
   }   mailbox
 
   struct {
   }   DONOTUSE
 
   struct {
      uint32   creatureID
 
      uint32   charges
 
   }   guardPost
 
   struct {
      uint32   spell
 
      int32   charges
 
      uint32   partyOnly
 
      uint32   allowMounted
 
      uint32   GiganticAOI
 
      uint32   conditionID1
 
      uint32   playerCast
 
      uint32   NeverUsableWhileMounted
 
   }   spellCaster
 
   struct {
      uint32   minLevel
 
      uint32   maxLevel
 
      uint32   areaID
 
   }   meetingStone
 
   struct {
      uint32   open
 
      uint32   pickupSpell
 
      uint32   radius
 
      uint32   returnAura
 
      uint32   returnSpell
 
      uint32   noDamageImmune
 
      uint32   openTextID
 
      uint32   requireLOS
 
      uint32   conditionID1
 
      uint32   playerCast
 
      uint32   GiganticAOI
 
      uint32   InfiniteAOI
 
      uint32   cooldown
 
   }   flagStand
 
   struct {
      uint32   radius
 
      uint32   chestLoot
 
      uint32   minRestock
 
      uint32   maxRestock
 
      uint32   open
 
   }   fishingHole
 
   struct {
      uint32   open
 
      uint32   eventID
 
      uint32   pickupSpell
 
      uint32   noDamageImmune
 
      uint32   openTextID
 
      uint32   playerCast
 
      uint32   ExpireDuration
 
      uint32   GiganticAOI
 
      uint32   InfiniteAOI
 
      uint32   cooldown
 
   }   flagDrop
 
   struct {
   }   miniGame
 
   struct {
   }   DONOTUSE2
 
   struct {
      uint32   radius
 
      uint32   spell
 
      uint32   worldState1
 
      uint32   worldstate2
 
      uint32   CaptureEventHorde
 
      uint32   CaptureEventAlliance
 
      uint32   ContestedEventHorde
 
      uint32   ContestedEventAlliance
 
      uint32   ProgressEventHorde
 
      uint32   ProgressEventAlliance
 
      uint32   NeutralEventHorde
 
      uint32   NeutralEventAlliance
 
      uint32   neutralPercent
 
      uint32   worldstate3
 
      uint32   minSuperiority
 
      uint32   maxSuperiority
 
      uint32   minTime
 
      uint32   maxTime
 
      uint32   GiganticAOI
 
      uint32   highlight
 
      uint32   startingValue
 
      uint32   unidirectional
 
      uint32   killbonustime
 
      uint32   speedWorldState1
 
      uint32   speedWorldState2
 
      uint32   UncontestedTime
 
      uint32   FrequentHeartbeat
 
   }   controlZone
 
   struct {
      uint32   startOpen
 
      uint32   radius
 
      uint32   auraID1
 
      uint32   conditionID1
 
      uint32   auraID2
 
      uint32   conditionID2
 
      uint32   serverOnly
 
   }   auraGenerator
 
   struct {
      uint32   InstanceType
 
      uint32   DifficultyNormal
 
      uint32   DifficultyHeroic
 
      uint32   DifficultyEpic
 
      uint32   DifficultyLegendary
 
      uint32   HeroicAttachment
 
      uint32   ChallengeAttachment
 
      uint32   DifficultyAnimations
 
      uint32   LargeAOI
 
      uint32   GiganticAOI
 
      uint32   Legacy
 
   }   dungeonDifficulty
 
   struct {
      uint32   chairheight
 
      int32   HeightOffset
 
      uint32   SitAnimKit
 
   }   barberChair
 
   struct {
      int32   Unused
 
      uint32   CreditProxyCreature
 
      uint32   HealthRec
 
      uint32   IntactEvent
 
      uint32   PVPEnabling
 
      uint32   InteriorVisible
 
      uint32   InteriorLight
 
      int32   Unused1
 
      int32   Unused2
 
      uint32   DamagedEvent
 
      int32   Unused3
 
      int32   Unused4
 
      int32   Unused5
 
      int32   Unused6
 
      uint32   DestroyedEvent
 
      int32   Unused7
 
      uint32   RebuildingTime
 
      int32   Unused8
 
      uint32   DestructibleModelRec
 
      uint32   RebuildingEvent
 
      int32   Unused9
 
      int32   Unused10
 
      uint32   DamageEvent
 
   }   destructibleBuilding
 
   struct {
      uint32   conditionID1
 
   }   guildbank
 
   struct {
      int32   Unused
 
      uint32   startOpen
 
      uint32   autoClose
 
      uint32   BlocksPathsDown
 
   }   trapdoor
 
   struct {
      uint32   open
 
      uint32   pickupSpell
 
      uint32   openTextID
 
      uint32   requireLOS
 
      uint32   conditionID1
 
      uint32   GiganticAOI
 
      uint32   InfiniteAOI
 
      uint32   ExpireDuration
 
      uint32   RespawnTime
 
      uint32   FlagDrop
 
      int32   ExclusiveCategory
 
      uint32   worldState1
 
      uint32   ReturnonDefenderInteract
 
   }   newflag
 
   struct {
      uint32   open
 
   }   newflagdrop
 
   struct {
      int32   mapID
 
   }   garrisonBuilding
 
   struct {
      uint32   PlotInstance
 
      int32   mapID
 
   }   garrisonPlot
 
   struct {
      uint32   CreatureDisplayInfo
 
      uint32   AnimKit
 
      uint32   creatureID
 
   }   clientCreature
 
   struct {
      uint32   Item
 
   }   clientItem
 
   struct {
      uint32   CaptureTime
 
      uint32   GiganticAOI
 
      uint32   highlight
 
      uint32   open
 
      uint32   AssaultBroadcastHorde
 
      uint32   CaptureBroadcastHorde
 
      uint32   DefendedBroadcastHorde
 
      uint32   AssaultBroadcastAlliance
 
      uint32   CaptureBroadcastAlliance
 
      uint32   DefendedBroadcastAlliance
 
      uint32   worldState1
 
      uint32   ContestedEventHorde
 
      uint32   CaptureEventHorde
 
      uint32   DefendedEventHorde
 
      uint32   ContestedEventAlliance
 
      uint32   CaptureEventAlliance
 
      uint32   DefendedEventAlliance
 
      uint32   SpellVisual1
 
      uint32   SpellVisual2
 
      uint32   SpellVisual3
 
      uint32   SpellVisual4
 
      uint32   SpellVisual5
 
   }   capturePoint
 
   struct {
      int32   mapID
 
      int32   namedset
 
      uint32   Primarydoodadset
 
      uint32   Secondarydoodadset
 
   }   phaseableMO
 
   struct {
      uint32   TrophyTypeID
 
      uint32   TrophyInstanceID
 
   }   garrisonMonument
 
   struct {
      uint32   ShipmentContainer
 
      uint32   GiganticAOI
 
      uint32   LargeAOI
 
   }   garrisonShipment
 
   struct {
      uint32   TrophyInstanceID
 
   }   garrisonMonumentPlaque
 
   struct {
   }   DONOTUSE3
 
   struct {
      uint32   UILinkType
 
   }   UILink
 
   struct {
      uint32   data [MAX_GAMEOBJECT_DATA]
 
   }   raw
 
}; 
 
std::string AIName
 
uint32 ScriptId
 

Member Function Documentation

uint32 GameObjectTemplate::GetAutoCloseTime ( ) const
inline
710  {
711  uint32 autoCloseTime = 0;
712  switch (type)
713  {
714  case GAMEOBJECT_TYPE_DOOR: autoCloseTime = door.autoClose; break;
715  case GAMEOBJECT_TYPE_BUTTON: autoCloseTime = button.autoClose; break;
716  case GAMEOBJECT_TYPE_TRAP: autoCloseTime = trap.autoClose; break;
717  case GAMEOBJECT_TYPE_GOOBER: autoCloseTime = goober.autoClose; break;
718  case GAMEOBJECT_TYPE_TRANSPORT: autoCloseTime = transport.autoClose; break;
719  case GAMEOBJECT_TYPE_AREADAMAGE: autoCloseTime = areaDamage.autoClose; break;
720  case GAMEOBJECT_TYPE_TRAPDOOR: autoCloseTime = trapdoor.autoClose; break;
721  default: break;
722  }
723  return autoCloseTime / IN_MILLISECONDS; // prior to 3.0.3, conversion was / 0x10000;
724  }
struct GameObjectTemplate::@221::@235 areaDamage
struct GameObjectTemplate::@221::@224 button
struct GameObjectTemplate::@221::@258 trapdoor
struct GameObjectTemplate::@221::@234 transport
struct GameObjectTemplate::@221::@229 trap
Definition: SharedDefines.h:2066
uint32_t uint32
Definition: Define.h:150
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2075
Definition: Common.h:103
Definition: SharedDefines.h:2100
struct GameObjectTemplate::@221::@223 door
Definition: SharedDefines.h:2077
Definition: SharedDefines.h:2076
Definition: SharedDefines.h:2071
uint32 type
Definition: GameObject.h:37
Definition: SharedDefines.h:2065

+ Here is the caller graph for this function:

uint32 GameObjectTemplate::GetCharges ( ) const
inline
687  {
688  switch (type)
689  {
690  //case GAMEOBJECT_TYPE_TRAP: return trap.charges;
691  case GAMEOBJECT_TYPE_GUARDPOST: return guardPost.charges;
692  case GAMEOBJECT_TYPE_SPELLCASTER: return spellCaster.charges;
693  default: return 0;
694  }
695  }
struct GameObjectTemplate::@221::@244 guardPost
struct GameObjectTemplate::@221::@245 spellCaster
Definition: SharedDefines.h:2087
Definition: SharedDefines.h:2086
uint32 type
Definition: GameObject.h:37

+ Here is the caller graph for this function:

uint32 GameObjectTemplate::GetCooldown ( ) const
inline
758  {
759  switch (type)
760  {
761  case GAMEOBJECT_TYPE_TRAP: return trap.cooldown;
762  case GAMEOBJECT_TYPE_GOOBER: return goober.cooldown;
763  default: return 0;
764  }
765  }
struct GameObjectTemplate::@221::@229 trap
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2075
Definition: SharedDefines.h:2071
uint32 type
Definition: GameObject.h:37

+ Here is the caller graph for this function:

bool GameObjectTemplate::GetDespawnPossibility ( ) const
inline
673  {
674  switch (type)
675  {
676  case GAMEOBJECT_TYPE_DOOR: return door.noDamageImmune != 0;
677  case GAMEOBJECT_TYPE_BUTTON: return button.noDamageImmune != 0;
678  case GAMEOBJECT_TYPE_QUESTGIVER: return questgiver.noDamageImmune != 0;
679  case GAMEOBJECT_TYPE_GOOBER: return goober.noDamageImmune != 0;
680  case GAMEOBJECT_TYPE_FLAGSTAND: return flagStand.noDamageImmune != 0;
681  case GAMEOBJECT_TYPE_FLAGDROP: return flagDrop.noDamageImmune != 0;
682  default: return true;
683  }
684  }
struct GameObjectTemplate::@221::@249 flagDrop
struct GameObjectTemplate::@221::@224 button
Definition: SharedDefines.h:2091
struct GameObjectTemplate::@221::@247 flagStand
struct GameObjectTemplate::@221::@225 questgiver
Definition: SharedDefines.h:2066
Definition: SharedDefines.h:2089
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2067
Definition: SharedDefines.h:2075
struct GameObjectTemplate::@221::@223 door
uint32 type
Definition: GameObject.h:37
Definition: SharedDefines.h:2065

+ Here is the caller graph for this function:

uint32 GameObjectTemplate::GetEventScriptId ( ) const
inline
747  {
748  switch (type)
749  {
750  case GAMEOBJECT_TYPE_GOOBER: return goober.eventID;
751  case GAMEOBJECT_TYPE_CHEST: return chest.triggeredEvent;
752  case GAMEOBJECT_TYPE_CAMERA: return camera.eventID;
753  default: return 0;
754  }
755  }
uint32 camera
Definition: GameObject.h:281
Definition: SharedDefines.h:2078
struct GameObjectTemplate::@221::@226 chest
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2075
Definition: SharedDefines.h:2068
uint32 type
Definition: GameObject.h:37
uint32 GameObjectTemplate::GetGossipMenuId ( ) const
inline
737  {
738  switch (type)
739  {
740  case GAMEOBJECT_TYPE_QUESTGIVER: return questgiver.gossipID;
741  case GAMEOBJECT_TYPE_GOOBER: return goober.gossipID;
742  default: return 0;
743  }
744  }
struct GameObjectTemplate::@221::@225 questgiver
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2067
Definition: SharedDefines.h:2075
uint32 type
Definition: GameObject.h:37

+ Here is the caller graph for this function:

uint32 GameObjectTemplate::GetLinkedGameObjectEntry ( ) const
inline
698  {
699  switch (type)
700  {
701  case GAMEOBJECT_TYPE_BUTTON: return button.linkedTrap;
702  case GAMEOBJECT_TYPE_CHEST: return chest.linkedTrap;
703  case GAMEOBJECT_TYPE_SPELL_FOCUS: return spellFocus.linkedTrap;
704  case GAMEOBJECT_TYPE_GOOBER: return goober.linkedTrap;
705  default: return 0;
706  }
707  }
struct GameObjectTemplate::@221::@224 button
Definition: SharedDefines.h:2073
Definition: SharedDefines.h:2066
struct GameObjectTemplate::@221::@226 chest
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2075
Definition: SharedDefines.h:2068
struct GameObjectTemplate::@221::@231 spellFocus
uint32 type
Definition: GameObject.h:37

+ Here is the caller graph for this function:

uint32 GameObjectTemplate::GetLockId ( ) const
inline
651  {
652  switch (type)
653  {
654  case GAMEOBJECT_TYPE_DOOR: return door.open;
655  case GAMEOBJECT_TYPE_BUTTON: return button.open;
656  case GAMEOBJECT_TYPE_QUESTGIVER: return questgiver.open;
657  case GAMEOBJECT_TYPE_CHEST: return chest.open;
658  case GAMEOBJECT_TYPE_TRAP: return trap.open;
659  case GAMEOBJECT_TYPE_GOOBER: return goober.open;
660  case GAMEOBJECT_TYPE_AREADAMAGE: return areaDamage.open;
661  case GAMEOBJECT_TYPE_CAMERA: return camera.open;
662  case GAMEOBJECT_TYPE_FLAGSTAND: return flagStand.open;
663  case GAMEOBJECT_TYPE_FISHINGHOLE: return fishingHole.open;
664  case GAMEOBJECT_TYPE_FLAGDROP: return flagDrop.open;
665  case GAMEOBJECT_TYPE_NEW_FLAG: return newflag.open;
666  case GAMEOBJECT_TYPE_NEW_FLAG_DROP: return newflagdrop.open;
668  default: return 0;
669  }
670  }
uint32 camera
Definition: GameObject.h:281
Definition: SharedDefines.h:2107
Definition: SharedDefines.h:2101
struct GameObjectTemplate::@221::@235 areaDamage
struct GameObjectTemplate::@221::@249 flagDrop
struct GameObjectTemplate::@221::@224 button
Definition: SharedDefines.h:2091
struct GameObjectTemplate::@221::@247 flagStand
struct GameObjectTemplate::@221::@265 capturePoint
Definition: SharedDefines.h:2102
struct GameObjectTemplate::@221::@225 questgiver
struct GameObjectTemplate::@221::@229 trap
Definition: SharedDefines.h:2078
struct GameObjectTemplate::@221::@259 newflag
Definition: SharedDefines.h:2066
struct GameObjectTemplate::@221::@226 chest
Definition: SharedDefines.h:2089
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2090
Definition: SharedDefines.h:2067
Definition: SharedDefines.h:2075
Definition: SharedDefines.h:2068
struct GameObjectTemplate::@221::@248 fishingHole
struct GameObjectTemplate::@221::@223 door
Definition: SharedDefines.h:2077
Definition: SharedDefines.h:2071
uint32 type
Definition: GameObject.h:37
struct GameObjectTemplate::@221::@260 newflagdrop
Definition: SharedDefines.h:2065

+ Here is the caller graph for this function:

uint32 GameObjectTemplate::GetLootId ( ) const
inline
727  {
728  switch (type)
729  {
730  case GAMEOBJECT_TYPE_CHEST: return chest.chestLoot;
731  case GAMEOBJECT_TYPE_FISHINGHOLE: return fishingHole.chestLoot;
732  default: return 0;
733  }
734  }
struct GameObjectTemplate::@221::@226 chest
Definition: SharedDefines.h:2090
Definition: SharedDefines.h:2068
struct GameObjectTemplate::@221::@248 fishingHole
uint32 type
Definition: GameObject.h:37

+ Here is the caller graph for this function:

bool GameObjectTemplate::IsDespawnAtAction ( ) const
inline
629  {
630  switch (type)
631  {
632  case GAMEOBJECT_TYPE_CHEST: return chest.consumable != 0;
633  case GAMEOBJECT_TYPE_GOOBER: return goober.consumable != 0;
634  default: return false;
635  }
636  }
struct GameObjectTemplate::@221::@226 chest
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2075
Definition: SharedDefines.h:2068
uint32 type
Definition: GameObject.h:37

+ Here is the caller graph for this function:

bool GameObjectTemplate::IsUsableMounted ( ) const
inline
639  {
640  switch (type)
641  {
642  case GAMEOBJECT_TYPE_QUESTGIVER: return questgiver.allowMounted != 0;
643  case GAMEOBJECT_TYPE_TEXT: return text.allowMounted != 0;
644  case GAMEOBJECT_TYPE_GOOBER: return goober.allowMounted != 0;
645  case GAMEOBJECT_TYPE_SPELLCASTER: return spellCaster.allowMounted != 0;
646  default: return false;
647  }
648  }
struct GameObjectTemplate::@221::@232 text
Definition: SharedDefines.h:2074
struct GameObjectTemplate::@221::@225 questgiver
struct GameObjectTemplate::@221::@245 spellCaster
struct GameObjectTemplate::@221::@233 goober
Definition: SharedDefines.h:2067
Definition: SharedDefines.h:2075
Definition: SharedDefines.h:2087
uint32 type
Definition: GameObject.h:37

Member Data Documentation

union { ... }
uint32 GameObjectTemplate::accelRate
std::string GameObjectTemplate::AIName
uint32 GameObjectTemplate::allowMounted
uint32 GameObjectTemplate::allowstopping
uint32 GameObjectTemplate::AnimKit
uint32 GameObjectTemplate::animSpell
struct { ... } GameObjectTemplate::areaDamage
uint32 GameObjectTemplate::areaID
uint32 GameObjectTemplate::AssaultBroadcastAlliance
uint32 GameObjectTemplate::AssaultBroadcastHorde
struct { ... } GameObjectTemplate::auraGenerator
uint32 GameObjectTemplate::auraID1
uint32 GameObjectTemplate::auraID2
uint32 GameObjectTemplate::autoClose
struct { ... } GameObjectTemplate::barberChair
struct { ... } GameObjectTemplate::binder
uint32 GameObjectTemplate::BlocksPathsDown
struct { ... } GameObjectTemplate::button
uint32 GameObjectTemplate::camera
struct { ... } GameObjectTemplate::camera
uint32 GameObjectTemplate::CaptureBroadcastAlliance
uint32 GameObjectTemplate::CaptureBroadcastHorde
uint32 GameObjectTemplate::CaptureEventAlliance
uint32 GameObjectTemplate::CaptureEventHorde
struct { ... } GameObjectTemplate::capturePoint
uint32 GameObjectTemplate::CaptureTime
std::string GameObjectTemplate::castBarCaption
uint32 GameObjectTemplate::casters
uint32 GameObjectTemplate::castersGrouped
uint32 GameObjectTemplate::casterTargetSpell
uint32 GameObjectTemplate::casterTargetSpellTargets
struct { ... } GameObjectTemplate::chair
uint32 GameObjectTemplate::chairheight
uint32 GameObjectTemplate::chairslots
uint32 GameObjectTemplate::ChallengeAttachment
uint32 GameObjectTemplate::charges
int32 GameObjectTemplate::charges
struct { ... } GameObjectTemplate::chest
uint32 GameObjectTemplate::chestLoot
uint32 GameObjectTemplate::chestPersonalLoot
uint32 GameObjectTemplate::ChestProperties
uint32 GameObjectTemplate::chestRestockTime
struct { ... } GameObjectTemplate::clientCreature
struct { ... } GameObjectTemplate::clientItem
uint32 GameObjectTemplate::closeTextID
uint32 GameObjectTemplate::conditionID1
uint32 GameObjectTemplate::conditionID2
uint32 GameObjectTemplate::consumable
uint32 GameObjectTemplate::ContestedEventAlliance
uint32 GameObjectTemplate::ContestedEventHorde
struct { ... } GameObjectTemplate::controlZone
uint32 GameObjectTemplate::cooldown
uint32 GameObjectTemplate::CreatureDisplayInfo
uint32 GameObjectTemplate::creatureID
uint32 GameObjectTemplate::CreditProxyCreature
uint32 GameObjectTemplate::customAnim
uint32 GameObjectTemplate::DamagedEvent
uint32 GameObjectTemplate::DamageEvent
uint32 GameObjectTemplate::DamageImmuneOK
uint32 GameObjectTemplate::damageMax
uint32 GameObjectTemplate::damageMin
uint32 GameObjectTemplate::damageSchool
uint32 GameObjectTemplate::data[MAX_GAMEOBJECT_DATA]
uint32 GameObjectTemplate::DefendedBroadcastAlliance
uint32 GameObjectTemplate::DefendedBroadcastHorde
uint32 GameObjectTemplate::DefendedEventAlliance
uint32 GameObjectTemplate::DefendedEventHorde
uint32 GameObjectTemplate::DestroyedEvent
struct { ... } GameObjectTemplate::destructibleBuilding
uint32 GameObjectTemplate::DestructibleModelRec
uint32 GameObjectTemplate::DifficultyAnimations
uint32 GameObjectTemplate::DifficultyEpic
uint32 GameObjectTemplate::DifficultyHeroic
uint32 GameObjectTemplate::DifficultyLegendary
uint32 GameObjectTemplate::DifficultyNormal
uint32 GameObjectTemplate::displayId
struct { ... } GameObjectTemplate::DONOTUSE
struct { ... } GameObjectTemplate::DONOTUSE2
struct { ... } GameObjectTemplate::DONOTUSE3
uint32 GameObjectTemplate::DontPlayOpenAnim
struct { ... } GameObjectTemplate::door
struct { ... } GameObjectTemplate::duelFlag
struct { ... } GameObjectTemplate::dungeonDifficulty
uint32 GameObjectTemplate::DungeonEncounter
uint32 GameObjectTemplate::EnablePortalsonopen
uint32 GameObjectTemplate::entry
uint32 GameObjectTemplate::eventID
int32 GameObjectTemplate::ExclusiveCategory
uint32 GameObjectTemplate::ExpireDuration
uint32 GameObjectTemplate::faction
struct { ... } GameObjectTemplate::fishingHole
struct { ... } GameObjectTemplate::fishingNode
struct { ... } GameObjectTemplate::flagDrop
uint32 GameObjectTemplate::FlagDrop
uint32 GameObjectTemplate::flags
struct { ... } GameObjectTemplate::flagStand
uint32 GameObjectTemplate::floatingTooltip
uint32 GameObjectTemplate::floatOnWater
uint32 GameObjectTemplate::FrequentHeartbeat
struct { ... } GameObjectTemplate::garrisonBuilding
struct { ... } GameObjectTemplate::garrisonMonument
struct { ... } GameObjectTemplate::garrisonMonumentPlaque
struct { ... } GameObjectTemplate::garrisonPlot
struct { ... } GameObjectTemplate::garrisonShipment
struct { ... } GameObjectTemplate::generic
uint32 GameObjectTemplate::GiganticAOI
struct { ... } GameObjectTemplate::goober
uint32 GameObjectTemplate::gossipID
uint32 GameObjectTemplate::GroupXP
struct { ... } GameObjectTemplate::guardPost
struct { ... } GameObjectTemplate::guildbank
uint32 GameObjectTemplate::HealthRec
int32 GameObjectTemplate::HeightOffset
uint32 GameObjectTemplate::HeroicAttachment
uint32 GameObjectTemplate::highlight
std::string GameObjectTemplate::IconName
uint32 GameObjectTemplate::IgnoreBoundingBox
uint32 GameObjectTemplate::IgnoredByPathing
uint32 GameObjectTemplate::IgnoreTotems
uint32 GameObjectTemplate::InfiniteAOI
uint32 GameObjectTemplate::InitStopped
uint32 GameObjectTemplate::InstanceType
uint32 GameObjectTemplate::IntactEvent
uint32 GameObjectTemplate::InteriorLight
uint32 GameObjectTemplate::InteriorVisible
uint32 GameObjectTemplate::Item
uint32 GameObjectTemplate::killbonustime
uint32 GameObjectTemplate::language
uint32 GameObjectTemplate::LargeAOI
uint32 GameObjectTemplate::leaveLoot
uint32 GameObjectTemplate::Legacy
uint32 GameObjectTemplate::level
uint32 GameObjectTemplate::linkedTrap
uint32 GameObjectTemplate::logloot
uint32 GameObjectTemplate::lootLevel
struct { ... } GameObjectTemplate::mailbox
int32 GameObjectTemplate::mapID
struct { ... } GameObjectTemplate::mapobject
uint32 GameObjectTemplate::maxLevel
uint32 GameObjectTemplate::maxRestock
uint32 GameObjectTemplate::maxSuperiority
uint32 GameObjectTemplate::maxTime
struct { ... } GameObjectTemplate::meetingStone
struct { ... } GameObjectTemplate::miniGame
uint32 GameObjectTemplate::minLevel
uint32 GameObjectTemplate::minRestock
uint32 GameObjectTemplate::minSuperiority
uint32 GameObjectTemplate::minTime
struct { ... } GameObjectTemplate::moTransport
uint32 GameObjectTemplate::moveSpeed
std::string GameObjectTemplate::name
int32 GameObjectTemplate::namedset
uint32 GameObjectTemplate::NeutralEventAlliance
uint32 GameObjectTemplate::NeutralEventHorde
uint32 GameObjectTemplate::neutralPercent
uint32 GameObjectTemplate::NeverUsableWhileMounted
struct { ... } GameObjectTemplate::newflag
struct { ... } GameObjectTemplate::newflagdrop
uint32 GameObjectTemplate::noDamageImmune
uint32 GameObjectTemplate::notInCombat
uint32 GameObjectTemplate::onlychargeheightcheck
uint32 GameObjectTemplate::onlychargetimecheck
uint32 GameObjectTemplate::onlyCreatorUse
uint32 GameObjectTemplate::open
uint32 GameObjectTemplate::openTextID
uint32 GameObjectTemplate::pageID
uint32 GameObjectTemplate::pageMaterial
uint32 GameObjectTemplate::partyOnly
struct { ... } GameObjectTemplate::phaseableMO
uint32 GameObjectTemplate::pickupSpell
uint32 GameObjectTemplate::playerCast
uint32 GameObjectTemplate::PlotInstance
uint32 GameObjectTemplate::Primarydoodadset
uint32 GameObjectTemplate::ProgressEventAlliance
uint32 GameObjectTemplate::ProgressEventHorde
uint32 GameObjectTemplate::PVPEnabling
uint32 GameObjectTemplate::questGiver
struct { ... } GameObjectTemplate::questgiver
uint32 GameObjectTemplate::questID
uint32 GameObjectTemplate::radius
struct { ... } GameObjectTemplate::raw
uint32 GameObjectTemplate::Reached10thfloor
uint32 GameObjectTemplate::Reached1stfloor
uint32 GameObjectTemplate::Reached2ndfloor
uint32 GameObjectTemplate::Reached3rdfloor
uint32 GameObjectTemplate::Reached4thfloor
uint32 GameObjectTemplate::Reached5thfloor
uint32 GameObjectTemplate::Reached6thfloor
uint32 GameObjectTemplate::Reached7thfloor
uint32 GameObjectTemplate::Reached8thfloor
uint32 GameObjectTemplate::Reached9thfloor
uint32 GameObjectTemplate::RebuildingEvent
uint32 GameObjectTemplate::RebuildingTime
uint32 GameObjectTemplate::requireLOS
uint32 GameObjectTemplate::RespawnTime
uint32 GameObjectTemplate::returnAura
uint32 GameObjectTemplate::ReturnonDefenderInteract
uint32 GameObjectTemplate::returnSpell
struct { ... } GameObjectTemplate::ritual
uint32 GameObjectTemplate::ritualNoTargetCheck
uint32 GameObjectTemplate::ritualPersistent
uint32 GameObjectTemplate::ScriptId
uint32 GameObjectTemplate::Secondarydoodadset
uint32 GameObjectTemplate::serverOnly
uint32 GameObjectTemplate::ShipmentContainer
uint32 GameObjectTemplate::SitAnimKit
float GameObjectTemplate::size
uint32 GameObjectTemplate::SortFarZ
uint32 GameObjectTemplate::SpawnVignette
uint32 GameObjectTemplate::speedWorldState1
uint32 GameObjectTemplate::speedWorldState2
uint32 GameObjectTemplate::spell
struct { ... } GameObjectTemplate::spellCaster
struct { ... } GameObjectTemplate::spellFocus
uint32 GameObjectTemplate::spellFocusType
uint32 GameObjectTemplate::SpellVisual1
uint32 GameObjectTemplate::SpellVisual2
uint32 GameObjectTemplate::SpellVisual3
uint32 GameObjectTemplate::SpellVisual4
uint32 GameObjectTemplate::SpellVisual5
uint32 GameObjectTemplate::startDelay
uint32 GameObjectTemplate::startEventID
uint32 GameObjectTemplate::startingValue
uint32 GameObjectTemplate::startOpen
uint32 GameObjectTemplate::stealthAffected
uint32 GameObjectTemplate::stealthed
uint32 GameObjectTemplate::stopEventID
uint32 GameObjectTemplate::SummonerTriggered
uint32 GameObjectTemplate::SyncAnimationtoObjectLifetime
uint32 GameObjectTemplate::taxiPathID
struct { ... } GameObjectTemplate::text
uint32 GameObjectTemplate::Timeto10thfloor
uint32 GameObjectTemplate::Timeto2ndfloor
uint32 GameObjectTemplate::Timeto3rdfloor
uint32 GameObjectTemplate::Timeto4thfloor
uint32 GameObjectTemplate::Timeto5thfloor
uint32 GameObjectTemplate::Timeto6thfloor
uint32 GameObjectTemplate::Timeto7thfloor
uint32 GameObjectTemplate::Timeto8thfloor
uint32 GameObjectTemplate::Timeto9thfloor
struct { ... } GameObjectTemplate::transport
uint32 GameObjectTemplate::transportPhysics
struct { ... } GameObjectTemplate::trap
struct { ... } GameObjectTemplate::trapdoor
uint32 GameObjectTemplate::triggeredEvent
uint32 GameObjectTemplate::trivialSkillHigh
uint32 GameObjectTemplate::trivialSkillLow
uint32 GameObjectTemplate::TrophyInstanceID
uint32 GameObjectTemplate::TrophyTypeID
uint32 GameObjectTemplate::TrueInfiniteAOI
uint32 GameObjectTemplate::turnpersonallootsecurityoff
uint32 GameObjectTemplate::type
struct { ... } GameObjectTemplate::UILink
uint32 GameObjectTemplate::UILinkType
uint32 GameObjectTemplate::UncontestedTime
uint32 GameObjectTemplate::unidirectional
std::string GameObjectTemplate::unk1
int32 GameObjectTemplate::unkInt32
int32 GameObjectTemplate::Unused
int32 GameObjectTemplate::Unused1
int32 GameObjectTemplate::Unused10
int32 GameObjectTemplate::Unused2
int32 GameObjectTemplate::Unused3
int32 GameObjectTemplate::Unused4
int32 GameObjectTemplate::Unused5
int32 GameObjectTemplate::Unused6
int32 GameObjectTemplate::Unused7
int32 GameObjectTemplate::Unused8
int32 GameObjectTemplate::Unused9
uint32 GameObjectTemplate::UseGarrisonOwnerGuildColors
uint32 GameObjectTemplate::usegrouplootrules
uint32 GameObjectTemplate::worldState1
uint32 GameObjectTemplate::worldstate2
uint32 GameObjectTemplate::worldstate3
uint32 GameObjectTemplate::WorldStateSetsState
uint32 GameObjectTemplate::xpDifficulty
int32 GameObjectTemplate::xpLevel

The documentation for this struct was generated from the following file: