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 expansionID
 
uint32 maxPlayers
 

Detailed Description

Member Function Documentation

◆ Expansion()

uint32 MapEntry::Expansion ( ) const
inline
1348{ return expansionID; }
uint32 expansionID
Definition: DBCStructure.h:1343

References expansionID.

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

◆ GetEntrancePos()

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

References entrance_map, entrance_x, and entrance_y.

Referenced by Map::GetEntrancePos().

◆ Instanceable()

bool MapEntry::Instanceable ( ) const
inline
@ MAP_BATTLEGROUND
Definition: DBCEnums.h:349
@ MAP_ARENA
Definition: DBCEnums.h:350
@ MAP_INSTANCE
Definition: DBCEnums.h:347
@ MAP_RAID
Definition: DBCEnums.h:348
uint32 map_type
Definition: DBCStructure.h:1327

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
1370 {
1371 return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571;
1372 }
uint32 MapID
Definition: DBCStructure.h:1325

References MapID.

◆ IsDungeon()

◆ IsDynamicDifficultyMap()

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

References Flags, and MAP_FLAG_DYNAMIC_DIFFICULTY.

◆ IsNonRaidDungeon()

bool MapEntry::IsNonRaidDungeon ( ) const
inline

◆ IsRaid()

◆ IsWorldMap()

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

References MAP_COMMON, and map_type.

Referenced by Map::IsWorldMap().

Member Data Documentation

◆ entrance_map

◆ entrance_x

float MapEntry::entrance_x

◆ entrance_y

float MapEntry::entrance_y

◆ expansionID

uint32 MapEntry::expansionID

Referenced by Expansion().

◆ 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