OregonCore  revision fb2a440-git
Your Favourite TBC server
GameObject.h File Reference
#include "Common.h"
#include "SharedDefines.h"
#include "Unit.h"
#include "Object.h"
#include "LootMgr.h"
#include "Database/DatabaseEnv.h"

Go to the source code of this file.

Classes

struct  GameObjectInfo
 
struct  GameObjectLocale
 
struct  GameObjectData
 
class  GameObject
 

Macros

#define MAX_GO_STATE   3
 
#define FISHING_BOBBER_READY_TIME   5
 

Enumerations

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

Macro Definition Documentation

#define FISHING_BOBBER_READY_TIME   5

Definition at line 577 of file GameObject.h.

Referenced by Spell::EffectTransmitted(), and GameObject::Update().

#define MAX_GO_STATE   3

Definition at line 534 of file GameObject.h.

Referenced by ObjectMgr::LoadGameobjects().

Enumeration Type Documentation

enum GOState
Enumerator
GO_STATE_ACTIVE 
GO_STATE_READY 
GO_STATE_ACTIVE_ALTERNATIVE 

Definition at line 527 of file GameObject.h.

528 {
529  GO_STATE_ACTIVE = 0, // show in world as used and not reset (closed door open)
530  GO_STATE_READY = 1, // show in world as ready (closed door close)
531  GO_STATE_ACTIVE_ALTERNATIVE = 2 // show in world as used in alt way and not reset (closed door open by cannon fire)
532 };
enum LootState
Enumerator
GO_NOT_READY 
GO_READY 
GO_ACTIVATED 
GO_JUST_DEACTIVATED 

Definition at line 563 of file GameObject.h.

564 {
565  GO_NOT_READY = 0,
566  GO_READY, // can be ready but despawned, and then not possible activate until spawn
567  GO_ACTIVATED,
569 };