![]() |
TrinityCore
|
#include <Battlefield.h>
Inheritance diagram for BfCapturePoint:Public Member Functions | |
| BfCapturePoint (Battlefield *bf) | |
| BfCapturePoint (BfCapturePoint const &)=delete | |
| BfCapturePoint (BfCapturePoint &&)=delete | |
| BfCapturePoint & | operator= (BfCapturePoint const &)=delete |
| BfCapturePoint & | operator= (BfCapturePoint &&)=delete |
| virtual | ~BfCapturePoint () |
| virtual void | FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &) |
| void | SendUpdateWorldState (uint32 field, uint32 value) |
| void | SendObjectiveComplete (uint32 id, ObjectGuid guid) |
| virtual bool | HandlePlayerEnter (Player *player) |
| virtual GuidSet::iterator | HandlePlayerLeave (Player *player) |
| bool | IsInsideObjective (Player *player) const |
| virtual bool | Update (uint32 diff) |
| virtual void | ChangeTeam (TeamId) |
| virtual void | SendChangePhase () |
| bool | SetCapturePointData (GameObject *capturePoint) |
| GameObject * | GetCapturePointGo () |
| uint32 | GetCapturePointEntry () const |
| TeamId | GetTeamId () const |
Protected Member Functions | |
| bool | DelCapturePoint () |
Protected Attributes | |
| GuidSet | m_activePlayers [PVP_TEAMS_COUNT] |
| float | m_maxValue |
| float | m_minValue |
| float | m_maxSpeed |
| float | m_value |
| TeamId | m_team |
| BattlefieldObjectiveStates | m_OldState |
| BattlefieldObjectiveStates | m_State |
| uint32 | m_neutralValuePct |
| Battlefield * | m_Bf |
| uint32 | m_capturePointEntry |
| ObjectGuid | m_capturePointGUID |
Definition at line 85 of file Battlefield.h.
|
explicit |
Definition at line 867 of file Battlefield.cpp.
References BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL, m_capturePointEntry, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, m_OldState, m_State, m_team, m_value, and TEAM_NEUTRAL.
|
delete |
|
delete |
|
virtualdefault |
|
inlinevirtual |
Reimplemented in WintergraspCapturePoint.
Definition at line 114 of file Battlefield.h.
Referenced by Update().
|
protected |
Definition at line 970 of file Battlefield.cpp.
References ObjectGuid::Clear(), Battlefield::GetGameObject(), ObjectGuid::IsEmpty(), m_Bf, m_capturePointGUID, and GameObject::SetRespawnTime().
|
inlinevirtual |
Definition at line 96 of file Battlefield.h.
|
inline |
Definition at line 119 of file Battlefield.h.
Referenced by Battlefield::AddCapturePoint().
| GameObject * BfCapturePoint::GetCapturePointGo | ( | ) |
Definition at line 965 of file Battlefield.cpp.
References Battlefield::GetGameObject(), m_Bf, and m_capturePointGUID.
|
inline |
Definition at line 121 of file Battlefield.h.
|
virtual |
Definition at line 882 of file Battlefield.cpp.
References Battlefield::GetGameObject(), Object::GetGUID(), Player::GetTeamId(), ObjectGuid::IsEmpty(), m_activePlayers, m_Bf, m_capturePointGUID, m_maxValue, m_neutralValuePct, m_value, and Player::SendUpdateWorldState().
Referenced by Update().
|
virtual |
Definition at line 897 of file Battlefield.cpp.
References Battlefield::GetGameObject(), Object::GetGUID(), Player::GetTeamId(), ObjectGuid::IsEmpty(), m_activePlayers, m_Bf, m_capturePointGUID, and Player::SendUpdateWorldState().
Referenced by Update().
| bool BfCapturePoint::IsInsideObjective | ( | Player * | player | ) | const |
Definition at line 1137 of file Battlefield.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.
|
delete |
|
delete |
|
virtual |
Definition at line 912 of file Battlefield.cpp.
References Battlefield::GetGameObject(), m_Bf, m_capturePointGUID, m_maxValue, m_neutralValuePct, m_value, and SendUpdateWorldState().
Referenced by Update().
| void BfCapturePoint::SendObjectiveComplete | ( | uint32 | id, |
| ObjectGuid | guid | ||
| ) |
Definition at line 1116 of file Battlefield.cpp.
References BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, ObjectAccessor::FindPlayer(), m_activePlayers, m_State, TEAM_ALLIANCE, and TEAM_HORDE.
Definition at line 1108 of file Battlefield.cpp.
References ObjectAccessor::FindPlayer(), m_activePlayers, and PVP_TEAMS_COUNT.
Referenced by SendChangePhase().
| bool BfCapturePoint::SetCapturePointData | ( | GameObject * | capturePoint | ) |
Definition at line 928 of file Battlefield.cpp.
References ASSERT, BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, GameObjectTemplate::capturePoint, GAMEOBJECT_TYPE_CAPTURE_POINT, Object::GetEntry(), GameObject::GetGOInfo(), Object::GetGUID(), m_capturePointEntry, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, m_State, m_team, m_value, GameObjectTemplate::maxTime, GameObjectTemplate::minTime, GameObjectTemplate::neutralPercent, TC_LOG_DEBUG, TC_LOG_ERROR, TEAM_ALLIANCE, and GameObjectTemplate::type.
Referenced by BattlefieldWG::OnGameObjectCreate().
|
virtual |
Definition at line 986 of file Battlefield.cpp.
References ALLIANCE, BATTLEFIELD_OBJECTIVE_UPDATE_INTERVAL, BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, ChangeTeam(), ObjectAccessor::FindPlayer(), Battlefield::GetGameObject(), HandlePlayerEnter(), HandlePlayerLeave(), HORDE, m_activePlayers, m_Bf, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_OldState, m_State, m_team, m_value, PVP_TEAMS_COUNT, SendChangePhase(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and Cell::VisitWorldObjects().
|
protected |
Definition at line 127 of file Battlefield.h.
Referenced by HandlePlayerEnter(), HandlePlayerLeave(), IsInsideObjective(), SendObjectiveComplete(), SendUpdateWorldState(), and Update().
|
protected |
Definition at line 148 of file Battlefield.h.
Referenced by DelCapturePoint(), GetCapturePointGo(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), Update(), and WintergraspCapturePoint::WintergraspCapturePoint().
|
protected |
Definition at line 151 of file Battlefield.h.
Referenced by BfCapturePoint(), and SetCapturePointData().
|
protected |
Definition at line 154 of file Battlefield.h.
Referenced by DelCapturePoint(), GetCapturePointGo(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Definition at line 134 of file Battlefield.h.
Referenced by BfCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Definition at line 130 of file Battlefield.h.
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Definition at line 131 of file Battlefield.h.
Referenced by BfCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Definition at line 145 of file Battlefield.h.
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), and SetCapturePointData().
|
protected |
Definition at line 141 of file Battlefield.h.
Referenced by BfCapturePoint(), and Update().
|
protected |
Definition at line 142 of file Battlefield.h.
Referenced by BfCapturePoint(), SendObjectiveComplete(), SetCapturePointData(), and Update().
|
protected |
Definition at line 138 of file Battlefield.h.
Referenced by BfCapturePoint(), WintergraspCapturePoint::ChangeTeam(), WintergraspCapturePoint::GetTeam(), SetCapturePointData(), Update(), and WintergraspCapturePoint::WintergraspCapturePoint().
|
protected |
Definition at line 137 of file Battlefield.h.
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().