19 #ifndef __BATTLEGROUNDMGR_H
20 #define __BATTLEGROUNDMGR_H
32 #define WS_CURRENCY_RESET_TIME 20001 // Custom worldstate
102 void LoadBattlegroundTemplates();
103 void DeleteAllBattlegrounds();
110 uint32 GetPrematureFinishTime()
const;
112 void ToggleArenaTesting();
113 void ToggleTesting();
115 void SetHolidayWeekends(
uint32 mask);
128 uint32 GetMaxRatingDifference()
const;
129 uint32 GetRatingDiscardTimer()
const;
130 void LoadBattleMastersEntry();
131 void CheckBattleMasters();
134 BattleMastersMap::const_iterator itr = mBattleMastersMap.find(entry);
135 if (itr != mBattleMastersMap.end())
159 BattlegroundTemplateMap::const_iterator itr = _battlegroundTemplates.find(
id);
160 if (itr != _battlegroundTemplates.end())
167 BattlegroundMapTemplateContainer::const_iterator itr = _battlegroundMapTemplates.find(mapId);
168 if (itr != _battlegroundMapTemplates.end())
181 #define sBattlegroundMgr BattlegroundMgr::instance()
183 #endif // __BATTLEGROUNDMGR_H
Definition: BattlegroundPackets.h:147
Definition: BattlegroundMgr.h:70
Definition: DBCEnums.h:63
Definition: BattlegroundPackets.h:200
BattlegroundTypeId
Definition: SharedDefines.h:4558
std::unordered_map< uint32, BattlegroundTypeId > BattleMastersMap
Definition: BattlegroundMgr.h:30
std::list< Battleground * > BGFreeSlotQueueContainer
Definition: BattlegroundQueue.h:30
BattlegroundBracketId
Definition: DBCEnums.h:57
Definition: DBCEnums.h:482
uint32 m_NextRatedArenaUpdate
Definition: BattlegroundMgr.h:152
uint16 MinPlayersPerTeam
Definition: BattlegroundMgr.h:44
uint8 Weight
Definition: BattlegroundMgr.h:50
BattlegroundTypeId Id
Definition: BattlegroundMgr.h:43
float MaxStartDistSq
Definition: BattlegroundMgr.h:49
bool IsArena() const
Definition: BattlegroundMgr.h:54
uint16 MaxPlayersPerTeam
Definition: BattlegroundMgr.h:45
BattlegroundTemplateMap _battlegroundTemplates
Definition: BattlegroundMgr.h:177
BattlemasterListEntry const * BattlemasterEntry
Definition: BattlegroundMgr.h:52
std::map< uint32, BattlegroundTemplate * > BattlegroundMapTemplateContainer
Definition: BattlegroundMgr.h:176
std::map< BattlegroundTypeId, BattlegroundTemplate > BattlegroundTemplateMap
Definition: BattlegroundMgr.h:175
Definition: BattlegroundPackets.h:185
uint8 MinLevel
Definition: BattlegroundMgr.h:46
#define BG_TEAMS_COUNT
Definition: SharedDefines.h:4555
Definition: BattlegroundMgr.h:34
bool m_ArenaTesting
Definition: BattlegroundMgr.h:153
bool isArenaTesting() const
Definition: BattlegroundMgr.h:117
Definition: SharedDefines.h:4747
std::vector< uint64 > m_QueueUpdateScheduler
Definition: BattlegroundMgr.h:151
BattlegroundQueue & GetBattlegroundQueue(BattlegroundQueueTypeId bgQueueTypeId)
Definition: BattlegroundMgr.h:108
std::map< BattlegroundTypeId, BattlegroundData > BattlegroundDataContainer
Definition: BattlegroundMgr.h:146
uint32_t uint32
Definition: Define.h:150
uint32 ScriptId
Definition: BattlegroundMgr.h:51
uint16_t uint16
Definition: Define.h:151
uint32 InstanceType
Definition: DBCStructure.h:118
Definition: BattlegroundMgr.h:41
BattleMastersMap mBattleMastersMap
Definition: BattlegroundMgr.h:155
bool m_Testing
Definition: BattlegroundMgr.h:154
Definition: BattlegroundMgr.h:57
std::map< uint32, Battleground * > BattlegroundContainer
Definition: BattlegroundMgr.h:27
BattlegroundTemplate const * GetBattlegroundTemplateByMapId(uint32 mapId)
Definition: BattlegroundMgr.h:165
BattlegroundDataContainer bgDataStore
Definition: BattlegroundMgr.h:147
BattlegroundTemplate const * GetBattlegroundTemplateByTypeId(BattlegroundTypeId id)
Definition: BattlegroundMgr.h:157
Definition: BattlegroundQueue.h:75
BattlegroundQueueTypeId
Definition: SharedDefines.h:4732
BattlegroundClientIdsContainer m_ClientBattlegroundIds[MAX_BATTLEGROUND_BRACKETS]
Definition: BattlegroundMgr.h:37
uint8 MaxLevel
Definition: BattlegroundMgr.h:47
Definition: DBCStructure.h:926
#define TC_GAME_API
Definition: Define.h:134
BGFreeSlotQueueContainer BGFreeSlotQueue
Definition: BattlegroundMgr.h:38
Definition: BattlegroundPackets.h:170
BattlegroundMapTemplateContainer _battlegroundMapTemplates
Definition: BattlegroundMgr.h:178
Position StartLocation[BG_TEAMS_COUNT]
Definition: BattlegroundMgr.h:48
uint8_t uint8
Definition: Define.h:152
Definition: Position.h:27
std::map< BattlegroundTypeId, uint8 > BattlegroundSelectionWeightMap
Definition: BattlegroundMgr.h:173
bool isTesting() const
Definition: BattlegroundMgr.h:118
Definition: SharedDefines.h:4560
Definition: Battleground.h:235
BattlegroundContainer m_Battlegrounds
Definition: BattlegroundMgr.h:36
Definition: ObjectGuid.h:189
GroupJoinBattlegroundResult
Definition: SharedDefines.h:4750
BattlegroundTypeId GetBattleMasterBG(uint32 entry) const
Definition: BattlegroundMgr.h:132
Definition: BattlegroundPackets.h:157
HolidayIds
Definition: SharedDefines.h:3714
Definition: DBCStructure.h:114
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
std::set< uint32 > BattlegroundClientIdsContainer
Definition: BattlegroundMgr.h:28