TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Map.h File Reference
#include "Define.h"
#include "DBCStructure.h"
#include "GridDefines.h"
#include "Cell.h"
#include "Timer.h"
#include "SharedDefines.h"
#include "GridRefManager.h"
#include "MapRefManager.h"
#include "DynamicTree.h"
#include "GameObjectModel.h"
#include "ObjectGuid.h"
#include <bitset>
#include <list>
#include <memory>
+ Include dependency graph for Map.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ScriptAction
 
union  u_map_magic
 Represents a map magic value of 4 bytes (used in versions) More...
 
struct  map_fileheader
 
struct  map_areaHeader
 
struct  map_heightHeader
 
struct  map_liquidHeader
 
struct  LiquidData
 
class  GridMap
 
struct  InstanceTemplate
 
struct  ZoneDynamicInfo
 
class  Map
 
class  InstanceMap
 
class  BattlegroundMap
 

Namespaces

 Trinity
 

Macros

#define MAP_AREA_NO_AREA   0x0001
 
#define MAP_HEIGHT_NO_HEIGHT   0x0001
 
#define MAP_HEIGHT_AS_INT16   0x0002
 
#define MAP_HEIGHT_AS_INT8   0x0004
 
#define MAP_HEIGHT_HAS_FLIGHT_BOUNDS   0x0008
 
#define MAP_LIQUID_NO_TYPE   0x0001
 
#define MAP_LIQUID_NO_HEIGHT   0x0002
 
#define MAP_LIQUID_TYPE_NO_WATER   0x00
 
#define MAP_LIQUID_TYPE_WATER   0x01
 
#define MAP_LIQUID_TYPE_OCEAN   0x02
 
#define MAP_LIQUID_TYPE_MAGMA   0x04
 
#define MAP_LIQUID_TYPE_SLIME   0x08
 
#define MAP_ALL_LIQUIDS   (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_OCEAN | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_SLIME)
 
#define MAP_LIQUID_TYPE_DARK_WATER   0x10
 
#define MAP_LIQUID_TYPE_WMO_WATER   0x20
 
#define MAX_HEIGHT   100000.0f
 
#define INVALID_HEIGHT   -100000.0f
 
#define MAX_FALL_DISTANCE   250000.0f
 
#define DEFAULT_HEIGHT_SEARCH   50.0f
 
#define MIN_UNLOAD_DELAY   1
 

Typedefs

typedef std::map
< ObjectGuid::LowType,
CreatureGroup * > 
CreatureGroupHolderType
 
typedef std::unordered_map
< uint32, ZoneDynamicInfo
ZoneDynamicInfoMap
 
typedef
TypeUnorderedMapContainer
< AllMapStoredObjectTypes,
ObjectGuid
MapStoredObjectTypesContainer
 

Enumerations

enum  ZLiquidStatus {
  LIQUID_MAP_NO_WATER = 0x00000000, LIQUID_MAP_ABOVE_WATER = 0x00000001, LIQUID_MAP_WATER_WALK = 0x00000002, LIQUID_MAP_IN_WATER = 0x00000004,
  LIQUID_MAP_UNDER_WATER = 0x00000008
}
 
enum  LevelRequirementVsMode { LEVELREQUIREMENT_HEROIC = 70 }
 
enum  InstanceResetMethod {
  INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, INSTANCE_RESET_GLOBAL, INSTANCE_RESET_GROUP_DISBAND,
  INSTANCE_RESET_GROUP_JOIN, INSTANCE_RESET_RESPAWN_DELAY
}
 

Macro Definition Documentation

#define DEFAULT_HEIGHT_SEARCH   50.0f
#define INVALID_HEIGHT   -100000.0f
#define MAP_AREA_NO_AREA   0x0001
#define MAP_HEIGHT_AS_INT16   0x0002
#define MAP_HEIGHT_AS_INT8   0x0004
#define MAP_HEIGHT_HAS_FLIGHT_BOUNDS   0x0008
#define MAP_HEIGHT_NO_HEIGHT   0x0001
#define MAP_LIQUID_NO_HEIGHT   0x0002
#define MAP_LIQUID_NO_TYPE   0x0001
#define MAP_LIQUID_TYPE_DARK_WATER   0x10
#define MAP_LIQUID_TYPE_MAGMA   0x04
#define MAP_LIQUID_TYPE_NO_WATER   0x00
#define MAP_LIQUID_TYPE_OCEAN   0x02
#define MAP_LIQUID_TYPE_SLIME   0x08
#define MAP_LIQUID_TYPE_WATER   0x01
#define MAP_LIQUID_TYPE_WMO_WATER   0x20
#define MAX_FALL_DISTANCE   250000.0f
#define MAX_HEIGHT   100000.0f
#define MIN_UNLOAD_DELAY   1

Typedef Documentation

typedef std::unordered_map<uint32 , ZoneDynamicInfo> ZoneDynamicInfoMap

Enumeration Type Documentation

Enumerator
INSTANCE_RESET_ALL 
INSTANCE_RESET_CHANGE_DIFFICULTY 
INSTANCE_RESET_GLOBAL 
INSTANCE_RESET_GROUP_DISBAND 
INSTANCE_RESET_GROUP_JOIN 
INSTANCE_RESET_RESPAWN_DELAY 
Enumerator
LEVELREQUIREMENT_HEROIC 
230 {
232 };
Definition: Map.h:231
Enumerator
LIQUID_MAP_NO_WATER 
LIQUID_MAP_ABOVE_WATER 
LIQUID_MAP_WATER_WALK 
LIQUID_MAP_IN_WATER 
LIQUID_MAP_UNDER_WATER 
132 {
133  LIQUID_MAP_NO_WATER = 0x00000000,
134  LIQUID_MAP_ABOVE_WATER = 0x00000001,
135  LIQUID_MAP_WATER_WALK = 0x00000002,
136  LIQUID_MAP_IN_WATER = 0x00000004,
137  LIQUID_MAP_UNDER_WATER = 0x00000008
138 };
Definition: Map.h:136
Definition: Map.h:134
Definition: Map.h:135
Definition: Map.h:137
Definition: Map.h:133