TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 
bool IsGarrison () const
 

Public Attributes

uint32 ID
 
uint32 InstanceType
 
uint32 Flags
 
char * MapName_lang
 
uint32 AreaTableID
 
uint32 LoadingScreenID
 
int32 CorpseMapID
 
DBCPosition2D CorpsePos
 
uint32 ExpansionID
 
uint32 RaidOffset
 
uint32 MaxPlayers
 
int32 ParentMapID
 
int32 CosmeticParentMapID
 

Member Function Documentation

uint32 MapEntry::Expansion ( ) const
inline
855 { return ExpansionID; }
uint32 ExpansionID
Definition: DBCStructure.h:847
bool MapEntry::GetEntrancePos ( int32 mapid,
float &  x,
float &  y 
) const
inline
867  {
868  if (CorpseMapID < 0)
869  return false;
870  mapid = CorpseMapID;
871  x = CorpsePos.X;
872  y = CorpsePos.Y;
873  return true;
874  }
DBCPosition2D CorpsePos
Definition: DBCStructure.h:845
int32 CorpseMapID
Definition: DBCStructure.h:844
float X
Definition: DBCEnums.h:28
float Y
Definition: DBCEnums.h:29
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37
bool MapEntry::Instanceable ( ) const
inline
Definition: DBCEnums.h:482
Definition: DBCEnums.h:480
uint32 InstanceType
Definition: DBCStructure.h:834
Definition: DBCEnums.h:481
Definition: DBCEnums.h:479

+ Here is the caller graph for this function:

bool MapEntry::IsBattleArena ( ) const
inline
862 { return InstanceType == MAP_ARENA; }
Definition: DBCEnums.h:482
uint32 InstanceType
Definition: DBCStructure.h:834

+ Here is the caller graph for this function:

bool MapEntry::IsBattleground ( ) const
inline
861 { return InstanceType == MAP_BATTLEGROUND; }
uint32 InstanceType
Definition: DBCStructure.h:834
Definition: DBCEnums.h:481

+ Here is the caller graph for this function:

bool MapEntry::IsBattlegroundOrArena ( ) const
inline
Definition: DBCEnums.h:482
uint32 InstanceType
Definition: DBCStructure.h:834
Definition: DBCEnums.h:481

+ Here is the caller graph for this function:

bool MapEntry::IsContinent ( ) const
inline
877  {
878  return ID == 0 || ID == 1 || ID == 530 || ID == 571 || ID == 870 || ID == 1116;
879  }
uint32 ID
Definition: DBCStructure.h:832

+ Here is the caller graph for this function:

bool MapEntry::IsDungeon ( ) const
inline
857 { return (InstanceType == MAP_INSTANCE || InstanceType == MAP_RAID) && !IsGarrison(); }
bool IsGarrison() const
Definition: DBCStructure.h:882
Definition: DBCEnums.h:480
uint32 InstanceType
Definition: DBCStructure.h:834
Definition: DBCEnums.h:479

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool MapEntry::IsDynamicDifficultyMap ( ) const
inline
881 { return (Flags & MAP_FLAG_CAN_TOGGLE_DIFFICULTY) != 0; }
uint32 Flags
Definition: DBCStructure.h:835
Definition: DBCEnums.h:488
bool MapEntry::IsGarrison ( ) const
inline
882 { return (Flags & MAP_FLAG_GARRISON) != 0; }
Definition: DBCEnums.h:491
uint32 Flags
Definition: DBCStructure.h:835

+ Here is the caller graph for this function:

bool MapEntry::IsNonRaidDungeon ( ) const
inline
858 { return InstanceType == MAP_INSTANCE; }
uint32 InstanceType
Definition: DBCStructure.h:834
Definition: DBCEnums.h:479
bool MapEntry::IsRaid ( ) const
inline
860 { return InstanceType == MAP_RAID; }
Definition: DBCEnums.h:480
uint32 InstanceType
Definition: DBCStructure.h:834

+ Here is the caller graph for this function:

bool MapEntry::IsWorldMap ( ) const
inline
864 { return InstanceType == MAP_COMMON; }
uint32 InstanceType
Definition: DBCStructure.h:834
Definition: DBCEnums.h:478

Member Data Documentation

uint32 MapEntry::AreaTableID
int32 MapEntry::CorpseMapID
DBCPosition2D MapEntry::CorpsePos
int32 MapEntry::CosmeticParentMapID
uint32 MapEntry::ExpansionID
uint32 MapEntry::Flags
uint32 MapEntry::ID
uint32 MapEntry::InstanceType
uint32 MapEntry::LoadingScreenID
char* MapEntry::MapName_lang
uint32 MapEntry::MaxPlayers
int32 MapEntry::ParentMapID
uint32 MapEntry::RaidOffset

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