![]() |
TrinityCore
|
#include <OutdoorPvP.h>
Inheritance diagram for OutdoorPvP:Public Types | |
| typedef std::map< ObjectGuid::LowType, OPvPCapturePoint * > | OPvPCapturePointMap |
| typedef std::pair< ObjectGuid::LowType, GameObject * > | GoScriptPair |
| typedef std::pair< ObjectGuid::LowType, Creature * > | CreatureScriptPair |
Static Public Member Functions | |
| static TeamId | GetTeamIdByTeam (uint32 team) |
Protected Member Functions | |
| virtual void | SendRemoveWorldStates (Player *) |
| void | BroadcastPacket (WorldPacket const *data) const |
| virtual void | HandlePlayerEnterZone (Player *player, uint32 zone) |
| virtual void | HandlePlayerLeaveZone (Player *player, uint32 zone) |
| virtual void | HandlePlayerResurrects (Player *player, uint32 zone) |
| void | AddCapturePoint (OPvPCapturePoint *cp) |
| OPvPCapturePoint * | GetCapturePoint (ObjectGuid::LowType guid) const |
| void | RegisterZone (uint32 zoneid) |
| bool | HasPlayer (Player const *player) const |
| void | TeamCastSpell (TeamId team, int32 spellId) |
| template<class Worker > | |
| void | BroadcastWorker (Worker &_worker, uint32 zoneId) |
| void | SetMapFromZone (uint32 zone) |
Protected Attributes | |
| OPvPCapturePointMap | m_capturePoints |
| GuidSet | m_players [2] |
| uint32 | m_TypeId |
| bool | m_sendUpdate |
| std::map< ObjectGuid::LowType, GameObject * > | m_GoScriptStore |
| std::map< ObjectGuid::LowType, Creature * > | m_CreatureScriptStore |
| Map * | m_map |
Friends | |
| class | OutdoorPvPMgr |
Definition at line 185 of file OutdoorPvP.h.
| typedef std::pair<ObjectGuid::LowType, Creature*> OutdoorPvP::CreatureScriptPair |
Definition at line 202 of file OutdoorPvP.h.
| typedef std::pair<ObjectGuid::LowType, GameObject*> OutdoorPvP::GoScriptPair |
Definition at line 201 of file OutdoorPvP.h.
| typedef std::map<ObjectGuid::LowType, OPvPCapturePoint*> OutdoorPvP::OPvPCapturePointMap |
Definition at line 200 of file OutdoorPvP.h.
| OutdoorPvP::OutdoorPvP | ( | ) |
Definition at line 241 of file OutdoorPvP.cpp.
|
virtual |
Definition at line 243 of file OutdoorPvP.cpp.
References DeleteSpawns().
|
protected |
Definition at line 555 of file OutdoorPvP.cpp.
References m_capturePoints, OPvPCapturePoint::m_capturePointSpawnId, and TC_LOG_ERROR.
Referenced by OutdoorPvPEP::SetupOutdoorPvP(), OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlinevirtual |
Definition at line 237 of file OutdoorPvP.h.
|
protected |
Definition at line 546 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), m_players, PVP_TEAMS_COUNT, and Player::SendDirectMessage().
|
protected |
Definition at line 648 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), m_players, and PVP_TEAMS_COUNT.
Referenced by SendDefenseMessage().
|
virtual |
Definition at line 519 of file OutdoorPvP.cpp.
References m_capturePoints.
| void OutdoorPvP::DeleteSpawns | ( | ) |
Definition at line 216 of file OutdoorPvP.cpp.
References m_capturePoints, m_CreatureScriptStore, and m_GoScriptStore.
Referenced by ~OutdoorPvP().
|
inlinevirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 204 of file OutdoorPvP.h.
Referenced by Player::SendInitWorldStates().
|
protected |
Definition at line 566 of file OutdoorPvP.cpp.
References m_capturePoints.
Referenced by OnGameObjectCreate(), and OnGameObjectRemove().
|
inline |
Definition at line 264 of file OutdoorPvP.h.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), and OPvPCapturePointNA::GetAliveGuardsCount().
Definition at line 249 of file OutdoorPvP.h.
References ALLIANCE, HORDE, TEAM_ALLIANCE, TEAM_HORDE, and TEAM_NEUTRAL.
Referenced by OPvPCapturePointNA::SpawnNPCsForTeam(), OPvPCapturePointEP_PWT::SummonFlightMaster(), and OPvPCapturePointEP_EWT::SummonSupportUnitAtNorthpassTower().
|
inline |
Definition at line 239 of file OutdoorPvP.h.
Referenced by Player::SendInitWorldStates().
Reimplemented in OutdoorPvPSI.
Definition at line 207 of file OutdoorPvP.h.
|
virtual |
Reimplemented in OutdoorPvPSI.
Definition at line 485 of file OutdoorPvP.cpp.
References m_capturePoints.
Reimplemented in OutdoorPvPSI.
Definition at line 528 of file OutdoorPvP.cpp.
References m_capturePoints.
|
virtual |
Definition at line 510 of file OutdoorPvP.cpp.
References m_capturePoints.
Definition at line 441 of file OutdoorPvP.cpp.
References Player::GetGroup(), Object::GetTypeId(), HandleKillImpl(), Player::IsAtGroupRewardDistance(), IsInsideObjective(), Player::IsOutdoorPvPActive(), and TYPEID_UNIT.
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, and OutdoorPvPZM.
Definition at line 231 of file OutdoorPvP.h.
Referenced by HandleKill().
|
virtual |
Definition at line 501 of file OutdoorPvP.cpp.
References m_capturePoints.
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 248 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_players.
Referenced by OutdoorPvPMgr::HandlePlayerEnterZone(), OutdoorPvPEP::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), and OutdoorPvPZM::HandlePlayerEnterZone().
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 253 of file OutdoorPvP.cpp.
References Object::GetGUID(), WorldObject::GetName(), Player::GetSession(), Player::GetTeamId(), m_capturePoints, m_players, WorldSession::PlayerLogout(), SendRemoveWorldStates(), and TC_LOG_DEBUG.
Referenced by OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), and OutdoorPvPZM::HandlePlayerLeaveZone().
Definition at line 265 of file OutdoorPvP.cpp.
|
protected |
Definition at line 579 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_players.
| bool OutdoorPvP::IsInsideObjective | ( | Player * | player | ) | const |
Definition at line 470 of file OutdoorPvP.cpp.
References m_capturePoints.
Referenced by HandleKill().
|
overridevirtual |
Reimplemented from ZoneScript.
Definition at line 629 of file OutdoorPvP.cpp.
References ObjectGuid::GetCounter(), Object::GetGUID(), and m_CreatureScriptStore.
|
overridevirtual |
Reimplemented from ZoneScript.
Definition at line 635 of file OutdoorPvP.cpp.
References ObjectGuid::GetCounter(), Object::GetGUID(), and m_CreatureScriptStore.
|
overridevirtual |
Reimplemented from ZoneScript.
Definition at line 607 of file OutdoorPvP.cpp.
References GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), ObjectGuid::GetCounter(), GameObject::GetGoType(), Object::GetGUID(), GameObject::GetSpawnId(), and m_GoScriptStore.
|
overridevirtual |
Reimplemented from ZoneScript.
Definition at line 618 of file OutdoorPvP.cpp.
References GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), ObjectGuid::GetCounter(), GameObject::GetGoType(), Object::GetGUID(), GameObject::GetSpawnId(), and m_GoScriptStore.
|
protected |
Definition at line 574 of file OutdoorPvP.cpp.
References sOutdoorPvPMgr.
Referenced by OutdoorPvPEP::SetupOutdoorPvP(), OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPSI::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
Definition at line 640 of file OutdoorPvP.cpp.
References BroadcastWorker().
Referenced by OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), OPvPCapturePointNA::FactionTakeOver(), and OPvPCapturePointZM_Graveyard::HandleOpenGo().
|
inlineprotectedvirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 278 of file OutdoorPvP.h.
Referenced by HandlePlayerLeaveZone().
Definition at line 400 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), m_players, and m_sendUpdate.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::FactionTakeOver(), OutdoorPvPEP::Update(), OutdoorPvPHP::Update(), OPvPCapturePointNA::Update(), OutdoorPvPTF::Update(), OPvPCapturePointNA::UpdateHalaaWorldState(), OPvPCapturePointEP_EWT::UpdateTowerState(), OPvPCapturePointEP_NPT::UpdateTowerState(), OPvPCapturePointEP_CGT::UpdateTowerState(), OPvPCapturePointEP_PWT::UpdateTowerState(), OPvPCapturePointTF::UpdateTowerState(), OPvPCapturePointZM_Beacon::UpdateTowerState(), OPvPCapturePointZM_Graveyard::UpdateTowerState(), OutdoorPvPSI::UpdateWorldState(), and OPvPCapturePointNA::UpdateWyvernRoostWorldState().
|
protected |
Definition at line 657 of file OutdoorPvP.cpp.
References ASSERT, AreaTableEntry::ContinentID, Map::Instanceable(), m_map, sAreaTableStore, and sMapMgr.
Referenced by OutdoorPvPHP::OutdoorPvPHP(), OutdoorPvPEP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPSI::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlinevirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 216 of file OutdoorPvP.h.
Referenced by OutdoorPvPMgr::InitOutdoorPvP().
Definition at line 601 of file OutdoorPvP.cpp.
References OTHER_TEAM, and TeamCastSpell().
Referenced by OPvPCapturePointNA::FactionTakeOver(), OutdoorPvPSI::HandleAreaTrigger(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
Definition at line 585 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), and m_players.
Referenced by TeamApplyBuff(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
|
virtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 267 of file OutdoorPvP.cpp.
References m_capturePoints.
Referenced by OutdoorPvPMgr::Update(), OutdoorPvPEP::Update(), OutdoorPvPHP::Update(), OutdoorPvPTF::Update(), and OutdoorPvPZM::Update().
|
friend |
Definition at line 187 of file OutdoorPvP.h.
|
protected |
Definition at line 269 of file OutdoorPvP.h.
Referenced by AddCapturePoint(), CanTalkTo(), DeleteSpawns(), OutdoorPvPEP::FillInitialWorldStates(), OutdoorPvPHP::FillInitialWorldStates(), OutdoorPvPTF::FillInitialWorldStates(), OutdoorPvPZM::FillInitialWorldStates(), GetCapturePoint(), HandleCustomSpell(), HandleDropFlag(), HandleGossipOption(), HandleOpenGo(), HandlePlayerLeaveZone(), IsInsideObjective(), and Update().
|
protected |
Definition at line 303 of file OutdoorPvP.h.
Referenced by DeleteSpawns(), OnCreatureCreate(), and OnCreatureRemove().
|
protected |
Definition at line 302 of file OutdoorPvP.h.
Referenced by DeleteSpawns(), OnGameObjectCreate(), and OnGameObjectRemove().
|
protected |
Definition at line 305 of file OutdoorPvP.h.
Referenced by OutdoorPvPSI::HandleAreaTrigger(), and SetMapFromZone().
|
protected |
Definition at line 271 of file OutdoorPvP.h.
Referenced by BroadcastPacket(), BroadcastWorker(), OutdoorPvPEP::BuffTeams(), HandlePlayerEnterZone(), HandlePlayerLeaveZone(), HasPlayer(), SendUpdateWorldState(), and TeamCastSpell().
|
protected |
Definition at line 275 of file OutdoorPvP.h.
Referenced by SendUpdateWorldState().
|
protected |
Definition at line 273 of file OutdoorPvP.h.
Referenced by OutdoorPvPEP::OutdoorPvPEP(), OutdoorPvPHP::OutdoorPvPHP(), OutdoorPvPNA::OutdoorPvPNA(), OutdoorPvPSI::OutdoorPvPSI(), OutdoorPvPTF::OutdoorPvPTF(), and OutdoorPvPZM::OutdoorPvPZM().