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 | |
void | BroadcastPacket (WorldPacket &data) const |
virtual void | SendRemoveWorldStates (Player *) |
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 | _capturePoints |
std::array< PlayerSet, 2 > | _players |
uint32 | _typeId {} |
bool | _sendUpdate { true } |
Map * | _map {} |
std::unordered_map< ObjectGuid::LowType, GameObject * > | _goScriptStore |
std::unordered_map< ObjectGuid::LowType, Creature * > | _creatureScriptStore |
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 |
|
default |
|
override |
References DeleteSpawns().
|
inlineprotected |
References _capturePoints, and OPvPCapturePoint::m_capturePointSpawnId.
Referenced by OutdoorPvPEP::SetupOutdoorPvP(), OutdoorPvPGH::SetupOutdoorPvP(), OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlinevirtual |
|
protected |
References _players, and ObjectAccessor::FindPlayer().
|
virtual |
References _capturePoints.
void OutdoorPvP::DeleteSpawns | ( | ) |
References _capturePoints, _creatureScriptStore, and _goScriptStore.
Referenced by ~OutdoorPvP().
|
inlinevirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Referenced by Player::SendInitWorldStates().
|
protected |
References _capturePoints.
Referenced by OnGameObjectCreate(), and OnGameObjectRemove().
|
inline |
|
inline |
Reimplemented in OutdoorPvPSI.
|
virtual |
Reimplemented in OutdoorPvPSI.
References _capturePoints.
Reimplemented in OutdoorPvPSI.
References _capturePoints.
|
virtual |
References _capturePoints.
Reimplemented in OutdoorPvPNA.
References ASSERT, Player::GetGroup(), HandleKillImpl(), Player::IsAtGroupRewardDistance(), Object::IsCreature(), IsInsideObjective(), Player::IsOutdoorPvPActive(), and GroupReference::next().
|
virtual |
References _capturePoints.
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
References _players, Object::GetGUID(), and Player::GetTeamId().
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 _capturePoints, _players, Object::GetGUID(), WorldObject::GetName(), Player::GetSession(), Player::GetTeamId(), LOG_DEBUG, WorldSession::PlayerLogout(), and SendRemoveWorldStates().
Referenced by OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), and OutdoorPvPZM::HandlePlayerLeaveZone().
|
protected |
References _players, Object::GetGUID(), and Player::GetTeamId().
bool OutdoorPvP::IsInsideObjective | ( | Player * | player | ) | const |
References _capturePoints.
Referenced by HandleKill().
|
overridevirtual |
Reimplemented from ZoneScript.
References _creatureScriptStore, ObjectGuid::GetCounter(), and Object::GetGUID().
|
overridevirtual |
Reimplemented from ZoneScript.
References _creatureScriptStore, ObjectGuid::GetCounter(), and Object::GetGUID().
|
overridevirtual |
Reimplemented from ZoneScript.
References _goScriptStore, GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), ObjectGuid::GetCounter(), GameObject::GetGoType(), Object::GetGUID(), and GameObject::GetSpawnId().
|
overridevirtual |
Reimplemented from ZoneScript.
References _goScriptStore, GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), ObjectGuid::GetCounter(), GameObject::GetGoType(), Object::GetGUID(), and GameObject::GetSpawnId().
|
protected |
|
inlineprotectedvirtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPGH, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Referenced by HandlePlayerLeaveZone().
References _players, _sendUpdate, and ObjectAccessor::FindPlayer().
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 _map, ASSERT, Map::Instanceable(), 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.
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 _players, WorldObject::FindMap(), and ObjectAccessor::FindPlayer().
Referenced by TeamApplyBuff(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
|
virtual |
Reimplemented in OutdoorPvPEP, OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
References _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 |