![]() |
TrinityCore
|
#include <Battleground.h>
Inheritance diagram for Battleground:Public Types | |
| typedef std::map< ObjectGuid, BattlegroundPlayer > | BattlegroundPlayerMap |
| typedef std::map< ObjectGuid, BattlegroundScore * > | BattlegroundScoreMap |
Static Public Member Functions | |
| static TeamId | GetTeamIndexByTeamId (Team team) |
Protected Member Functions | |
| void | EndNow () |
| void | PlayerAddedToBGCheckIfBGIsRunning (Player *player) |
| Player * | _GetPlayer (ObjectGuid guid, bool offlineRemove, char const *context) const |
| Player * | _GetPlayer (BattlegroundPlayerMap::iterator itr, char const *context) |
| Player * | _GetPlayer (BattlegroundPlayerMap::const_iterator itr, char const *context) const |
| Player * | _GetPlayerForTeam (Team team, BattlegroundPlayerMap::const_iterator itr, char const *context) const |
| virtual bool | PreUpdateImpl (uint32) |
| Pre-update hook. | |
| virtual void | PostUpdateImpl (uint32) |
| Post-update hook. | |
| void | _ProcessOfflineQueue () |
| void | _ProcessProgress (uint32 diff) |
| void | _ProcessLeave (uint32 diff) |
| void | _ProcessJoin (uint32 diff) |
| void | _CheckSafePositions (uint32 diff) |
| void | _ProcessPlayerPositionBroadcast (uint32 diff) |
| virtual void | RemovePlayer (Player *, ObjectGuid, uint32) |
Definition at line 258 of file Battleground.h.
| typedef std::map<ObjectGuid, BattlegroundPlayer> Battleground::BattlegroundPlayerMap |
Definition at line 327 of file Battleground.h.
| typedef std::map<ObjectGuid, BattlegroundScore*> Battleground::BattlegroundScoreMap |
Definition at line 331 of file Battleground.h.
| Battleground::Battleground | ( | BattlegroundTemplate const * | battlegroundTemplate | ) |
Definition at line 60 of file Battleground.cpp.
|
default |
|
virtual |
|
inlineprotected |
Definition at line 200 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 467 of file Battleground.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 466 of file Battleground.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 471 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 485 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 317 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 449 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 252 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 230 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 281 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1078 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in Arena.
Definition at line 968 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::AddPlayerPosition | ( | WorldPackets::Battleground::BattlegroundPlayerPosition const & | position | ) |
| void Battleground::AddToBGFreeSlotQueue | ( | ) |
Definition at line 1155 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::BlockMovement | ( | Player * | player | ) |
Definition at line 792 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::BroadcastWorker | ( | Do & | _do | ) |
Definition at line 53 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in Arena.
Definition at line 1256 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 432 of file Battleground.h.
Definition at line 561 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in Arena.
Definition at line 397 of file Battleground.h.
Here is the caller graph for this function:
|
inline |
|
virtual |
Reimplemented in Arena.
Definition at line 609 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1360 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::EventPlayerLoggedIn | ( | Player * | player | ) |
Definition at line 1114 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::EventPlayerLoggedOut | ( | Player * | player | ) |
|
inline |
Definition at line 1455 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| BattlegroundScore const * Battleground::GetBattlegroundScore | ( | Player * | player | ) | const |
Definition at line 1281 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| BattlegroundMap * Battleground::GetBgMap | ( | ) | const |
| GameObject * Battleground::GetBGObject | ( | uint32 | type, |
| bool | logError = true |
||
| ) |
Definition at line 785 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| BattlegroundBracketId Battleground::GetBracketId | ( | ) | const |
Definition at line 1513 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 1176 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 280 of file Battleground.h.
|
inline |
| uint32 Battleground::GetMapId | ( | ) | const |
| uint32 Battleground::GetMaxLevel | ( | ) | const |
Definition at line 1541 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| uint32 Battleground::GetMaxPlayers | ( | ) | const |
Definition at line 1523 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| uint32 Battleground::GetMaxPlayersPerTeam | ( | ) | const |
Definition at line 1549 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| uint32 Battleground::GetMinLevel | ( | ) | const |
Definition at line 1533 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| uint32 Battleground::GetMinPlayers | ( | ) | const |
| uint32 Battleground::GetMinPlayersPerTeam | ( | ) | const |
Definition at line 1569 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| char const * Battleground::GetName | ( | ) | const |
|
inline |
|
inline |
|
inline |
| Team Battleground::GetPlayerTeam | ( | ObjectGuid | guid | ) | const |
| Team Battleground::GetPrematureWinner | ( | ) |
Definition at line 270 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 308 of file Battleground.h.
|
inline |
| uint32 Battleground::GetScriptId | ( | ) | const |
Definition at line 780 of file Battleground.cpp.
|
inline |
| float Battleground::GetStartMaxDist | ( | ) | const |
|
inline |
Definition at line 1494 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| WorldSafeLocsEntry const * Battleground::GetTeamStartPosition | ( | TeamId | teamId | ) | const |
| BattlegroundTypeId Battleground::GetTypeID | ( | ) | const |
| uint8 Battleground::GetUniqueBracketId | ( | ) | const |
Definition at line 1518 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 457 of file Battleground.h.
|
inline |
Reimplemented in Arena.
Definition at line 1367 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
| bool Battleground::HasFreeSlots | ( | ) | const |
Definition at line 1251 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| bool Battleground::isArena | ( | ) | const |
Definition at line 1241 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Battleground::isBattleground | ( | ) | const |
Definition at line 1246 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Battleground::IsPlayerInBattleground | ( | ObjectGuid | guid | ) | const |
| bool Battleground::IsPlayerMercenaryInBattleground | ( | ObjectGuid | guid | ) | const |
|
inline |
|
inline |
|
delete |
|
protected |
Definition at line 1443 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::PlaySoundToAll | ( | uint32 | SoundID | ) |
Definition at line 551 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Post-update hook.
Will be called after battleground update has passed. May be used to implement custom update effects in subclasses.
| diff | a time difference between two worldserver update loops in milliseconds. |
Definition at line 498 of file Battleground.h.
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Pre-update hook.
Will be called before battleground update is started. Depending on the result of this call actual update body may be skipped.
| diff | a time difference between two worldserver update loops in milliseconds. |
true if update must be performed, false otherwise.Definition at line 485 of file Battleground.h.
Here is the caller graph for this function:Definition at line 1330 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 568 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::RemoveFromBGFreeSlotQueue | ( | ) |
Definition at line 1165 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Reimplemented in Arena.
Definition at line 510 of file Battleground.h.
Here is the caller graph for this function:
|
virtual |
Reimplemented in Arena.
Definition at line 798 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::RemovePlayerPosition | ( | ObjectGuid | guid | ) |
Definition at line 455 of file Battleground.h.
| void Battleground::Reset | ( | ) |
Definition at line 922 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 575 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 582 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1485 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SendBroadcastText | ( | uint32 | id, |
| ChatMsg | msgType, | ||
| WorldObject const * | target = nullptr |
||
| ) |
Definition at line 538 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SendChatMessage | ( | Creature * | source, |
| uint8 | textId, | ||
| WorldObject * | target = nullptr |
||
| ) |
Definition at line 1320 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SendPacketToAll | ( | WorldPacket const * | packet | ) | const |
Definition at line 516 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SendPacketToTeam | ( | Team | team, |
| WorldPacket const * | packet, | ||
| Player * | except = nullptr |
||
| ) | const |
Definition at line 523 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void Battleground::SetBgMap | ( | BattlegroundMap * | map | ) |
Definition at line 1311 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1470 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SetBracket | ( | PVPDifficultyEntry const * | bracketEntry | ) |
|
inline |
|
inline |
Definition at line 429 of file Battleground.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Battleground::StartBattleground | ( | ) |
Definition at line 947 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::TeleportPlayerToExploitLocation | ( | Player * | player | ) |
|
inline |
| void Battleground::Update | ( | uint32 | diff | ) |
Definition at line 134 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Battleground::UpdatePlayerScore | ( | Player * | player, |
| uint32 | type, | ||
| uint32 | value, | ||
| bool | doAddHonor = true, |
||
| Optional< HonorGainSource > | source = {} |
||
| ) |
Definition at line 1286 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1300 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 604 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 564 of file Battleground.h.
|
private |
Definition at line 568 of file Battleground.h.
|
private |
Definition at line 571 of file Battleground.h.
|
private |
Definition at line 565 of file Battleground.h.
|
private |
Definition at line 566 of file Battleground.h.
|
private |
Definition at line 536 of file Battleground.h.
|
private |
Definition at line 558 of file Battleground.h.
|
private |
Definition at line 532 of file Battleground.h.
|
private |
Definition at line 553 of file Battleground.h.
|
private |
Definition at line 527 of file Battleground.h.
|
private |
Definition at line 531 of file Battleground.h.
|
protected |
Definition at line 516 of file Battleground.h.
|
private |
Definition at line 533 of file Battleground.h.
|
private |
Definition at line 525 of file Battleground.h.
|
private |
Definition at line 549 of file Battleground.h.
|
private |
Definition at line 550 of file Battleground.h.
|
private |
Definition at line 538 of file Battleground.h.
|
private |
Definition at line 541 of file Battleground.h.
|
private |
Definition at line 561 of file Battleground.h.
|
private |
Definition at line 544 of file Battleground.h.
|
protected |
Definition at line 513 of file Battleground.h.
|
private |
Definition at line 556 of file Battleground.h.
|
private |
Definition at line 539 of file Battleground.h.
|
private |
Definition at line 540 of file Battleground.h.
|
private |
Definition at line 529 of file Battleground.h.
|
private |
Definition at line 534 of file Battleground.h.
|
private |
Definition at line 537 of file Battleground.h.
|
private |
Definition at line 528 of file Battleground.h.
|
private |
Definition at line 526 of file Battleground.h.
|
protected |
Definition at line 521 of file Battleground.h.
|
private |
Definition at line 530 of file Battleground.h.
|
private |
Definition at line 573 of file Battleground.h.
|
protected |
Definition at line 508 of file Battleground.h.
|
protected |
Definition at line 517 of file Battleground.h.
|
protected |
Definition at line 519 of file Battleground.h.
|
private |
Definition at line 562 of file Battleground.h.