|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Battlefield.h>
Public Member Functions | |
| BfCapturePoint (Battlefield *bf) | |
| virtual void | ChangeTeam (TeamId) |
| virtual void | FillInitialWorldStates (WorldStateBuilder &) |
| uint32 | GetCapturePointEntry () const |
| GameObject * | GetCapturePointGo () |
| TeamId | GetTeamId () const |
| virtual bool | HandlePlayerEnter (Player *player) |
| virtual GuidSet::iterator | HandlePlayerLeave (Player *player) |
| bool | IsInsideObjective (Player *player) const |
| virtual void | SendChangePhase () |
| void | SendObjectiveComplete (uint32 id, uint64 guid) |
| void | SendUpdateWorldState (uint32 field, uint32 value) |
| bool | SetCapturePointData (GameObject *capturePoint) |
| virtual bool | Update (uint32 diff) |
| virtual | ~BfCapturePoint () |
Protected Member Functions | |
| bool | DelCapturePoint () |
Protected Attributes | |
| GuidSet | m_activePlayers [2] |
| Battlefield * | m_Bf |
| uint32 | m_capturePointEntry |
| uint64 | m_capturePointGUID |
| float | m_maxSpeed |
| float | m_maxValue |
| float | m_minValue |
| uint32 | m_neutralValuePct |
| BattlefieldObjectiveStates | m_OldState |
| BattlefieldObjectiveStates | m_State |
| TeamId | m_team |
| float | m_value |
Definition at line 66 of file Battlefield.h.
|
inline |
Definition at line 69 of file Battlefield.h.
References m_Bf, m_capturePointEntry, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, m_OldState, m_State, m_team, m_value, and TEAM_NEUTRAL.
Referenced by WintergraspCapturePoint::WintergraspCapturePoint().
|
inlinevirtual |
Definition at line 73 of file Battlefield.h.
|
inlinevirtual |
Reimplemented in WintergraspCapturePoint.
Definition at line 93 of file Battlefield.h.
Referenced by Update().
|
protected |
Definition at line 911 of file Battlefield.cpp.
References m_Bf, and m_capturePointGUID.
|
inlinevirtual |
Definition at line 75 of file Battlefield.h.
|
inline |
Definition at line 98 of file Battlefield.h.
References m_capturePointEntry.
Referenced by Battlefield::AddCapturePoint().
| GameObject * BfCapturePoint::GetCapturePointGo | ( | ) |
Definition at line 906 of file Battlefield.cpp.
References m_Bf, and m_capturePointGUID.
|
inline |
Definition at line 100 of file Battlefield.h.
References m_team.
|
virtual |
Definition at line 824 of file Battlefield.cpp.
References Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_Bf, m_capturePointGUID, m_maxValue, m_neutralValuePct, m_value, and Player::SendUpdateWorldState().
Referenced by Update().
|
virtual |
Definition at line 839 of file Battlefield.cpp.
References Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_Bf, m_capturePointGUID, and Player::SendUpdateWorldState().
Referenced by Update().
| bool BfCapturePoint::IsInsideObjective | ( | Player * | player | ) | const |
Definition at line 1078 of file Battlefield.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.
|
virtual |
Definition at line 854 of file Battlefield.cpp.
References m_Bf, m_capturePointGUID, m_maxValue, m_neutralValuePct, m_value, and SendUpdateWorldState().
Referenced by Update().
Definition at line 1057 of file Battlefield.cpp.
References ALLIANCE, HORDE, m_activePlayers, m_State, and sObjectAccessor.
Definition at line 1049 of file Battlefield.cpp.
References m_activePlayers, and sObjectAccessor.
Referenced by SendChangePhase().
| bool BfCapturePoint::SetCapturePointData | ( | GameObject * | capturePoint | ) |
Definition at line 870 of file Battlefield.cpp.
References ALLIANCE, ASSERT, GameObjectTemplate::capturePoint, GAMEOBJECT_TYPE_CAPTURE_POINT, Object::GetEntry(), GameObject::GetGOInfo(), Object::GetGUIDLow(), HIGHGUID_GAMEOBJECT, HORDE, m_capturePointEntry, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, m_State, m_team, m_value, MAKE_NEW_GUID(), GameObjectTemplate::maxTime, GameObjectTemplate::minTime, GameObjectTemplate::neutralPercent, SF_LOG_DEBUG, SF_LOG_ERROR, TEAM_ALLIANCE, and GameObjectTemplate::type.
Referenced by BattlefieldWG::OnGameObjectCreate().
|
virtual |
Definition at line 927 of file Battlefield.cpp.
References ALLIANCE, ALLIANCE_HORDE_CHALLENGE, BATTLEFIELD_OBJECTIVE_UPDATE_INTERVAL, ChangeTeam(), HandlePlayerEnter(), HandlePlayerLeave(), HORDE, HORDE_ALLIANCE_CHALLENGE, m_activePlayers, m_Bf, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_OldState, m_State, m_team, m_value, NEUTRAL_ALLIANCE_CHALLENGE, NEUTRAL_HORDE_CHALLENGE, SendChangePhase(), sObjectAccessor, TEAM_ALLIANCE, TEAM_HORDE, and TEAM_NEUTRAL.
|
protected |
Definition at line 105 of file Battlefield.h.
Referenced by HandlePlayerEnter(), HandlePlayerLeave(), IsInsideObjective(), SendObjectiveComplete(), SendUpdateWorldState(), and Update().
|
protected |
Definition at line 126 of file Battlefield.h.
Referenced by BfCapturePoint(), DelCapturePoint(), GetCapturePointGo(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), Update(), and WintergraspCapturePoint::WintergraspCapturePoint().
|
protected |
Definition at line 129 of file Battlefield.h.
Referenced by BfCapturePoint(), GetCapturePointEntry(), and SetCapturePointData().
|
protected |
Definition at line 132 of file Battlefield.h.
Referenced by BfCapturePoint(), DelCapturePoint(), GetCapturePointGo(), HandlePlayerEnter(), HandlePlayerLeave(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Definition at line 112 of file Battlefield.h.
Referenced by BfCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Definition at line 108 of file Battlefield.h.
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Definition at line 109 of file Battlefield.h.
Referenced by BfCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Definition at line 123 of file Battlefield.h.
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), and SetCapturePointData().
|
protected |
Definition at line 119 of file Battlefield.h.
Referenced by BfCapturePoint(), and Update().
|
protected |
Definition at line 120 of file Battlefield.h.
Referenced by BfCapturePoint(), SendObjectiveComplete(), SetCapturePointData(), and Update().
|
protected |
Definition at line 116 of file Battlefield.h.
Referenced by BfCapturePoint(), WintergraspCapturePoint::ChangeTeam(), WintergraspCapturePoint::GetTeam(), GetTeamId(), SetCapturePointData(), Update(), and WintergraspCapturePoint::WintergraspCapturePoint().
|
protected |
Definition at line 115 of file Battlefield.h.
Referenced by BfCapturePoint(), HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().