OregonCore  revision be9e804-git
Your Favourite TBC server
Map.h File Reference
#include "Platform/Define.h"
#include "Policies/ThreadingModel.h"
#include "ace/RW_Thread_Mutex.h"
#include "ace/Thread_Mutex.h"
#include "DBCStructure.h"
#include "GridDefines.h"
#include "Cell.h"
#include "Timer.h"
#include "SharedDefines.h"
#include "GameSystem/GridRefManager.h"
#include "MapRefManager.h"
#include "DynamicTree.h"
#include "GameObjectModel.h"
#include <bitset>
#include <list>
#include <set>

Go to the source code of this file.

Classes

struct  ScriptAction
 
struct  map_fileheader
 
struct  map_areaHeader
 
struct  map_heightHeader
 
struct  map_liquidHeader
 
struct  LiquidData
 
class  GridMap
 
struct  CreatureMover
 
struct  InstanceTemplate
 
class  Map
 
class  InstanceMap
 
class  BattlegroundMap
 

Namespaces

 Oregon
 

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_LIQUID_NO_TYPE   0x0001
 
#define MAP_LIQUID_NO_HEIGHT   0x0002
 
#define MAP_LIQUID_TYPE_NO_WATER   0x00
 
#define MAP_LIQUID_TYPE_MAGMA   0x01
 
#define MAP_LIQUID_TYPE_OCEAN   0x02
 
#define MAP_LIQUID_TYPE_SLIME   0x04
 
#define MAP_LIQUID_TYPE_WATER   0x08
 
#define MAP_ALL_LIQUIDS   (MAP_LIQUID_TYPE_WATER | MAP_LIQUID_TYPE_MAGMA | MAP_LIQUID_TYPE_OCEAN | 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 UNORDERED_MAP< Creature *, CreatureMoverCreatureMoveList
 
typedef std::map< uint32, CreatureGroup * > CreatureGroupHolderType
 

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

Definition at line 261 of file Map.h.

Referenced by Map::ToInstanceMap().

#define MAP_AREA_NO_AREA   0x0001

Definition at line 90 of file Map.h.

Referenced by GridMap::loadAreaData().

#define MAP_HEIGHT_AS_INT16   0x0002

Definition at line 100 of file Map.h.

Referenced by GridMap::loadHeightData(), and MMAP::TerrainBuilder::loadMap().

#define MAP_HEIGHT_AS_INT8   0x0004

Definition at line 101 of file Map.h.

Referenced by GridMap::loadHeightData(), and MMAP::TerrainBuilder::loadMap().

#define MAP_HEIGHT_NO_HEIGHT   0x0001

Definition at line 99 of file Map.h.

Referenced by GridMap::loadHeightData(), and MMAP::TerrainBuilder::loadMap().

#define MAP_LIQUID_NO_HEIGHT   0x0002

Definition at line 112 of file Map.h.

Referenced by GridMap::loadLiquidData(), and MMAP::TerrainBuilder::loadMap().

#define MAP_LIQUID_NO_TYPE   0x0001

Definition at line 111 of file Map.h.

Referenced by GridMap::loadLiquidData(), and MMAP::TerrainBuilder::loadMap().

#define MAP_LIQUID_TYPE_DARK_WATER   0x10
#define MAP_LIQUID_TYPE_MAGMA   0x01
#define MAP_LIQUID_TYPE_NO_WATER   0x00

Definition at line 136 of file Map.h.

Referenced by MMAP::TerrainBuilder::loadMap().

#define MAP_LIQUID_TYPE_OCEAN   0x02
#define MAP_LIQUID_TYPE_SLIME   0x04
#define MAP_LIQUID_TYPE_WATER   0x08
#define MAP_LIQUID_TYPE_WMO_WATER   0x20

Definition at line 145 of file Map.h.

#define MAX_FALL_DISTANCE   250000.0f

Definition at line 260 of file Map.h.

Referenced by MotionMaster::MoveFall().

#define MIN_UNLOAD_DELAY   1

Typedef Documentation

Definition at line 264 of file Map.h.

Definition at line 256 of file Map.h.

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 

Definition at line 676 of file Map.h.

Enumerator
LEVELREQUIREMENT_HEROIC 

Definition at line 245 of file Map.h.

246 {
248 };
Enumerator
LIQUID_MAP_NO_WATER 
LIQUID_MAP_ABOVE_WATER 
LIQUID_MAP_WATER_WALK 
LIQUID_MAP_IN_WATER 
LIQUID_MAP_UNDER_WATER 

Definition at line 126 of file Map.h.

127 {
128  LIQUID_MAP_NO_WATER = 0x00000000,
129  LIQUID_MAP_ABOVE_WATER = 0x00000001,
130  LIQUID_MAP_WATER_WALK = 0x00000002,
131  LIQUID_MAP_IN_WATER = 0x00000004,
132  LIQUID_MAP_UNDER_WATER = 0x00000008
133 };