AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Battlefield.h"
Public Member Functions | |
BfCapturePoint (Battlefield *bf) | |
virtual | ~BfCapturePoint () |
virtual void | FillInitialWorldStates (WorldPacket &) |
void | SendUpdateWorldState (uint32 field, uint32 value) |
void | SendObjectiveComplete (uint32 id, ObjectGuid guid) |
virtual bool | HandlePlayerEnter (Player *player) |
virtual GuidUnorderedSet::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 () |
GameObject * | GetCapturePointGo (WorldObject *obj) |
TeamId | GetTeamId () |
Protected Member Functions | |
bool | DelCapturePoint () |
Protected Attributes | |
GuidUnorderedSet | m_activePlayers [2] |
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_capturePoint |
BfCapturePoint::BfCapturePoint | ( | Battlefield * | bf | ) |
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.
|
inlinevirtual |
|
inlinevirtual |
|
protected |
References ObjectGuid::Clear(), GetCapturePointGo(), and m_capturePoint.
|
inlinevirtual |
GameObject * BfCapturePoint::GetCapturePointGo | ( | ) |
References Battlefield::GetGameObject(), m_Bf, and m_capturePoint.
Referenced by DelCapturePoint(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), and Update().
GameObject * BfCapturePoint::GetCapturePointGo | ( | WorldObject * | obj | ) |
References ObjectAccessor::GetGameObject(), and m_capturePoint.
|
virtual |
References GetCapturePointGo(), Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_maxValue, m_neutralValuePct, m_value, and Player::SendUpdateWorldState().
Referenced by Update().
|
virtual |
References GetCapturePointGo(), Object::GetGUID(), Player::GetTeamId(), m_activePlayers, and Player::SendUpdateWorldState().
Referenced by Update().
bool BfCapturePoint::IsInsideObjective | ( | Player * | player | ) | const |
References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.
|
virtual |
References GameObjectTemplate::capturePoint, ObjectAccessor::FindPlayer(), GetCapturePointGo(), GameObject::GetGOInfo(), m_activePlayers, m_maxValue, m_neutralValuePct, m_value, GameObjectTemplate::worldState1, GameObjectTemplate::worldstate2, and GameObjectTemplate::worldstate3.
Referenced by Update().
void BfCapturePoint::SendObjectiveComplete | ( | uint32 | id, |
ObjectGuid | guid | ||
) |
References BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, ObjectAccessor::FindPlayer(), m_activePlayers, and m_State.
References ObjectAccessor::FindPlayer(), and m_activePlayers.
bool BfCapturePoint::SetCapturePointData | ( | GameObject * | capturePoint | ) |
References ASSERT, BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, GameObjectTemplate::capturePoint, GAMEOBJECT_TYPE_CAPTURE_POINT, Object::GetEntry(), GameObject::GetGOInfo(), Object::GetGUID(), LOG_DEBUG, LOG_ERROR, m_capturePoint, m_capturePointEntry, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, m_State, m_team, m_value, GameObjectTemplate::maxTime, GameObjectTemplate::minTime, GameObjectTemplate::neutralPercent, TEAM_ALLIANCE, and GameObjectTemplate::type.
Referenced by BattlefieldWG::OnGameObjectCreate().
|
virtual |
References 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, GameObjectTemplate::capturePoint, ChangeTeam(), ObjectAccessor::FindPlayer(), GetCapturePointGo(), GameObject::GetGOInfo(), HandlePlayerEnter(), HandlePlayerLeave(), GameObject::IsWithinDistInMap(), m_activePlayers, m_maxSpeed, m_maxValue, m_minValue, m_OldState, m_State, m_team, m_value, GameObjectTemplate::radius, SendChangePhase(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and Cell::VisitWorldObjects().
|
protected |
|
protected |
Referenced by GetCapturePointGo(), and WintergraspCapturePoint::WintergraspCapturePoint().
|
protected |
Referenced by DelCapturePoint(), GetCapturePointGo(), and SetCapturePointData().
|
protected |
Referenced by BfCapturePoint(), and SetCapturePointData().
|
protected |
Referenced by BfCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Referenced by BfCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), and SetCapturePointData().
|
protected |
Referenced by BfCapturePoint(), and Update().
|
protected |
Referenced by BfCapturePoint(), SendObjectiveComplete(), SetCapturePointData(), and Update().
|
protected |
|
protected |
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().