AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MapEntry Struct Reference

#include "DBCStructure.h"

Public Member Functions

uint32 Expansion () const
 
bool IsDungeon () const
 
bool IsNonRaidDungeon () const
 
bool Instanceable () const
 
bool IsRaid () const
 
bool IsBattleground () const
 
bool IsBattleArena () const
 
bool IsBattlegroundOrArena () const
 
bool IsWorldMap () const
 
bool GetEntrancePos (int32 &mapid, float &x, float &y) const
 
bool IsContinent () const
 
bool IsDynamicDifficultyMap () const
 

Public Attributes

uint32 MapID
 
uint32 map_type
 
uint32 Flags
 
char const * name [16]
 
uint32 linked_zone
 
uint32 multimap_id
 
int32 entrance_map
 
float entrance_x
 
float entrance_y
 
uint32 addon
 
uint32 unk_time
 
uint32 maxPlayers
 

Detailed Description

Member Function Documentation

◆ Expansion()

uint32 MapEntry::Expansion ( ) const
inline
1347{ return addon; }
uint32 addon
Definition: DBCStructure.h:1342

References addon.

Referenced by GetContentLevelsForMapAndZone(), Player::LoadFromDB(), and Player::TeleportTo().

◆ GetEntrancePos()

bool MapEntry::GetEntrancePos ( int32 mapid,
float &  x,
float &  y 
) const
inline
1359 {
1360 if (entrance_map < 0)
1361 return false;
1362 mapid = entrance_map;
1363 x = entrance_x;
1364 y = entrance_y;
1365 return true;
1366 }
float entrance_y
Definition: DBCStructure.h:1340
int32 entrance_map
Definition: DBCStructure.h:1338
float entrance_x
Definition: DBCStructure.h:1339

References entrance_map, entrance_x, and entrance_y.

Referenced by Map::GetEntrancePos().

◆ Instanceable()

bool MapEntry::Instanceable ( ) const
inline
@ MAP_BATTLEGROUND
Definition: DBCEnums.h:357
@ MAP_ARENA
Definition: DBCEnums.h:358
@ MAP_INSTANCE
Definition: DBCEnums.h:355
@ MAP_RAID
Definition: DBCEnums.h:356
uint32 map_type
Definition: DBCStructure.h:1326

References MAP_ARENA, MAP_BATTLEGROUND, MAP_INSTANCE, MAP_RAID, and map_type.

Referenced by InstanceSaveMgr::_ResetOrWarnAll(), MapMgr::CreateBaseMap(), misc_commandscript::HandleSkirmishCommand(), Map::Instanceable(), Player::LoadFromDB(), ObjectMgr::LoadLinkedRespawn(), ObjectMgr::SetCreatureLinkedRespawn(), World::SetInitialWorldSettings(), and Player::TeleportTo().

◆ IsBattleArena()

bool MapEntry::IsBattleArena ( ) const
inline

◆ IsBattleground()

bool MapEntry::IsBattleground ( ) const
inline

◆ IsBattlegroundOrArena()

◆ IsContinent()

bool MapEntry::IsContinent ( ) const
inline
1369 {
1370 return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571;
1371 }
uint32 MapID
Definition: DBCStructure.h:1324

References MapID.

◆ IsDungeon()

◆ IsDynamicDifficultyMap()

bool MapEntry::IsDynamicDifficultyMap ( ) const
inline
@ MAP_FLAG_DYNAMIC_DIFFICULTY
Definition: DBCEnums.h:363
uint32 Flags
Definition: DBCStructure.h:1327

References Flags, and MAP_FLAG_DYNAMIC_DIFFICULTY.

◆ IsNonRaidDungeon()

bool MapEntry::IsNonRaidDungeon ( ) const
inline
1350{ return map_type == MAP_INSTANCE; }

References MAP_INSTANCE, and map_type.

Referenced by Map::IsNonRaidDungeon(), and Player::LoadFromDB().

◆ IsRaid()

◆ IsWorldMap()

bool MapEntry::IsWorldMap ( ) const
inline
1356{ return map_type == MAP_COMMON; }
@ MAP_COMMON
Definition: DBCEnums.h:354

References MAP_COMMON, and map_type.

Member Data Documentation

◆ addon

uint32 MapEntry::addon

Referenced by Expansion().

◆ entrance_map

◆ entrance_x

float MapEntry::entrance_x

◆ entrance_y

float MapEntry::entrance_y

◆ Flags

uint32 MapEntry::Flags

Referenced by IsDynamicDifficultyMap().

◆ linked_zone

uint32 MapEntry::linked_zone

◆ map_type

◆ MapID

◆ maxPlayers

uint32 MapEntry::maxPlayers

◆ multimap_id

uint32 MapEntry::multimap_id

◆ name

◆ unk_time

uint32 MapEntry::unk_time