|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <OutdoorPvP.h>
Public Types | |
| typedef std::map< uint32, OPvPCapturePoint * > | OPvPCapturePointMap |
Protected Member Functions | |
| void | AddCapturePoint (OPvPCapturePoint *cp) |
| void | BroadcastPacket (WorldPacket &data) const |
| OPvPCapturePoint * | GetCapturePoint (uint32 lowguid) const |
| virtual void | HandlePlayerEnterZone (Player *player, uint32 zone) |
| virtual void | HandlePlayerLeaveZone (Player *player, uint32 zone) |
| virtual void | HandlePlayerResurrects (Player *player, uint32 zone) |
| bool | HasPlayer (Player const *player) const |
| void | RegisterZone (uint32 zoneid) |
| virtual void | SendRemoveWorldStates (Player *) |
| void | TeamCastSpell (TeamId team, int32 spellId) |
Protected Attributes | |
| OPvPCapturePointMap | m_capturePoints |
| PlayerSet | m_players [2] |
| bool | m_sendUpdate |
| uint32 | m_TypeId |
Friends | |
| class | OutdoorPvPMgr |
Definition at line 176 of file OutdoorPvP.h.
| typedef std::map<uint32, OPvPCapturePoint*> OutdoorPvP::OPvPCapturePointMap |
Definition at line 190 of file OutdoorPvP.h.
| OutdoorPvP::OutdoorPvP | ( | ) |
Definition at line 222 of file OutdoorPvP.cpp.
References m_sendUpdate, and m_TypeId.
|
virtual |
Definition at line 224 of file OutdoorPvP.cpp.
References DeleteSpawns().
|
inlineprotected |
Definition at line 256 of file OutdoorPvP.h.
References OPvPCapturePoint::m_capturePointGUID, and m_capturePoints.
Referenced by OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlinevirtual |
Definition at line 224 of file OutdoorPvP.h.
|
protected |
Definition at line 548 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), and m_players.
|
virtual |
Definition at line 500 of file OutdoorPvP.cpp.
References m_capturePoints.
| void OutdoorPvP::DeleteSpawns | ( | ) |
Definition at line 212 of file OutdoorPvP.cpp.
References m_capturePoints.
Referenced by ~OutdoorPvP().
|
inlinevirtual |
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 192 of file OutdoorPvP.h.
Referenced by Player::SendInitWorldStates().
|
inlineprotected |
Definition at line 261 of file OutdoorPvP.h.
References m_capturePoints.
Referenced by OnGameObjectCreate(), and OnGameObjectRemove().
|
inline |
Definition at line 226 of file OutdoorPvP.h.
References m_TypeId.
Referenced by Player::SendInitWorldStates().
Reimplemented in OutdoorPvPSI.
Definition at line 543 of file OutdoorPvP.cpp.
|
virtual |
Reimplemented in OutdoorPvPSI.
Definition at line 466 of file OutdoorPvP.cpp.
References m_capturePoints.
Reimplemented in OutdoorPvPSI.
Definition at line 509 of file OutdoorPvP.cpp.
References m_capturePoints.
Definition at line 491 of file OutdoorPvP.cpp.
References m_capturePoints.
Definition at line 422 of file OutdoorPvP.cpp.
References Player::GetGroup(), Object::GetTypeId(), HandleKillImpl(), Player::IsAtGroupRewardDistance(), IsInsideObjective(), Player::IsOutdoorPvPActive(), GroupReference::next(), and TYPEID_UNIT.
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, and OutdoorPvPZM.
Definition at line 218 of file OutdoorPvP.h.
Referenced by HandleKill().
Definition at line 482 of file OutdoorPvP.cpp.
References m_capturePoints.
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 229 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_players.
Referenced by OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), and OutdoorPvPZM::HandlePlayerEnterZone().
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 234 of file OutdoorPvP.cpp.
References Object::GetGUID(), WorldObject::GetName(), Player::GetSession(), Player::GetTeamId(), m_capturePoints, m_players, WorldSession::PlayerLogout(), SendRemoveWorldStates(), and SF_LOG_DEBUG.
Referenced by OutdoorPvPHP::HandlePlayerLeaveZone(), OutdoorPvPNA::HandlePlayerLeaveZone(), OutdoorPvPSI::HandlePlayerLeaveZone(), OutdoorPvPTF::HandlePlayerLeaveZone(), and OutdoorPvPZM::HandlePlayerLeaveZone().
Definition at line 246 of file OutdoorPvP.cpp.
|
protected |
Definition at line 562 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_players.
| bool OutdoorPvP::IsInsideObjective | ( | Player * | player | ) | const |
Definition at line 451 of file OutdoorPvP.cpp.
References m_capturePoints.
Referenced by HandleKill().
|
inlinevirtual |
Reimplemented from ZoneScript.
Definition at line 208 of file OutdoorPvP.h.
|
virtual |
Reimplemented from ZoneScript.
Definition at line 590 of file OutdoorPvP.cpp.
References GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), GameObject::GetDBTableGUIDLow(), and GameObject::GetGoType().
|
virtual |
Reimplemented from ZoneScript.
Definition at line 599 of file OutdoorPvP.cpp.
References GAMEOBJECT_TYPE_CAPTURE_POINT, GetCapturePoint(), GameObject::GetDBTableGUIDLow(), and GameObject::GetGoType().
|
protected |
Definition at line 557 of file OutdoorPvP.cpp.
References sOutdoorPvPMgr.
Referenced by OutdoorPvPHP::SetupOutdoorPvP(), OutdoorPvPNA::SetupOutdoorPvP(), OutdoorPvPSI::SetupOutdoorPvP(), OutdoorPvPTF::SetupOutdoorPvP(), and OutdoorPvPZM::SetupOutdoorPvP().
|
inlineprotectedvirtual |
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 247 of file OutdoorPvP.h.
Referenced by HandlePlayerLeaveZone().
Definition at line 381 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), m_players, and m_sendUpdate.
Referenced by OutdoorPvPHP::Update(), OutdoorPvPTF::Update(), and OutdoorPvPSI::UpdateWorldState().
|
inlinevirtual |
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 204 of file OutdoorPvP.h.
Referenced by OutdoorPvPMgr::InitOutdoorPvP().
Definition at line 584 of file OutdoorPvP.cpp.
References OTHER_TEAM, and TeamCastSpell().
Referenced by OutdoorPvPSI::HandleAreaTrigger(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
Definition at line 568 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), and m_players.
Referenced by TeamApplyBuff(), OutdoorPvPHP::Update(), and OutdoorPvPTF::Update().
|
virtual |
Reimplemented in OutdoorPvPHP, OutdoorPvPNA, OutdoorPvPSI, OutdoorPvPTF, and OutdoorPvPZM.
Definition at line 248 of file OutdoorPvP.cpp.
References m_capturePoints.
Referenced by OutdoorPvPHP::Update(), OutdoorPvPTF::Update(), and OutdoorPvPZM::Update().
|
friend |
|
protected |
Definition at line 238 of file OutdoorPvP.h.
Referenced by AddCapturePoint(), CanTalkTo(), DeleteSpawns(), OutdoorPvPHP::FillInitialWorldStates(), OutdoorPvPTF::FillInitialWorldStates(), OutdoorPvPZM::FillInitialWorldStates(), GetCapturePoint(), HandleCustomSpell(), HandleDropFlag(), HandleGossipOption(), HandleOpenGo(), HandlePlayerLeaveZone(), IsInsideObjective(), and Update().
|
protected |
Definition at line 240 of file OutdoorPvP.h.
Referenced by BroadcastPacket(), HandlePlayerEnterZone(), HandlePlayerLeaveZone(), HasPlayer(), SendUpdateWorldState(), and TeamCastSpell().
|
protected |
Definition at line 244 of file OutdoorPvP.h.
Referenced by OutdoorPvP(), and SendUpdateWorldState().
|
protected |
Definition at line 242 of file OutdoorPvP.h.
Referenced by GetTypeId(), OutdoorPvP(), OutdoorPvPHP::OutdoorPvPHP(), OutdoorPvPNA::OutdoorPvPNA(), OutdoorPvPSI::OutdoorPvPSI(), OutdoorPvPTF::OutdoorPvPTF(), and OutdoorPvPZM::OutdoorPvPZM().