TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GameObject.h File Reference
#include "Common.h"
#include "SharedDefines.h"
#include "Unit.h"
#include "Object.h"
#include "LootMgr.h"
#include "DatabaseEnv.h"
+ Include dependency graph for GameObject.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GameObjectTemplate
 
union  GameObjectValue
 
struct  GameObjectLocale
 
struct  GameObjectAddon
 
struct  GameObjectData
 
class  GameObject
 

Macros

#define MAX_GO_STATE   3
 
#define MAX_GO_STATE_TRANSPORT_STOP_FRAMES   9
 
#define FISHING_BOBBER_READY_TIME   5
 

Typedefs

typedef std::unordered_map
< uint32, GameObjectTemplate
GameObjectTemplateContainer
 
typedef std::unordered_map
< ObjectGuid::LowType,
GameObjectAddon
GameObjectAddonContainer
 
typedef std::vector< uint32GameObjectQuestItemList
 
typedef std::unordered_map
< uint32,
GameObjectQuestItemList
GameObjectQuestItemMap
 

Enumerations

enum  GOState {
  GO_STATE_ACTIVE = 0, GO_STATE_READY = 1, GO_STATE_ACTIVE_ALTERNATIVE = 2, GO_STATE_TRANSPORT_ACTIVE = 24,
  GO_STATE_TRANSPORT_STOPPED = 25
}
 
enum  LootState { GO_NOT_READY = 0, GO_READY, GO_ACTIVATED, GO_JUST_DEACTIVATED }
 

Macro Definition Documentation

#define FISHING_BOBBER_READY_TIME   5
#define MAX_GO_STATE   3
#define MAX_GO_STATE_TRANSPORT_STOP_FRAMES   9

Typedef Documentation

typedef std::vector<uint32> GameObjectQuestItemList

Enumeration Type Documentation

enum GOState
Enumerator
GO_STATE_ACTIVE 
GO_STATE_READY 
GO_STATE_ACTIVE_ALTERNATIVE 
GO_STATE_TRANSPORT_ACTIVE 
GO_STATE_TRANSPORT_STOPPED 
821 {
822  GO_STATE_ACTIVE = 0, // show in world as used and not reset (closed door open)
823  GO_STATE_READY = 1, // show in world as ready (closed door close)
824  GO_STATE_ACTIVE_ALTERNATIVE = 2, // show in world as used in alt way and not reset (closed door open by cannon fire)
827 };
Definition: GameObject.h:825
Definition: GameObject.h:826
Definition: GameObject.h:824
Definition: GameObject.h:822
Definition: GameObject.h:823
enum LootState
Enumerator
GO_NOT_READY 
GO_READY 
GO_ACTIVATED 
GO_JUST_DEACTIVATED 
867 {
868  GO_NOT_READY = 0,
869  GO_READY, // can be ready but despawned, and then not possible activate until spawn
870  GO_ACTIVATED,
872 };
Definition: GameObject.h:871
Definition: GameObject.h:870
Definition: GameObject.h:868
Definition: GameObject.h:869