![]() |
TrinityCore
|
#include <OutdoorPvP.h>
Inheritance diagram for OPvPCapturePoint:Public Attributes | |
| ObjectGuid::LowType | m_capturePointSpawnId |
| GameObject * | m_capturePoint |
Protected Member Functions | |
| bool | AddObject (uint32 type, uint32 entry, uint32 map, Position const &pos, QuaternionData const &rot) |
| bool | AddCreature (uint32 type, uint32 entry, uint32 map, Position const &pos, TeamId teamId=TEAM_NEUTRAL, uint32 spawntimedelay=0) |
| bool | DelObject (uint32 type) |
| bool | DelCreature (uint32 type) |
| bool | DelCapturePoint () |
Protected Attributes | |
| GuidSet | m_activePlayers [2] |
| float | m_maxValue |
| float | m_minValue |
| float | m_maxSpeed |
| float | m_value |
| TeamId | m_team |
| ObjectiveStates | m_OldState |
| ObjectiveStates | m_State |
| uint32 | m_neutralValuePct |
| OutdoorPvP * | m_PvP |
| std::map< uint32, ObjectGuid::LowType > | m_Objects |
| std::map< uint32, ObjectGuid::LowType > | m_Creatures |
| std::map< ObjectGuid::LowType, uint32 > | m_ObjectTypes |
| std::map< ObjectGuid::LowType, uint32 > | m_CreatureTypes |
Definition at line 86 of file OutdoorPvP.h.
| OPvPCapturePoint::OPvPCapturePoint | ( | OutdoorPvP * | pvp | ) |
Definition at line 53 of file OutdoorPvP.cpp.
|
inlinevirtual |
Definition at line 92 of file OutdoorPvP.h.
| void OPvPCapturePoint::AddCre | ( | uint32 | type, |
| ObjectGuid::LowType | guid, | ||
| uint32 | entry = 0 |
||
| ) |
Definition at line 104 of file OutdoorPvP.cpp.
References SpawnData::id, m_Creatures, m_CreatureTypes, and sObjectMgr.
Referenced by AddCreature().
|
protected |
Definition at line 129 of file OutdoorPvP.cpp.
References AddCre(), and sObjectMgr.
Referenced by OPvPCapturePointZM_Graveyard::OPvPCapturePointZM_Graveyard(), OPvPCapturePointNA::SpawnNPCsForTeam(), OPvPCapturePointEP_PWT::SummonFlightMaster(), and OPvPCapturePointEP_EWT::SummonSupportUnitAtNorthpassTower().
| void OPvPCapturePoint::AddGO | ( | uint32 | type, |
| ObjectGuid::LowType | guid, | ||
| uint32 | entry = 0 |
||
| ) |
Definition at line 90 of file OutdoorPvP.cpp.
References SpawnData::id, m_Objects, m_ObjectTypes, and sObjectMgr.
Referenced by AddObject().
|
protected |
Definition at line 118 of file OutdoorPvP.cpp.
References AddGO(), and sObjectMgr.
Referenced by OPvPCapturePointNA::HandleOpenGo(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), OPvPCapturePointEP_CGT::OPvPCapturePointEP_CGT(), OPvPCapturePointEP_EWT::OPvPCapturePointEP_EWT(), OPvPCapturePointEP_NPT::OPvPCapturePointEP_NPT(), OPvPCapturePointEP_PWT::OPvPCapturePointEP_PWT(), OPvPCapturePointHP::OPvPCapturePointHP(), OPvPCapturePointZM_Graveyard::OPvPCapturePointZM_Graveyard(), OPvPCapturePointNA::SpawnGOsForTeam(), and OPvPCapturePointEP_NPT::SummonGO().
|
inlinevirtual |
Reimplemented in OPvPCapturePointZM_Graveyard.
Definition at line 124 of file OutdoorPvP.h.
|
pure virtual |
Implemented in OPvPCapturePointEP_EWT, OPvPCapturePointEP_NPT, OPvPCapturePointEP_CGT, OPvPCapturePointEP_PWT, OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, OPvPCapturePointZM_Beacon, and OPvPCapturePointZM_Graveyard.
Referenced by Update().
|
inlinevirtual |
Definition at line 118 of file OutdoorPvP.h.
Referenced by Update().
|
protected |
Definition at line 193 of file OutdoorPvP.cpp.
References GameObject::Delete(), m_capturePoint, m_capturePointSpawnId, GameObject::SetRespawnTime(), and sObjectMgr.
Referenced by DeleteSpawns().
|
protected |
Definition at line 166 of file OutdoorPvP.cpp.
References Creature::DeleteFromDB(), m_Creatures, m_CreatureTypes, and TC_LOG_DEBUG.
Referenced by OPvPCapturePointEP_PWT::ChangeState(), DeleteSpawns(), OPvPCapturePointNA::DeSpawnNPCs(), OPvPCapturePointEP_PWT::SummonFlightMaster(), and OPvPCapturePointEP_EWT::SummonSupportUnitAtNorthpassTower().
|
virtual |
Definition at line 207 of file OutdoorPvP.cpp.
References DelCapturePoint(), DelCreature(), DelObject(), m_Creatures, and m_Objects.
|
protected |
Definition at line 181 of file OutdoorPvP.cpp.
References GameObject::DeleteFromDB(), m_Objects, and m_ObjectTypes.
Referenced by OPvPCapturePointEP_NPT::ChangeState(), DeleteSpawns(), OPvPCapturePointNA::DeSpawnGOs(), OPvPCapturePointNA::HandleOpenGo(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), and OPvPCapturePointEP_NPT::SummonGO().
|
inlinevirtual |
Reimplemented in OPvPCapturePointEP_EWT, OPvPCapturePointEP_NPT, OPvPCapturePointEP_CGT, OPvPCapturePointEP_PWT, OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, OPvPCapturePointZM_Beacon, and OPvPCapturePointZM_Graveyard.
Definition at line 94 of file OutdoorPvP.h.
|
virtual |
Reimplemented in OPvPCapturePointNA.
Definition at line 494 of file OutdoorPvP.cpp.
References Player::IsOutdoorPvPActive().
Reimplemented in OPvPCapturePointZM_Graveyard.
Definition at line 126 of file OutdoorPvP.h.
Reimplemented in OPvPCapturePointZM_Graveyard.
Definition at line 122 of file OutdoorPvP.h.
|
virtual |
Reimplemented in OPvPCapturePointNA, and OPvPCapturePointZM_Graveyard.
Definition at line 537 of file OutdoorPvP.cpp.
References GameObject::GetSpawnId(), and m_ObjectTypes.
Referenced by OPvPCapturePointNA::HandleOpenGo(), and OPvPCapturePointZM_Graveyard::HandleOpenGo().
|
virtual |
Definition at line 59 of file OutdoorPvP.cpp.
References GameObjectTemplate::capturePoint, GameObject::GetGOInfo(), Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_capturePoint, m_maxValue, m_neutralValuePct, m_value, Player::SendUpdateWorldState(), GameObjectTemplate::worldState1, GameObjectTemplate::worldstate2, and GameObjectTemplate::worldstate3.
Referenced by Update().
|
virtual |
Definition at line 70 of file OutdoorPvP.cpp.
References GameObjectTemplate::capturePoint, GameObject::GetGOInfo(), Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_capturePoint, Player::SendUpdateWorldState(), and GameObjectTemplate::worldState1.
Referenced by Update().
| bool OPvPCapturePoint::IsInsideObjective | ( | Player * | player | ) | const |
Definition at line 479 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.
|
virtual |
Definition at line 77 of file OutdoorPvP.cpp.
References GameObjectTemplate::capturePoint, GameObject::GetGOInfo(), m_capturePoint, m_maxValue, m_neutralValuePct, m_value, SendUpdateWorldState(), GameObjectTemplate::worldState1, GameObjectTemplate::worldstate2, and GameObjectTemplate::worldstate3.
Referenced by Update().
| void OPvPCapturePoint::SendObjectiveComplete | ( | uint32 | id, |
| ObjectGuid | guid | ||
| ) |
Definition at line 420 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), m_activePlayers, m_State, OBJECTIVESTATE_ALLIANCE, and OBJECTIVESTATE_HORDE.
Referenced by OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), and OPvPCapturePointHP::ChangeState().
Definition at line 409 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), and m_activePlayers.
Referenced by SendChangePhase().
| bool OPvPCapturePoint::SetCapturePointData | ( | uint32 | entry, |
| uint32 | map, | ||
| Position const & | pos, | ||
| QuaternionData const & | rot | ||
| ) |
Definition at line 140 of file OutdoorPvP.cpp.
References CalculatePct(), GameObjectTemplate::capturePoint, GAMEOBJECT_TYPE_CAPTURE_POINT, m_capturePointSpawnId, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, GameObjectTemplate::maxTime, GameObjectTemplate::minTime, GameObjectTemplate::neutralPercent, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by OPvPCapturePointEP_CGT::OPvPCapturePointEP_CGT(), OPvPCapturePointEP_EWT::OPvPCapturePointEP_EWT(), OPvPCapturePointEP_NPT::OPvPCapturePointEP_NPT(), OPvPCapturePointEP_PWT::OPvPCapturePointEP_PWT(), OPvPCapturePointHP::OPvPCapturePointHP(), OPvPCapturePointNA::OPvPCapturePointNA(), OPvPCapturePointTF::OPvPCapturePointTF(), and OPvPCapturePointZM_Beacon::OPvPCapturePointZM_Beacon().
|
virtual |
Reimplemented in OPvPCapturePointNA, OPvPCapturePointTF, and OPvPCapturePointZM_Graveyard.
Definition at line 278 of file OutdoorPvP.cpp.
References ALLIANCE, GameObjectTemplate::capturePoint, ChangeState(), ChangeTeam(), ObjectAccessor::FindPlayer(), GameObject::GetGOInfo(), Object::GetGUID(), Player::GetTeamId(), HandlePlayerEnter(), HandlePlayerLeave(), HORDE, Player::IsOutdoorPvPActive(), GameObject::IsWithinDistInMap(), m_activePlayers, m_capturePoint, m_maxSpeed, m_maxValue, m_minValue, m_OldState, m_State, m_team, m_value, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL, GameObjectTemplate::radius, SendChangePhase(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and Cell::VisitWorldObjects().
Referenced by OPvPCapturePointNA::Update(), and OPvPCapturePointTF::Update().
|
protected |
Definition at line 152 of file OutdoorPvP.h.
Referenced by OPvPCapturePointTF::ChangeState(), HandlePlayerEnter(), HandlePlayerLeave(), IsInsideObjective(), SendObjectiveComplete(), SendUpdateWorldState(), Update(), OPvPCapturePointNA::Update(), and OPvPCapturePointTF::Update().
| GameObject* OPvPCapturePoint::m_capturePoint |
Definition at line 132 of file OutdoorPvP.h.
Referenced by DelCapturePoint(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), and Update().
| ObjectGuid::LowType OPvPCapturePoint::m_capturePointSpawnId |
Definition at line 130 of file OutdoorPvP.h.
Referenced by OutdoorPvP::AddCapturePoint(), OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), DelCapturePoint(), and SetCapturePointData().
|
protected |
Definition at line 179 of file OutdoorPvP.h.
Referenced by AddCre(), DelCreature(), DeleteSpawns(), and OPvPCapturePointNA::GetAliveGuardsCount().
|
protected |
Definition at line 181 of file OutdoorPvP.h.
Referenced by AddCre(), OPvPCapturePointZM_Graveyard::CanTalkTo(), DelCreature(), and OPvPCapturePointZM_Graveyard::HandleGossipOption().
|
protected |
Definition at line 159 of file OutdoorPvP.h.
Referenced by SetCapturePointData(), and Update().
|
protected |
Definition at line 155 of file OutdoorPvP.h.
Referenced by HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Definition at line 156 of file OutdoorPvP.h.
Referenced by SetCapturePointData(), and Update().
|
protected |
Definition at line 171 of file OutdoorPvP.h.
Referenced by HandlePlayerEnter(), SendChangePhase(), and SetCapturePointData().
|
protected |
Definition at line 178 of file OutdoorPvP.h.
Referenced by AddGO(), OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), DeleteSpawns(), DelObject(), and OPvPCapturePointEP_NPT::SummonGO().
|
protected |
Definition at line 180 of file OutdoorPvP.h.
Referenced by AddGO(), DelObject(), and HandleOpenGo().
|
protected |
Definition at line 167 of file OutdoorPvP.h.
Referenced by OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), Update(), and OPvPCapturePointZM_Graveyard::Update().
|
protected |
Definition at line 174 of file OutdoorPvP.h.
Referenced by OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), OPvPCapturePointNA::FactionTakeOver(), OPvPCapturePointNA::GetAliveGuardsCount(), OPvPCapturePointZM_Graveyard::HandleOpenGo(), OPvPCapturePointNA::Update(), OPvPCapturePointTF::Update(), OPvPCapturePointNA::UpdateHalaaWorldState(), OPvPCapturePointEP_EWT::UpdateTowerState(), OPvPCapturePointEP_NPT::UpdateTowerState(), OPvPCapturePointEP_CGT::UpdateTowerState(), OPvPCapturePointEP_PWT::UpdateTowerState(), OPvPCapturePointTF::UpdateTowerState(), OPvPCapturePointZM_Beacon::UpdateTowerState(), OPvPCapturePointZM_Graveyard::UpdateTowerState(), and OPvPCapturePointNA::UpdateWyvernRoostWorldState().
|
protected |
Definition at line 168 of file OutdoorPvP.h.
Referenced by OPvPCapturePointEP_EWT::ChangeState(), OPvPCapturePointEP_NPT::ChangeState(), OPvPCapturePointEP_CGT::ChangeState(), OPvPCapturePointEP_PWT::ChangeState(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), OPvPCapturePointHP::FillInitialWorldStates(), SendObjectiveComplete(), Update(), and OPvPCapturePointZM_Graveyard::Update().
|
protected |
Definition at line 164 of file OutdoorPvP.h.
Referenced by Update().
|
protected |
Definition at line 162 of file OutdoorPvP.h.
Referenced by HandlePlayerEnter(), SendChangePhase(), and Update().