TrinityCore
MapEntry Struct Reference

#include <DB2Structure.h>

Public Member Functions

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

Public Attributes

uint32 ID
 
char const * Directory
 
LocalizedString MapName
 
LocalizedString MapDescription0
 
LocalizedString MapDescription1
 
LocalizedString PvpShortDescription
 
LocalizedString PvpLongDescription
 
DBCPosition2D Corpse
 
uint8 MapType
 
int8 InstanceType
 
uint8 ExpansionID
 
uint16 AreaTableID
 
int16 LoadingScreenID
 
int16 TimeOfDayOverride
 
int16 ParentMapID = 0
 
int16 CosmeticParentMapID
 
uint8 TimeOffset
 
float MinimapIconScale
 
int16 CorpseMapID
 
uint8 MaxPlayers
 
int16 WindSettingsID
 
int32 ZmpFileDataID
 
int32 WdtFileDataID
 
std::array< int32, 3 > Flags
 
uint32 Id = 0
 
int32 WdtFileDataId = 0
 
std::string Name
 
std::string Directory
 

Member Function Documentation

◆ Expansion()

uint8 MapEntry::Expansion ( ) const
inline
2516 { return ExpansionID; }
uint8 ExpansionID
Definition: DB2Structure.h:2500
+ Here is the caller graph for this function:

◆ GetEntrancePos()

bool MapEntry::GetEntrancePos ( int32 mapid,
float &  x,
float &  y 
) const
inline
2529  {
2530  if (CorpseMapID < 0)
2531  return false;
2532 
2533  mapid = CorpseMapID;
2534  x = Corpse.X;
2535  y = Corpse.Y;
2536  return true;
2537  }
Definition: Corpse.h:51
int16 CorpseMapID
Definition: DB2Structure.h:2508
+ Here is the caller graph for this function:

◆ Instanceable()

bool MapEntry::Instanceable ( ) const
inline
Definition: DBCEnums.h:790
Definition: DBCEnums.h:788
Definition: DBCEnums.h:789
int8 InstanceType
Definition: DB2Structure.h:2499
Definition: DBCEnums.h:791
Definition: DBCEnums.h:787
+ Here is the caller graph for this function:

◆ IsBattleArena()

bool MapEntry::IsBattleArena ( ) const
inline
2523 { return InstanceType == MAP_ARENA; }
Definition: DBCEnums.h:790
int8 InstanceType
Definition: DB2Structure.h:2499
+ Here is the caller graph for this function:

◆ IsBattleground()

bool MapEntry::IsBattleground ( ) const
inline
2522 { return InstanceType == MAP_BATTLEGROUND; }
Definition: DBCEnums.h:789
int8 InstanceType
Definition: DB2Structure.h:2499
+ Here is the caller graph for this function:

◆ IsBattlegroundOrArena()

bool MapEntry::IsBattlegroundOrArena ( ) const
inline
Definition: DBCEnums.h:790
Definition: DBCEnums.h:789
int8 InstanceType
Definition: DB2Structure.h:2499
+ Here is the caller graph for this function:

◆ IsContinent()

bool MapEntry::IsContinent ( ) const
inline
2540  {
2541  return ID == 0 || ID == 1 || ID == 530 || ID == 571 || ID == 870 || ID == 1116 || ID == 1220;
2542  }
uint32 ID
Definition: DB2Structure.h:2490

◆ IsDungeon()

bool MapEntry::IsDungeon ( ) const
inline
Definition: DBCEnums.h:788
int8 InstanceType
Definition: DB2Structure.h:2499
Definition: DBCEnums.h:791
Definition: DBCEnums.h:787
bool IsGarrison() const
Definition: DB2Structure.h:2545
+ Here is the caller graph for this function:

◆ IsDynamicDifficultyMap()

bool MapEntry::IsDynamicDifficultyMap ( ) const
inline
2544 { return (Flags[0] & MAP_FLAG_CAN_TOGGLE_DIFFICULTY) != 0; }
Definition: DBCEnums.h:796
std::array< int32, 3 > Flags
Definition: DB2Structure.h:2513

◆ IsGarrison()

bool MapEntry::IsGarrison ( ) const
inline
2545 { return (Flags[0] & MAP_FLAG_GARRISON) != 0; }
Definition: DBCEnums.h:799
std::array< int32, 3 > Flags
Definition: DB2Structure.h:2513
+ Here is the caller graph for this function:

◆ IsNonRaidDungeon()

bool MapEntry::IsNonRaidDungeon ( ) const
inline
2519 { return InstanceType == MAP_INSTANCE; }
int8 InstanceType
Definition: DB2Structure.h:2499
Definition: DBCEnums.h:787
+ Here is the caller graph for this function:

◆ IsRaid()

bool MapEntry::IsRaid ( ) const
inline
2521 { return InstanceType == MAP_RAID; }
Definition: DBCEnums.h:788
int8 InstanceType
Definition: DB2Structure.h:2499
+ Here is the caller graph for this function:

◆ IsScenario()

bool MapEntry::IsScenario ( ) const
inline
2525 { return InstanceType == MAP_SCENARIO; }
int8 InstanceType
Definition: DB2Structure.h:2499
Definition: DBCEnums.h:791
+ Here is the caller graph for this function:

◆ IsWorldMap()

bool MapEntry::IsWorldMap ( ) const
inline
2526 { return InstanceType == MAP_COMMON; }
int8 InstanceType
Definition: DB2Structure.h:2499
Definition: DBCEnums.h:786

Member Data Documentation

◆ AreaTableID

uint16 MapEntry::AreaTableID

◆ Corpse

DBCPosition2D MapEntry::Corpse

◆ CorpseMapID

int16 MapEntry::CorpseMapID

◆ CosmeticParentMapID

int16 MapEntry::CosmeticParentMapID

◆ Directory [1/2]

std::string MapEntry::Directory

◆ Directory [2/2]

std::string MapEntry::Directory

◆ ExpansionID

uint8 MapEntry::ExpansionID

◆ Flags

std::array<int32, 3> MapEntry::Flags

◆ Id

uint32 MapEntry::Id = 0

◆ ID

uint32 MapEntry::ID

◆ InstanceType

int8 MapEntry::InstanceType

◆ LoadingScreenID

int16 MapEntry::LoadingScreenID

◆ MapDescription0

LocalizedString MapEntry::MapDescription0

◆ MapDescription1

LocalizedString MapEntry::MapDescription1

◆ MapName

LocalizedString MapEntry::MapName

◆ MapType

uint8 MapEntry::MapType

◆ MaxPlayers

uint8 MapEntry::MaxPlayers

◆ MinimapIconScale

float MapEntry::MinimapIconScale

◆ Name

std::string MapEntry::Name

◆ ParentMapID

int16 MapEntry::ParentMapID = 0

◆ PvpLongDescription

LocalizedString MapEntry::PvpLongDescription

◆ PvpShortDescription

LocalizedString MapEntry::PvpShortDescription

◆ TimeOfDayOverride

int16 MapEntry::TimeOfDayOverride

◆ TimeOffset

uint8 MapEntry::TimeOffset

◆ WdtFileDataId

int32 MapEntry::WdtFileDataId = 0

◆ WdtFileDataID

int32 MapEntry::WdtFileDataID

◆ WindSettingsID

int16 MapEntry::WindSettingsID

◆ ZmpFileDataID

int32 MapEntry::ZmpFileDataID

The documentation for this struct was generated from the following files: