AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GameObject.h File Reference
#include "Common.h"
#include "DatabaseEnv.h"
#include "G3D/Quat.h"
#include "GameObjectData.h"
#include "LootMgr.h"
#include "Object.h"
#include "SharedDefines.h"
#include "Unit.h"
#include <array>

Go to the source code of this file.

Classes

union  GameObjectValue
 
class  GameObject
 

Macros

#define FISHING_BOBBER_READY_TIME   5
 

Typedefs

typedef void(* goEventFlag) (Player *, GameObject *, Battleground *)
 
typedef std::unordered_map< uint32, GameObjectTemplateGameObjectTemplateContainer
 
typedef std::unordered_map< uint32, GameObjectTemplateAddonGameObjectTemplateAddonContainer
 
typedef std::unordered_map< uint32, GameObjectAddonGameObjectAddonContainer
 
typedef std::vector< uint32GameObjectQuestItemList
 
typedef std::unordered_map< uint32, GameObjectQuestItemListGameObjectQuestItemMap
 

Enumerations

enum class  GameObjectActions : uint32 {
  None ,
  AnimateCustom0 ,
  AnimateCustom1 ,
  AnimateCustom2 ,
  AnimateCustom3 ,
  Disturb ,
  Unlock ,
  Lock ,
  Open ,
  OpenAndUnlock ,
  Close ,
  ToggleOpen ,
  Destroy ,
  Rebuild ,
  Creation ,
  Despawn ,
  MakeInert ,
  MakeActive ,
  CloseAndLock ,
  UseArtKit0 ,
  UseArtKit1 ,
  UseArtKit2 ,
  UseArtKit3 ,
  SetTapList
}
 
enum  LootState {
  GO_NOT_READY ,
  GO_READY ,
  GO_ACTIVATED ,
  GO_JUST_DEACTIVATED
}
 

Macro Definition Documentation

◆ FISHING_BOBBER_READY_TIME

#define FISHING_BOBBER_READY_TIME   5

Typedef Documentation

◆ GameObjectAddonContainer

typedef std::unordered_map<uint32, GameObjectAddon> GameObjectAddonContainer

◆ GameObjectQuestItemList

typedef std::vector<uint32> GameObjectQuestItemList

◆ GameObjectQuestItemMap

◆ GameObjectTemplateAddonContainer

◆ GameObjectTemplateContainer

◆ goEventFlag

typedef void(* goEventFlag) (Player *, GameObject *, Battleground *)

Enumeration Type Documentation

◆ GameObjectActions

enum class GameObjectActions : uint32
strong
Enumerator
None 
AnimateCustom0 
AnimateCustom1 
AnimateCustom2 
AnimateCustom3 
Disturb 
Unlock 
Lock 
Open 
OpenAndUnlock 
Close 
ToggleOpen 
Destroy 
Rebuild 
Creation 
Despawn 
MakeInert 
MakeActive 
CloseAndLock 
UseArtKit0 
UseArtKit1 
UseArtKit2 
UseArtKit3 
SetTapList 
78{
79 // Name from client executable // Comments
80 None, // -NONE-
81 AnimateCustom0, // Animate Custom0
82 AnimateCustom1, // Animate Custom1
83 AnimateCustom2, // Animate Custom2
84 AnimateCustom3, // Animate Custom3
85 Disturb, // Disturb // Triggers trap
86 Unlock, // Unlock // Resets GO_FLAG_LOCKED
87 Lock, // Lock // Sets GO_FLAG_LOCKED
88 Open, // Open // Sets GO_STATE_ACTIVE
89 OpenAndUnlock, // Open + Unlock // Sets GO_STATE_ACTIVE and resets GO_FLAG_LOCKED
90 Close, // Close // Sets GO_STATE_READY
91 ToggleOpen, // Toggle Open
92 Destroy, // Destroy // Sets GO_STATE_DESTROYED
93 Rebuild, // Rebuild // Resets from GO_STATE_DESTROYED
94 Creation, // Creation
95 Despawn, // Despawn
96 MakeInert, // Make Inert // Disables interactions
97 MakeActive, // Make Active // Enables interactions
98 CloseAndLock, // Close + Lock // Sets GO_STATE_READY and sets GO_FLAG_LOCKED
99 UseArtKit0, // Use ArtKit0 // 46904: 121
100 UseArtKit1, // Use ArtKit1 // 36639: 81, 46903: 122
101 UseArtKit2, // Use ArtKit2
102 UseArtKit3, // Use ArtKit3
103 SetTapList, // Set Tap List
104};

◆ LootState

enum LootState
Enumerator
GO_NOT_READY 
GO_READY 
GO_ACTIVATED 
GO_JUST_DEACTIVATED 
111{
113 GO_READY, // can be ready but despawned, and then not possible activate until spawn
116};
@ GO_ACTIVATED
Definition: GameObject.h:114
@ GO_READY
Definition: GameObject.h:113
@ GO_NOT_READY
Definition: GameObject.h:112
@ GO_JUST_DEACTIVATED
Definition: GameObject.h:115