![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Battlefield.h"
Public Member Functions | |
| BfCapturePoint (Battlefield *bf) | |
| 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 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, TeamId team) |
| GameObject * | GetCapturePointGo () |
| GameObject * | GetCapturePointGo (WorldObject *obj) |
| TeamId | GetTeamId () const |
Protected Member Functions | |
| bool | DelCapturePoint () |
Protected Attributes | |
| GuidUnorderedSet | ActivePlayers [2] |
| float | MaxValue |
| float | MinValue |
| float | MaxSpeed |
| float | Value |
| TeamId | Team |
| BattlefieldObjectiveStates | OldState |
| BattlefieldObjectiveStates | State |
| uint32 | NeutralValuePct |
| Battlefield * | Bf |
| uint32 | CapturePointEntry |
| ObjectGuid | CapturePoint |
| BfCapturePoint::BfCapturePoint | ( | Battlefield * | bf | ) |
|
inlinevirtual |
|
inlinevirtual |
|
protected |
References CapturePoint, ObjectGuid::Clear(), and GetCapturePointGo().
|
inlinevirtual |
| GameObject * BfCapturePoint::GetCapturePointGo | ( | ) |
References Bf, CapturePoint, and Battlefield::GetGameObject().
Referenced by DelCapturePoint(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), and Update().
| GameObject * BfCapturePoint::GetCapturePointGo | ( | WorldObject * | obj | ) |
References CapturePoint, and ObjectAccessor::GetGameObject().
|
virtual |
References ActivePlayers, GetCapturePointGo(), Object::GetGUID(), Player::GetTeamId(), MaxValue, NeutralValuePct, Player::SendUpdateWorldState(), and Value.
Referenced by Update().
|
virtual |
References ActivePlayers, GetCapturePointGo(), Object::GetGUID(), Player::GetTeamId(), and Player::SendUpdateWorldState().
Referenced by Update().
| bool BfCapturePoint::IsInsideObjective | ( | Player * | player | ) | const |
References ActivePlayers, Object::GetGUID(), and Player::GetTeamId().
|
virtual |
References ActivePlayers, GameObjectTemplate::capturePoint, ObjectAccessor::FindPlayer(), GetCapturePointGo(), GameObject::GetGOInfo(), MaxValue, NeutralValuePct, Value, GameObjectTemplate::worldState1, GameObjectTemplate::worldstate2, and GameObjectTemplate::worldstate3.
Referenced by Update().
| void BfCapturePoint::SendObjectiveComplete | ( | uint32 | id, |
| ObjectGuid | guid | ||
| ) |
References ActivePlayers, BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, ObjectAccessor::FindPlayer(), and State.
References ActivePlayers, and ObjectAccessor::FindPlayer().
| bool BfCapturePoint::SetCapturePointData | ( | GameObject * | capturePoint, |
| TeamId | team | ||
| ) |
References ASSERT, BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE, BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE, CapturePoint, GameObjectTemplate::capturePoint, CapturePointEntry, GAMEOBJECT_TYPE_CAPTURE_POINT, Object::GetEntry(), GameObject::GetGOInfo(), Object::GetGUID(), LOG_DEBUG, LOG_ERROR, MaxSpeed, GameObjectTemplate::maxTime, MaxValue, GameObjectTemplate::minTime, MinValue, GameObjectTemplate::neutralPercent, NeutralValuePct, State, Team, TEAM_ALLIANCE, TEAM_NEUTRAL, GameObjectTemplate::type, and Value.
Referenced by BattlefieldWG::OnGameObjectCreate().
|
virtual |
References ActivePlayers, 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(), MaxSpeed, MaxValue, MinValue, OldState, GameObjectTemplate::radius, SendChangePhase(), State, Team, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, Value, and Cell::VisitObjects().
|
protected |
|
protected |
Referenced by GetCapturePointGo(), and WintergraspCapturePoint::WintergraspCapturePoint().
|
protected |
Referenced by DelCapturePoint(), GetCapturePointGo(), GetCapturePointGo(), and SetCapturePointData().
|
protected |
Referenced by SetCapturePointData().
|
protected |
Referenced by SetCapturePointData(), and Update().
|
protected |
Referenced by HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Referenced by SetCapturePointData(), and Update().
|
protected |
Referenced by HandlePlayerEnter(), SendChangePhase(), and SetCapturePointData().
|
protected |
Referenced by Update().
|
protected |
Referenced by SendObjectiveComplete(), SetCapturePointData(), and Update().
|
protected |
Referenced by WintergraspCapturePoint::GetTeam(), GetTeamId(), SetCapturePointData(), and Update().
|
protected |
Referenced by HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().