TrinityCore
|
#include <Battleground.h>
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. More... | |
virtual void | PostUpdateImpl (uint32) |
Post-update hook. More... | |
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 255 of file Battleground.h.
typedef std::map<ObjectGuid, BattlegroundPlayer> Battleground::BattlegroundPlayerMap |
Definition at line 323 of file Battleground.h.
typedef std::map<ObjectGuid, BattlegroundScore*> Battleground::BattlegroundScoreMap |
Definition at line 327 of file Battleground.h.
Battleground::Battleground | ( | BattlegroundTemplate const * | battlegroundTemplate | ) |
Definition at line 60 of file Battleground.cpp.
|
default |
|
virtual |
|
inlineprotected |
Definition at line 203 of file Battleground.cpp.
|
inlineprotected |
Definition at line 466 of file Battleground.h.
|
inlineprotected |
Definition at line 465 of file Battleground.h.
|
protected |
Definition at line 474 of file Battleground.cpp.
|
protected |
Definition at line 488 of file Battleground.cpp.
|
inlineprotected |
Definition at line 320 of file Battleground.cpp.
|
inlineprotected |
Definition at line 452 of file Battleground.cpp.
|
inlineprotected |
Definition at line 255 of file Battleground.cpp.
|
protected |
Definition at line 233 of file Battleground.cpp.
|
inlineprotected |
Definition at line 284 of file Battleground.cpp.
Definition at line 1077 of file Battleground.cpp.
|
virtual |
Reimplemented in Arena.
Definition at line 967 of file Battleground.cpp.
void Battleground::AddPlayerPosition | ( | WorldPackets::Battleground::BattlegroundPlayerPosition const & | position | ) |
void Battleground::AddToBGFreeSlotQueue | ( | ) |
Definition at line 1154 of file Battleground.cpp.
void Battleground::BlockMovement | ( | Player * | player | ) |
Definition at line 791 of file Battleground.cpp.
void Battleground::BroadcastWorker | ( | Do & | _do | ) |
Definition at line 53 of file Battleground.cpp.
|
virtual |
Reimplemented in Arena.
Definition at line 1255 of file Battleground.cpp.
|
inline |
Definition at line 431 of file Battleground.h.
Definition at line 564 of file Battleground.cpp.
|
inlinevirtual |
Reimplemented in Arena.
Definition at line 393 of file Battleground.h.
|
inline |
|
virtual |
Reimplemented in Arena.
Definition at line 612 of file Battleground.cpp.
|
protected |
Definition at line 1359 of file Battleground.cpp.
void Battleground::EventPlayerLoggedIn | ( | Player * | player | ) |
Definition at line 1113 of file Battleground.cpp.
void Battleground::EventPlayerLoggedOut | ( | Player * | player | ) |
|
inline |
Definition at line 1454 of file Battleground.cpp.
|
inline |
|
inline |
BattlegroundScore const * Battleground::GetBattlegroundScore | ( | Player * | player | ) | const |
Definition at line 1280 of file Battleground.cpp.
BattlegroundMap * Battleground::GetBgMap | ( | ) | const |
GameObject * Battleground::GetBGObject | ( | uint32 | type, |
bool | logError = true |
||
) |
Definition at line 784 of file Battleground.cpp.
BattlegroundBracketId Battleground::GetBracketId | ( | ) | const |
Definition at line 1512 of file Battleground.cpp.
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 1175 of file Battleground.cpp.
|
inline |
uint32 Battleground::GetMapId | ( | ) | const |
uint32 Battleground::GetMaxLevel | ( | ) | const |
Definition at line 1540 of file Battleground.cpp.
uint32 Battleground::GetMaxPlayers | ( | ) | const |
Definition at line 1522 of file Battleground.cpp.
uint32 Battleground::GetMaxPlayersPerTeam | ( | ) | const |
Definition at line 1548 of file Battleground.cpp.
uint32 Battleground::GetMinLevel | ( | ) | const |
Definition at line 1532 of file Battleground.cpp.
uint32 Battleground::GetMinPlayers | ( | ) | const |
uint32 Battleground::GetMinPlayersPerTeam | ( | ) | const |
Definition at line 1568 of file Battleground.cpp.
char const * Battleground::GetName | ( | ) | const |
|
inline |
|
inline |
|
inline |
Team Battleground::GetPlayerTeam | ( | ObjectGuid | guid | ) | const |
Team Battleground::GetPrematureWinner | ( | ) |
Definition at line 273 of file Battleground.cpp.
|
inline |
Definition at line 304 of file Battleground.h.
|
inline |
uint32 Battleground::GetScriptId | ( | ) | const |
Definition at line 779 of file Battleground.cpp.
|
inline |
float Battleground::GetStartMaxDist | ( | ) | const |
|
inline |
Definition at line 1493 of file Battleground.cpp.
WorldSafeLocsEntry const * Battleground::GetTeamStartPosition | ( | TeamId | teamId | ) | const |
BattlegroundTypeId Battleground::GetTypeID | ( | ) | const |
uint8 Battleground::GetUniqueBracketId | ( | ) | const |
Definition at line 1517 of file Battleground.cpp.
|
inline |
Definition at line 456 of file Battleground.h.
|
inline |
Reimplemented in Arena.
Definition at line 1366 of file Battleground.cpp.
|
inlinevirtual |
bool Battleground::HasFreeSlots | ( | ) | const |
Definition at line 1250 of file Battleground.cpp.
|
inline |
bool Battleground::isArena | ( | ) | const |
Definition at line 1240 of file Battleground.cpp.
bool Battleground::isBattleground | ( | ) | const |
Definition at line 1245 of file Battleground.cpp.
bool Battleground::IsPlayerInBattleground | ( | ObjectGuid | guid | ) | const |
bool Battleground::IsPlayerMercenaryInBattleground | ( | ObjectGuid | guid | ) | const |
|
inline |
|
inline |
|
delete |
|
protected |
Definition at line 1442 of file Battleground.cpp.
void Battleground::PlaySoundToAll | ( | uint32 | SoundID | ) |
Definition at line 554 of file Battleground.cpp.
|
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 497 of file Battleground.h.
|
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 484 of file Battleground.h.
Definition at line 1329 of file Battleground.cpp.
Definition at line 571 of file Battleground.cpp.
void Battleground::RemoveFromBGFreeSlotQueue | ( | ) |
Definition at line 1164 of file Battleground.cpp.
|
inlineprotectedvirtual |
Reimplemented in Arena.
Definition at line 509 of file Battleground.h.
|
virtual |
Reimplemented in Arena.
Definition at line 797 of file Battleground.cpp.
void Battleground::RemovePlayerPosition | ( | ObjectGuid | guid | ) |
Definition at line 454 of file Battleground.h.
void Battleground::Reset | ( | ) |
Definition at line 921 of file Battleground.cpp.
Definition at line 578 of file Battleground.cpp.
Definition at line 585 of file Battleground.cpp.
Definition at line 1484 of file Battleground.cpp.
void Battleground::SendBroadcastText | ( | uint32 | id, |
ChatMsg | msgType, | ||
WorldObject const * | target = nullptr |
||
) |
Definition at line 541 of file Battleground.cpp.
void Battleground::SendChatMessage | ( | Creature * | source, |
uint8 | textId, | ||
WorldObject * | target = nullptr |
||
) |
void Battleground::SendPacketToAll | ( | WorldPacket const * | packet | ) | const |
Definition at line 519 of file Battleground.cpp.
void Battleground::SendPacketToTeam | ( | Team | team, |
WorldPacket const * | packet, | ||
Player * | except = nullptr |
||
) | const |
Definition at line 526 of file Battleground.cpp.
|
inline |
void Battleground::SetBgMap | ( | BattlegroundMap * | map | ) |
Definition at line 1310 of file Battleground.cpp.
Definition at line 1469 of file Battleground.cpp.
void Battleground::SetBracket | ( | PVPDifficultyEntry const * | bracketEntry | ) |
|
inline |
|
inline |
Definition at line 428 of file Battleground.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Battleground::StartBattleground | ( | ) |
Definition at line 946 of file Battleground.cpp.
void Battleground::TeleportPlayerToExploitLocation | ( | Player * | player | ) |
|
inline |
void Battleground::Update | ( | uint32 | diff | ) |
Definition at line 137 of file Battleground.cpp.
bool Battleground::UpdatePlayerScore | ( | Player * | player, |
uint32 | type, | ||
uint32 | value, | ||
bool | doAddHonor = true |
||
) |
Definition at line 1285 of file Battleground.cpp.
|
inline |
Definition at line 1299 of file Battleground.cpp.
Definition at line 607 of file Battleground.cpp.
|
private |
Definition at line 566 of file Battleground.h.
|
private |
Definition at line 570 of file Battleground.h.
|
private |
Definition at line 573 of file Battleground.h.
|
private |
Definition at line 567 of file Battleground.h.
|
private |
Definition at line 568 of file Battleground.h.
|
private |
Definition at line 535 of file Battleground.h.
|
private |
Definition at line 558 of file Battleground.h.
|
private |
Definition at line 560 of file Battleground.h.
|
private |
Definition at line 531 of file Battleground.h.
|
private |
Definition at line 552 of file Battleground.h.
|
private |
Definition at line 526 of file Battleground.h.
|
private |
Definition at line 530 of file Battleground.h.
|
protected |
Definition at line 515 of file Battleground.h.
|
private |
Definition at line 532 of file Battleground.h.
|
private |
Definition at line 524 of file Battleground.h.
|
private |
Definition at line 548 of file Battleground.h.
|
private |
Definition at line 549 of file Battleground.h.
|
private |
Definition at line 537 of file Battleground.h.
|
private |
Definition at line 540 of file Battleground.h.
|
private |
Definition at line 563 of file Battleground.h.
|
private |
Definition at line 543 of file Battleground.h.
|
protected |
Definition at line 512 of file Battleground.h.
|
private |
Definition at line 555 of file Battleground.h.
|
private |
Definition at line 538 of file Battleground.h.
|
private |
Definition at line 539 of file Battleground.h.
|
private |
Definition at line 528 of file Battleground.h.
|
private |
Definition at line 533 of file Battleground.h.
|
private |
Definition at line 536 of file Battleground.h.
|
private |
Definition at line 527 of file Battleground.h.
|
private |
Definition at line 525 of file Battleground.h.
|
protected |
Definition at line 520 of file Battleground.h.
|
private |
Definition at line 529 of file Battleground.h.
|
private |
Definition at line 575 of file Battleground.h.
|
protected |
Definition at line 507 of file Battleground.h.
|
protected |
Definition at line 516 of file Battleground.h.
|
protected |
Definition at line 518 of file Battleground.h.
|
private |
Definition at line 564 of file Battleground.h.