TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Map.cpp File Reference
#include "Map.h"
#include "Battleground.h"
#include "MMapFactory.h"
#include "CellImpl.h"
#include "DisableMgr.h"
#include "DynamicTree.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "GridStates.h"
#include "Group.h"
#include "InstancePackets.h"
#include "InstanceScript.h"
#include "MapInstanced.h"
#include "MiscPackets.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "ScriptMgr.h"
#include "Transport.h"
#include "Vehicle.h"
#include "VMapFactory.h"
#include "Weather.h"
+ Include dependency graph for Map.cpp:

Classes

struct  ResetNotifier
 

Macros

#define DEFAULT_GRID_EXPIRY   300
 
#define MAX_GRID_LOAD_TIME   50
 
#define MAX_CREATURE_ATTACK_RADIUS   (45.0f * sWorld->getRate(RATE_CREATURE_AGGRO))
 

Functions

bool IsOutdoorWMO (uint32 mogpFlags, int32, int32, int32, WMOAreaTableEntry const *wmoEntry, AreaTableEntry const *atEntry)
 

Variables

u_map_magic MapMagic = { {'M','A','P','S'} }
 
u_map_magic MapVersionMagic = { {'v','1','.','8'} }
 
u_map_magic MapAreaMagic = { {'A','R','E','A'} }
 
u_map_magic MapHeightMagic = { {'M','H','G','T'} }
 
u_map_magic MapLiquidMagic = { {'M','L','I','Q'} }
 
GridStatesi_GridStates [MAX_GRID_STATE]
 

Macro Definition Documentation

#define DEFAULT_GRID_EXPIRY   300
#define MAX_CREATURE_ATTACK_RADIUS   (45.0f * sWorld->getRate(RATE_CREATURE_AGGRO))
#define MAX_GRID_LOAD_TIME   50

Function Documentation

bool IsOutdoorWMO ( uint32  mogpFlags,
int32  ,
int32  ,
int32  ,
WMOAreaTableEntry const wmoEntry,
AreaTableEntry const atEntry 
)
inline
2365 {
2366  bool outdoor = true;
2367 
2368  if (wmoEntry && atEntry)
2369  {
2370  if (atEntry->Flags[0] & AREA_FLAG_OUTSIDE)
2371  return true;
2372  if (atEntry->Flags[0] & AREA_FLAG_INSIDE)
2373  return false;
2374  }
2375 
2376  outdoor = (mogpFlags & 0x8) != 0;
2377 
2378  if (wmoEntry)
2379  {
2380  if (wmoEntry->Flags & 4)
2381  return true;
2382  if (wmoEntry->Flags & 2)
2383  outdoor = false;
2384  }
2385  return outdoor;
2386 }
Definition: DBCEnums.h:395
Definition: DBCEnums.h:396

+ Here is the caller graph for this function:

Variable Documentation

u_map_magic MapAreaMagic = { {'A','R','E','A'} }
u_map_magic MapHeightMagic = { {'M','H','G','T'} }
u_map_magic MapLiquidMagic = { {'M','L','I','Q'} }
u_map_magic MapMagic = { {'M','A','P','S'} }
u_map_magic MapVersionMagic = { {'v','1','.','8'} }
GridState* si_GridStates[MAX_GRID_STATE]