AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvP.h"
Public Types | |
typedef std::map< ObjectGuid::LowType, OPvPCapturePoint * > | OPvPCapturePointMap |
typedef std::pair< ObjectGuid::LowType, GameObject * > | GoScriptPair |
typedef std::pair< ObjectGuid::LowType, Creature * > | CreatureScriptPair |
Protected Member Functions | |
virtual void | SendRemoveWorldStates (Player *) |
void | BroadcastPacket (WorldPacket &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 spawnId) const |
void | RegisterZone (uint32 zoneid) |
bool | HasPlayer (Player const *player) const |
void | TeamCastSpell (TeamId team, int32 spellId, Player *sameMapPlr=nullptr) |
void | SetMapFromZone (uint32 zone) |
Protected Attributes | |
OPvPCapturePointMap | m_capturePoints |
PlayerSet | 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 |
typedef std::pair<ObjectGuid::LowType, Creature*> OutdoorPvP::CreatureScriptPair |
typedef std::pair<ObjectGuid::LowType, GameObject*> OutdoorPvP::GoScriptPair |
typedef std::map<ObjectGuid::LowType, OPvPCapturePoint*> OutdoorPvP::OPvPCapturePointMap |
OutdoorPvP::OutdoorPvP | ( | ) |
|
override |
References DeleteSpawns().
|
inlineprotected |
References m_capturePoints, and OPvPCapturePoint::m_capturePointSpawnId.
Referenced by OutdoorPvPEP::SetupOutdoorPvP(), OutdoorPvPGH::SetupOutdoorPvP(), OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlinevirtual |
|
protected |
References ObjectAccessor::FindPlayer(), and m_players.
|
virtual |
References m_capturePoints.
void OutdoorPvP::DeleteSpawns | ( | ) |
References m_capturePoints, m_CreatureScriptStore, and m_GoScriptStore.
Referenced by ~OutdoorPvP().
|
inlinevirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Referenced by Player::SendInitWorldStates().
|
inlineprotected |
References m_capturePoints.
Referenced by OnGameObjectCreate(), and OnGameObjectRemove().
|
inline |
References m_map.
Referenced by OPvPCapturePoint::DelCreature(), OPvPCapturePoint::DelObject(), and OPvPCapturePointNA::GetAliveGuardsCount().
|
inline |
Reimplemented in OutdoorPvPSI.
|
virtual |
Reimplemented in OutdoorPvPSI.
References m_capturePoints.
Reimplemented in OutdoorPvPSI.
References m_capturePoints.
|
virtual |
References m_capturePoints.
References Player::GetGroup(), Object::GetTypeId(), HandleKillImpl(), Player::IsAtGroupRewardDistance(), IsInsideObjective(), Player::IsOutdoorPvPActive(), GroupReference::next(), and TYPEID_UNIT.
|
virtual |
References m_capturePoints.
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
References Object::GetGUID(), Player::GetTeamId(), and m_players.
Referenced by OutdoorPvPEP::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), and OutdoorPvPZM::HandlePlayerEnterZone().
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
References Object::GetGUID(), WorldObject::GetName(), Player::GetSession(), Player::GetTeamId(), LOG_DEBUG, m_capturePoints, m_players, WorldSession::PlayerLogout(), and SendRemoveWorldStates().
Referenced by OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), and OutdoorPvPZM::HandlePlayerLeaveZone().
|
protected |
References Object::GetGUID(), Player::GetTeamId(), and m_players.
bool OutdoorPvP::IsInsideObjective | ( | Player * | player | ) | const |
References m_capturePoints.
Referenced by HandleKill().
|
overridevirtual |
Reimplemented from ZoneScript.
References ObjectGuid::GetCounter(), Object::GetGUID(), and m_CreatureScriptStore.
|
overridevirtual |
Reimplemented from ZoneScript.
References ObjectGuid::GetCounter(), Object::GetGUID(), and m_CreatureScriptStore.
|
overridevirtual |
Reimplemented from ZoneScript.
References GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), ObjectGuid::GetCounter(), GameObject::GetGoType(), Object::GetGUID(), GameObject::GetSpawnId(), and m_GoScriptStore.
|
overridevirtual |
Reimplemented from ZoneScript.
References GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), ObjectGuid::GetCounter(), GameObject::GetGoType(), Object::GetGUID(), GameObject::GetSpawnId(), and m_GoScriptStore.
|
protected |
|
inlineprotectedvirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPGH, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Referenced by HandlePlayerLeaveZone().
References ObjectAccessor::FindPlayer(), m_players, and m_sendUpdate.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::FactionTakeOver(), OutdoorPvPTF::ResetZoneToTeamControlled(), 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 |
References ASSERT, Map::Instanceable(), m_map, AreaTableEntry::mapid, sAreaTableStore, and sMapMgr.
Referenced by OutdoorPvPEP::SetupOutdoorPvP(), OutdoorPvPGH::SetupOutdoorPvP(), OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPSI::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlinevirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPGH, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Referenced by OutdoorPvPMgr::InitOutdoorPvP().
void OutdoorPvP::TeamApplyBuff | ( | TeamId | teamId, |
uint32 | spellId, | ||
uint32 | spellId2 = 0 , |
||
Player * | sameMapPlr = nullptr |
||
) |
References TEAM_ALLIANCE, TEAM_HORDE, and TeamCastSpell().
Referenced by OPvPCapturePointNA::FactionTakeOver(), OutdoorPvPSI::HandleAreaTrigger(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
|
protected |
References WorldObject::FindMap(), ObjectAccessor::FindPlayer(), and m_players.
Referenced by TeamApplyBuff(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
|
virtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
References m_capturePoints.
Referenced by OutdoorPvPEP::Update(), OutdoorPvPHP::Update(), OutdoorPvPTF::Update(), and OutdoorPvPZM::Update().
|
friend |
|
protected |
Referenced by AddCapturePoint(), CanTalkTo(), DeleteSpawns(), OutdoorPvPEP::FillInitialWorldStates(), OutdoorPvPHP::FillInitialWorldStates(), OutdoorPvPTF::FillInitialWorldStates(), OutdoorPvPZM::FillInitialWorldStates(), GetCapturePoint(), HandleCustomSpell(), HandleDropFlag(), HandleGossipOption(), HandleOpenGo(), HandlePlayerLeaveZone(), IsInsideObjective(), OutdoorPvPTF::ResetZoneToTeamControlled(), and Update().
|
protected |
Referenced by DeleteSpawns(), OnCreatureCreate(), and OnCreatureRemove().
|
protected |
Referenced by DeleteSpawns(), OnGameObjectCreate(), and OnGameObjectRemove().
|
protected |
Referenced by GetMap(), and SetMapFromZone().
|
protected |
|
protected |
Referenced by SendUpdateWorldState().
|
protected |