![]() |
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 (uint32 Team) |
Public Attributes | |
| GuidVector | BgObjects |
| GuidVector | BgCreatures |
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 (uint32 teamId, BattlegroundPlayerMap::const_iterator itr, char const *context) const |
| void | _ProcessOfflineQueue () |
| void | _ProcessResurrect (uint32 diff) |
| void | _ProcessProgress (uint32 diff) |
| void | _ProcessLeave (uint32 diff) |
| void | _ProcessJoin (uint32 diff) |
| void | _CheckSafePositions (uint32 diff) |
| virtual void | RemovePlayer (Player *, ObjectGuid, uint32) |
Private Member Functions | |
| virtual bool | PreUpdateImpl (uint32) |
| Pre-update hook. | |
| virtual void | PostUpdateImpl (uint32) |
| Post-update hook. | |
Definition at line 248 of file Battleground.h.
| typedef std::map<ObjectGuid, BattlegroundPlayer> Battleground::BattlegroundPlayerMap |
Definition at line 342 of file Battleground.h.
| typedef std::map<ObjectGuid, BattlegroundScore*> Battleground::BattlegroundScoreMap |
Definition at line 346 of file Battleground.h.
| Battleground::Battleground | ( | ) |
Definition at line 71 of file Battleground.cpp.
|
virtual |
|
inlineprotected |
Definition at line 238 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 524 of file Battleground.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 523 of file Battleground.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 537 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 551 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 401 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 515 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 268 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 365 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 295 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 1462 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 1308 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1050 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.
Definition at line 994 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::AddPlayerToResurrectQueue | ( | ObjectGuid | npc_guid, |
| ObjectGuid | player_guid | ||
| ) |
Definition at line 1257 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Definition at line 1574 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Battleground::AddSpiritGuide | ( | uint32 | type, |
| Position const & | pos, | ||
| TeamId | teamId = TEAM_NEUTRAL |
||
| ) |
| void Battleground::AddToBGFreeSlotQueue | ( | ) |
Definition at line 1123 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 828 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 64 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::BuildPvPLogDataPacket | ( | WorldPackets::Battleground::PVPMatchStatistics & | pvpLogData | ) |
Definition at line 1214 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented in BattlegroundAV.
Definition at line 496 of file Battleground.h.
|
inline |
Definition at line 628 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in BattlegroundAV, BattlegroundWS, BattlegroundSA, and BattlegroundAB.
Definition at line 1834 of file Battleground.cpp.
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in Arena.
Definition at line 421 of file Battleground.h.
Here is the caller graph for this function:
|
inline |
| bool Battleground::DelCreature | ( | uint32 | type | ) |
Definition at line 1522 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Battleground::DelObject | ( | uint32 | type | ) |
Definition at line 1540 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundIC, and BattlegroundSA.
Definition at line 265 of file Battleground.h.
|
inlinevirtual |
Definition at line 445 of file Battleground.h.
| void Battleground::DoorClose | ( | uint32 | type | ) |
Definition at line 1377 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::DoorOpen | ( | uint32 | type | ) |
Definition at line 1393 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundSA, and BattlegroundWS.
Definition at line 676 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1627 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundWS, BattlegroundIC, BattlegroundSA, BattlegroundAB, BattlegroundAV, and BattlegroundEY.
Definition at line 439 of file Battleground.h.
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundWS, and BattlegroundEY.
Definition at line 438 of file Battleground.h.
| void Battleground::EventPlayerLoggedIn | ( | Player * | player | ) |
Definition at line 1082 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 | ) |
|
inlinevirtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 379 of file Battleground.h.
Here is the caller graph for this function:
|
inline |
Definition at line 1755 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 1420 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| GameObject * Battleground::GetBGObject | ( | uint32 | type, |
| bool | logError = true |
||
| ) |
Definition at line 1405 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 821 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.
Definition at line 1795 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inlinevirtual |
Reimplemented in BattlegroundWS, and BattlegroundEY.
Definition at line 493 of file Battleground.h.
Here is the caller graph for this function:Definition at line 1144 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 284 of file Battleground.h.
|
inline |
|
inline |
| int32 Battleground::GetObjectType | ( | ObjectGuid | guid | ) |
Definition at line 1775 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 347 of file Battleground.h.
|
inline |
| uint32 Battleground::GetPlayerTeam | ( | ObjectGuid | guid | ) | const |
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, and BattlegroundWS.
Definition at line 354 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 295 of file Battleground.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1819 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| uint8 Battleground::GetUniqueBracketId | ( | ) | const |
Definition at line 1840 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 514 of file Battleground.h.
|
inline |
Reimplemented in BattlegroundAV, BattlegroundIC, BattlegroundWS, BattlegroundAB, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundNA, BattlegroundRL, BattlegroundRV, and BattlegroundSA.
Definition at line 1828 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented in Arena, BattlegroundAV, BattlegroundEY, BattlegroundIC, and BattlegroundWS.
Definition at line 1679 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented in BattlegroundSA, BattlegroundAV, and BattlegroundIC.
Definition at line 435 of file Battleground.h.
|
inlinevirtual |
Reimplemented in BattlegroundIC.
Definition at line 447 of file Battleground.h.
|
inlinevirtual |
Reimplemented in BattlegroundAV.
Definition at line 495 of file Battleground.h.
| void Battleground::HandleTriggerBuff | ( | ObjectGuid | go_guid | ) |
| bool Battleground::HasFreeSlots | ( | ) | const |
Definition at line 1209 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundEY, and BattlegroundIC.
Definition at line 268 of file Battleground.h.
|
inline |
|
inline |
| bool Battleground::IsPlayerInBattleground | ( | ObjectGuid | guid | ) | const |
|
inline |
|
inline |
Reimplemented in BattlegroundIC, and BattlegroundSA.
Definition at line 497 of file Battleground.h.
|
inline |
|
protected |
Definition at line 1737 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 614 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivatevirtual |
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. |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 610 of file Battleground.h.
Here is the caller graph for this function:
|
inlineprivatevirtual |
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 597 of file Battleground.h.
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundSA.
Definition at line 442 of file Battleground.h.
Definition at line 1612 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::RelocateDeadPlayers | ( | ObjectGuid | guideGuid | ) |
Relocate all players in ReviveQueue to the closest graveyard.
Definition at line 1285 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 635 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::RemoveFromBGFreeSlotQueue | ( | ) |
|
inline |
Definition at line 328 of file Battleground.h.
| bool Battleground::RemoveObjectFromWorld | ( | uint32 | type | ) |
Definition at line 1558 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.
Definition at line 537 of file Battleground.h.
Here is the caller graph for this function:
|
virtual |
Reimplemented in Arena.
Definition at line 834 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::RemovePlayerFromResurrectQueue | ( | ObjectGuid | player_guid | ) |
Definition at line 1268 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundEY, BattlegroundSA, and BattlegroundWS.
Definition at line 949 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundAV.
Definition at line 263 of file Battleground.h.
Here is the caller graph for this function:Definition at line 642 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 649 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1813 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 601 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 |
||
| ) |
| void Battleground::SendPacketToAll | ( | WorldPacket const * | packet | ) | const |
Definition at line 577 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SendPacketToTeam | ( | uint32 | TeamID, |
| WorldPacket const * | packet, | ||
| Player * | sender = nullptr, |
||
| bool | self = true |
||
| ) | const |
Definition at line 584 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::SendWarningToAll | ( | uint32 | entry, |
| ... | |||
| ) |
|
inline |
|
inline |
|
inline |
Definition at line 1785 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 | ) |
Definition at line 1807 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 488 of file Battleground.h.
|
inlinevirtual |
Reimplemented in BattlegroundWS, and BattlegroundEY.
Definition at line 494 of file Battleground.h.
|
inline |
| void Battleground::SetHoliday | ( | bool | is_holiday | ) |
Definition at line 1770 of file Battleground.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 256 of file Battleground.h.
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 1435 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Battleground::StartBattleground | ( | ) |
Definition at line 978 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundSA, and BattlegroundWS.
Definition at line 261 of file Battleground.h.
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 262 of file Battleground.h.
Here is the caller graph for this function:| void Battleground::StartTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
| uint32 | entry | ||
| ) |
Definition at line 1800 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void Battleground::Update | ( | uint32 | diff | ) |
Definition at line 173 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, and BattlegroundWS.
Definition at line 1243 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 668 of file Battleground.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 556 of file Battleground.h.
|
private |
Definition at line 575 of file Battleground.h.
| GuidVector Battleground::BgCreatures |
Definition at line 464 of file Battleground.h.
| GuidVector Battleground::BgObjects |
Definition at line 463 of file Battleground.h.
|
private |
Definition at line 629 of file Battleground.h.
|
private |
Definition at line 631 of file Battleground.h.
|
private |
Definition at line 571 of file Battleground.h.
|
private |
Definition at line 623 of file Battleground.h.
|
private |
Definition at line 570 of file Battleground.h.
|
protected |
Definition at line 550 of file Battleground.h.
|
private |
Definition at line 564 of file Battleground.h.
|
private |
Definition at line 568 of file Battleground.h.
|
protected |
Definition at line 545 of file Battleground.h.
|
protected |
Definition at line 553 of file Battleground.h.
|
private |
Definition at line 572 of file Battleground.h.
|
private |
Definition at line 562 of file Battleground.h.
|
private |
Definition at line 619 of file Battleground.h.
|
private |
Definition at line 620 of file Battleground.h.
|
private |
Definition at line 574 of file Battleground.h.
|
protected |
Definition at line 551 of file Battleground.h.
|
private |
Definition at line 577 of file Battleground.h.
|
private |
Definition at line 569 of file Battleground.h.
|
private |
Definition at line 635 of file Battleground.h.
|
private |
Definition at line 634 of file Battleground.h.
|
private |
Definition at line 643 of file Battleground.h.
|
private |
Definition at line 642 of file Battleground.h.
|
private |
Definition at line 637 of file Battleground.h.
|
private |
Definition at line 636 of file Battleground.h.
|
private |
Definition at line 639 of file Battleground.h.
|
private |
Definition at line 638 of file Battleground.h.
|
private |
Definition at line 580 of file Battleground.h.
|
private |
Definition at line 614 of file Battleground.h.
|
protected |
Definition at line 540 of file Battleground.h.
|
private |
Definition at line 626 of file Battleground.h.
|
private |
Definition at line 578 of file Battleground.h.
|
private |
Definition at line 579 of file Battleground.h.
|
private |
Definition at line 561 of file Battleground.h.
|
private |
Definition at line 566 of file Battleground.h.
|
private |
Definition at line 613 of file Battleground.h.
|
protected |
Definition at line 542 of file Battleground.h.
|
private |
Definition at line 573 of file Battleground.h.
|
private |
Definition at line 576 of file Battleground.h.
|
private |
Definition at line 645 of file Battleground.h.
|
private |
Definition at line 565 of file Battleground.h.
|
private |
Definition at line 563 of file Battleground.h.
|
protected |
Definition at line 554 of file Battleground.h.
|
private |
Definition at line 560 of file Battleground.h.
|
private |
Definition at line 567 of file Battleground.h.
|
private |
Definition at line 648 of file Battleground.h.
|
protected |
Definition at line 535 of file Battleground.h.
|
private |
Definition at line 646 of file Battleground.h.
|
protected |
Definition at line 546 of file Battleground.h.
|
protected |
Definition at line 548 of file Battleground.h.
|
private |
Definition at line 644 of file Battleground.h.