TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Object.h File Reference
#include "Common.h"
#include "Position.h"
#include "UpdateMask.h"
#include "GridReference.h"
#include "ObjectDefines.h"
#include "Map.h"
#include <set>
#include <string>
#include <sstream>
+ Include dependency graph for Object.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Object
 
struct  MovementInfo
 
struct  MovementInfo::TransportInfo
 
struct  MovementInfo::JumpInfo
 
class  GridObject< T >
 
class  FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >
 
class  MapObject
 
class  WorldObject
 
class  Trinity::ObjectDistanceOrderPred
 

Namespaces

 Trinity
 

Macros

#define CONTACT_DISTANCE   0.5f
 
#define INTERACTION_DISTANCE   5.0f
 
#define ATTACK_DISTANCE   5.0f
 
#define INSPECT_DISTANCE   28.0f
 
#define TRADE_DISTANCE   11.11f
 
#define MAX_VISIBILITY_DISTANCE   SIZE_OF_GRIDS
 
#define SIGHT_RANGE_UNIT   50.0f
 
#define DEFAULT_VISIBILITY_DISTANCE   90.0f
 
#define DEFAULT_VISIBILITY_INSTANCE   170.0f
 
#define DEFAULT_VISIBILITY_BGARENAS   533.0f
 
#define DEFAULT_WORLD_OBJECT_SIZE   0.388999998569489f
 
#define DEFAULT_COMBAT_REACH   1.5f
 
#define MIN_MELEE_REACH   2.0f
 
#define NOMINAL_MELEE_RANGE   5.0f
 
#define MELEE_RANGE   (NOMINAL_MELEE_RANGE - MIN_MELEE_REACH * 2)
 
#define DEFAULT_PHASE   169
 

Typedefs

typedef std::unordered_map
< Player *, UpdateData
UpdateDataMapType
 

Enumerations

enum  TempSummonType {
  TEMPSUMMON_TIMED_OR_DEAD_DESPAWN = 1, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN = 2, TEMPSUMMON_TIMED_DESPAWN = 3, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT = 4,
  TEMPSUMMON_CORPSE_DESPAWN = 5, TEMPSUMMON_CORPSE_TIMED_DESPAWN = 6, TEMPSUMMON_DEAD_DESPAWN = 7, TEMPSUMMON_MANUAL_DESPAWN = 8
}
 
enum  PhaseMasks { PHASEMASK_NORMAL = 0x00000001, PHASEMASK_ANYWHERE = 0xFFFFFFFF }
 
enum  NotifyFlags { NOTIFY_NONE = 0x00, NOTIFY_AI_RELOCATION = 0x01, NOTIFY_VISIBILITY_CHANGED = 0x02, NOTIFY_ALL = 0xFF }
 
enum  MapObjectCellMoveState { MAP_OBJECT_CELL_MOVE_NONE, MAP_OBJECT_CELL_MOVE_ACTIVE, MAP_OBJECT_CELL_MOVE_INACTIVE }
 

Macro Definition Documentation

#define ATTACK_DISTANCE   5.0f
#define CONTACT_DISTANCE   0.5f
#define DEFAULT_COMBAT_REACH   1.5f
#define DEFAULT_PHASE   169
#define DEFAULT_VISIBILITY_BGARENAS   533.0f
#define DEFAULT_VISIBILITY_DISTANCE   90.0f
#define DEFAULT_VISIBILITY_INSTANCE   170.0f
#define DEFAULT_WORLD_OBJECT_SIZE   0.388999998569489f
#define INSPECT_DISTANCE   28.0f
#define INTERACTION_DISTANCE   5.0f
#define MAX_VISIBILITY_DISTANCE   SIZE_OF_GRIDS
#define MELEE_RANGE   (NOMINAL_MELEE_RANGE - MIN_MELEE_REACH * 2)
#define MIN_MELEE_REACH   2.0f
#define NOMINAL_MELEE_RANGE   5.0f
#define SIGHT_RANGE_UNIT   50.0f
#define TRADE_DISTANCE   11.11f

Typedef Documentation

typedef std::unordered_map<Player*, UpdateData> UpdateDataMapType

Enumeration Type Documentation

Enumerator
MAP_OBJECT_CELL_MOVE_NONE 
MAP_OBJECT_CELL_MOVE_ACTIVE 
MAP_OBJECT_CELL_MOVE_INACTIVE 
392 {
393  MAP_OBJECT_CELL_MOVE_NONE, //not in move list
394  MAP_OBJECT_CELL_MOVE_ACTIVE, //in move list
395  MAP_OBJECT_CELL_MOVE_INACTIVE, //in move list but should not move
396 };
Definition: Object.h:393
Definition: Object.h:394
Definition: Object.h:395
Enumerator
NOTIFY_NONE 
NOTIFY_AI_RELOCATION 
NOTIFY_VISIBILITY_CHANGED 
NOTIFY_ALL 
71 {
72  NOTIFY_NONE = 0x00,
73  NOTIFY_AI_RELOCATION = 0x01,
75  NOTIFY_ALL = 0xFF
76 };
Definition: Object.h:74
Definition: Object.h:75
Definition: Object.h:73
Definition: Object.h:72
enum PhaseMasks
Enumerator
PHASEMASK_NORMAL 
PHASEMASK_ANYWHERE 
65 {
66  PHASEMASK_NORMAL = 0x00000001,
67  PHASEMASK_ANYWHERE = 0xFFFFFFFF
68 };
Definition: Object.h:67
Definition: Object.h:66
Enumerator
TEMPSUMMON_TIMED_OR_DEAD_DESPAWN 
TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN 
TEMPSUMMON_TIMED_DESPAWN 
TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT 
TEMPSUMMON_CORPSE_DESPAWN 
TEMPSUMMON_CORPSE_TIMED_DESPAWN 
TEMPSUMMON_DEAD_DESPAWN 
TEMPSUMMON_MANUAL_DESPAWN 
53 {
54  TEMPSUMMON_TIMED_OR_DEAD_DESPAWN = 1, // despawns after a specified time OR when the creature disappears
55  TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN = 2, // despawns after a specified time OR when the creature dies
56  TEMPSUMMON_TIMED_DESPAWN = 3, // despawns after a specified time
57  TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT = 4, // despawns after a specified time after the creature is out of combat
58  TEMPSUMMON_CORPSE_DESPAWN = 5, // despawns instantly after death
59  TEMPSUMMON_CORPSE_TIMED_DESPAWN = 6, // despawns after a specified time after death
60  TEMPSUMMON_DEAD_DESPAWN = 7, // despawns when the creature disappears
61  TEMPSUMMON_MANUAL_DESPAWN = 8 // despawns when UnSummon() is called
62 };
Definition: Object.h:61
Definition: Object.h:58
Definition: Object.h:60
Definition: Object.h:56
Definition: Object.h:55
Definition: Object.h:59
Definition: Object.h:54