|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <OutdoorPvP.h>
Public Member Functions | |
| void | AddCre (uint32 type, uint32 guid, uint32 entry=0) |
| void | AddGO (uint32 type, uint32 guid, uint32 entry=0) |
| virtual bool | CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso) |
| virtual void | ChangeState ()=0 |
| virtual void | ChangeTeam (TeamId) |
| virtual void | DeleteSpawns () |
| virtual void | FillInitialWorldStates (WorldStateBuilder &) |
| virtual bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
| virtual bool | HandleDropFlag (Player *player, uint32 spellId) |
| virtual bool | HandleGossipOption (Player *player, uint64 guid, uint32 gossipid) |
| virtual int32 | HandleOpenGo (Player *player, uint64 guid) |
| virtual bool | HandlePlayerEnter (Player *player) |
| virtual void | HandlePlayerLeave (Player *player) |
| bool | IsInsideObjective (Player *player) const |
| OPvPCapturePoint (OutdoorPvP *pvp) | |
| virtual void | SendChangePhase () |
| void | SendObjectiveComplete (uint32 id, uint64 guid) |
| void | SendUpdateWorldState (uint32 field, uint32 value) |
| bool | SetCapturePointData (uint32 entry, uint32 map, float x, float y, float z, float o=0, float rotation0=0, float rotation1=0, float rotation2=0, float rotation3=0) |
| virtual bool | Update (uint32 diff) |
| virtual | ~OPvPCapturePoint () |
Public Attributes | |
| GameObject * | m_capturePoint |
| uint32 | m_capturePointGUID |
Protected Member Functions | |
| bool | AddCreature (uint32 type, uint32 entry, uint32 teamval, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay=0) |
| bool | AddObject (uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3) |
| bool | DelCapturePoint () |
| bool | DelCreature (uint32 type) |
| bool | DelObject (uint32 type) |
Protected Attributes | |
| PlayerSet | m_activePlayers [2] |
| std::map< uint32, uint64 > | m_Creatures |
| std::map< uint64, uint32 > | m_CreatureTypes |
| float | m_maxSpeed |
| float | m_maxValue |
| float | m_minValue |
| uint32 | m_neutralValuePct |
| std::map< uint32, uint64 > | m_Objects |
| std::map< uint64, uint32 > | m_ObjectTypes |
| ObjectiveStates | m_OldState |
| OutdoorPvP * | m_PvP |
| ObjectiveStates | m_State |
| TeamId | m_team |
| float | m_value |
Definition at line 78 of file OutdoorPvP.h.
| OPvPCapturePoint::OPvPCapturePoint | ( | OutdoorPvP * | pvp | ) |
Definition at line 20 of file OutdoorPvP.cpp.
References m_capturePoint, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, m_OldState, m_PvP, m_State, m_team, m_value, OBJECTIVESTATE_NEUTRAL, and TEAM_NEUTRAL.
Referenced by OPvPCapturePointHP::OPvPCapturePointHP(), OPvPCapturePointNA::OPvPCapturePointNA(), OPvPCapturePointTF::OPvPCapturePointTF(), OPvPCapturePointZM_Beacon::OPvPCapturePointZM_Beacon(), and OPvPCapturePointZM_GraveYard::OPvPCapturePointZM_GraveYard().
|
inlinevirtual |
Definition at line 83 of file OutdoorPvP.h.
Definition at line 70 of file OutdoorPvP.cpp.
References HIGHGUID_UNIT, CreatureData::id, m_Creatures, m_CreatureTypes, MAKE_NEW_GUID(), and sObjectMgr.
Referenced by AddCreature().
|
protected |
Definition at line 94 of file OutdoorPvP.cpp.
References AddCre(), and sObjectMgr.
Referenced by OPvPCapturePointZM_GraveYard::OPvPCapturePointZM_GraveYard(), and OPvPCapturePointNA::SpawnNPCsForTeam().
Definition at line 57 of file OutdoorPvP.cpp.
References HIGHGUID_GAMEOBJECT, GameObjectData::id, m_Objects, m_ObjectTypes, MAKE_NEW_GUID(), and sObjectMgr.
Referenced by AddObject().
|
protected |
Definition at line 83 of file OutdoorPvP.cpp.
References AddGO(), and sObjectMgr.
Referenced by OPvPCapturePointNA::HandleOpenGo(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), OPvPCapturePointHP::OPvPCapturePointHP(), OPvPCapturePointZM_GraveYard::OPvPCapturePointZM_GraveYard(), and OPvPCapturePointNA::SpawnGOsForTeam().
|
virtual |
Reimplemented in OPvPCapturePointZM_GraveYard.
Definition at line 523 of file OutdoorPvP.cpp.
|
pure virtual |
Implemented in OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, OPvPCapturePointZM_Beacon, and OPvPCapturePointZM_GraveYard.
Referenced by Update().
|
inlinevirtual |
Definition at line 109 of file OutdoorPvP.h.
Referenced by Update().
|
protected |
Definition at line 189 of file OutdoorPvP.cpp.
References m_capturePoint, m_capturePointGUID, and sObjectMgr.
Referenced by DeleteSpawns().
|
protected |
Definition at line 130 of file OutdoorPvP.cpp.
References WorldObject::AddObjectToRemoveList(), CHAR_DEL_CREATURE_RESPAWN, CharacterDatabase, HashMapHolder< T >::Find(), Creature::GetDBTableGUIDLow(), WorldLocation::GetMapId(), m_Creatures, m_CreatureTypes, Creature::RemoveCorpse(), Creature::SetRespawnTime(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, and sObjectMgr.
Referenced by DeleteSpawns(), and OPvPCapturePointNA::DeSpawnNPCs().
|
virtual |
Definition at line 203 of file OutdoorPvP.cpp.
References DelCapturePoint(), DelCreature(), DelObject(), m_Creatures, and m_Objects.
|
protected |
Definition at line 169 of file OutdoorPvP.cpp.
References GameObject::Delete(), HashMapHolder< T >::Find(), GameObject::GetDBTableGUIDLow(), m_Objects, m_ObjectTypes, GameObject::SetRespawnTime(), and sObjectMgr.
Referenced by DeleteSpawns(), OPvPCapturePointNA::DeSpawnGOs(), OPvPCapturePointNA::HandleOpenGo(), and OPvPCapturePointZM_GraveYard::HandleOpenGo().
|
inlinevirtual |
Reimplemented in OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, OPvPCapturePointZM_Beacon, and OPvPCapturePointZM_GraveYard.
Definition at line 85 of file OutdoorPvP.h.
|
virtual |
Reimplemented in OPvPCapturePointNA.
Definition at line 475 of file OutdoorPvP.cpp.
References Player::IsOutdoorPvPActive().
Reimplemented in OPvPCapturePointZM_GraveYard.
Definition at line 528 of file OutdoorPvP.cpp.
Reimplemented in OPvPCapturePointZM_GraveYard.
Definition at line 518 of file OutdoorPvP.cpp.
Reimplemented in OPvPCapturePointNA, and OPvPCapturePointZM_GraveYard.
Definition at line 533 of file OutdoorPvP.cpp.
References m_ObjectTypes.
Referenced by OPvPCapturePointNA::HandleOpenGo(), and OPvPCapturePointZM_GraveYard::HandleOpenGo().
|
virtual |
Reimplemented in OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, and OPvPCapturePointZM_Beacon.
Definition at line 26 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_capturePoint, m_maxValue, m_neutralValuePct, m_value, and Player::SendUpdateWorldState().
Referenced by OPvPCapturePointHP::HandlePlayerEnter(), OPvPCapturePointNA::HandlePlayerEnter(), OPvPCapturePointTF::HandlePlayerEnter(), OPvPCapturePointZM_Beacon::HandlePlayerEnter(), and Update().
|
virtual |
Reimplemented in OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, and OPvPCapturePointZM_Beacon.
Definition at line 37 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), m_activePlayers, m_capturePoint, and Player::SendUpdateWorldState().
Referenced by OPvPCapturePointHP::HandlePlayerLeave(), OPvPCapturePointNA::HandlePlayerLeave(), OPvPCapturePointTF::HandlePlayerLeave(), OPvPCapturePointZM_Beacon::HandlePlayerLeave(), and Update().
| bool OPvPCapturePoint::IsInsideObjective | ( | Player * | player | ) | const |
Definition at line 460 of file OutdoorPvP.cpp.
References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.
|
virtual |
Reimplemented in OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, and OPvPCapturePointZM_Beacon.
Definition at line 44 of file OutdoorPvP.cpp.
References m_capturePoint, m_maxValue, m_neutralValuePct, m_value, and SendUpdateWorldState().
Referenced by Update().
Definition at line 401 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), m_activePlayers, m_State, OBJECTIVESTATE_ALLIANCE, and OBJECTIVESTATE_HORDE.
Referenced by OPvPCapturePointHP::ChangeState().
Definition at line 390 of file OutdoorPvP.cpp.
References ObjectAccessor::FindPlayer(), and m_activePlayers.
Referenced by SendChangePhase(), OPvPCapturePointHP::SendChangePhase(), OPvPCapturePointNA::SendChangePhase(), OPvPCapturePointTF::SendChangePhase(), and OPvPCapturePointZM_Beacon::SendChangePhase().
| bool OPvPCapturePoint::SetCapturePointData | ( | uint32 | entry, |
| uint32 | map, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | o = 0, | ||
| float | rotation0 = 0, | ||
| float | rotation1 = 0, | ||
| float | rotation2 = 0, | ||
| float | rotation3 = 0 ) |
Definition at line 105 of file OutdoorPvP.cpp.
References CalculatePct(), GameObjectTemplate::capturePoint, GAMEOBJECT_TYPE_CAPTURE_POINT, m_capturePointGUID, m_maxSpeed, m_maxValue, m_minValue, m_neutralValuePct, GameObjectTemplate::maxTime, GameObjectTemplate::minTime, GameObjectTemplate::neutralPercent, SF_LOG_DEBUG, SF_LOG_ERROR, sObjectMgr, and GameObjectTemplate::type.
Referenced by OPvPCapturePointHP::OPvPCapturePointHP(), OPvPCapturePointNA::OPvPCapturePointNA(), OPvPCapturePointTF::OPvPCapturePointTF(), and OPvPCapturePointZM_Beacon::OPvPCapturePointZM_Beacon().
|
virtual |
Reimplemented in OPvPCapturePointNA, OPvPCapturePointTF, and OPvPCapturePointZM_GraveYard.
Definition at line 259 of file OutdoorPvP.cpp.
References ALLIANCE, ChangeState(), ChangeTeam(), ObjectAccessor::FindPlayer(), Object::GetGUID(), Player::GetTeamId(), HandlePlayerEnter(), HandlePlayerLeave(), HORDE, Player::IsOutdoorPvPActive(), 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, SendChangePhase(), TEAM_ALLIANCE, TEAM_HORDE, and TEAM_NEUTRAL.
Referenced by OPvPCapturePointNA::Update(), and OPvPCapturePointTF::Update().
|
protected |
Definition at line 143 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 123 of file OutdoorPvP.h.
Referenced by DelCapturePoint(), HandlePlayerEnter(), HandlePlayerLeave(), OPvPCapturePoint(), SendChangePhase(), and Update().
| uint32 OPvPCapturePoint::m_capturePointGUID |
Definition at line 121 of file OutdoorPvP.h.
Referenced by OutdoorPvP::AddCapturePoint(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), DelCapturePoint(), OPvPCapturePoint(), and SetCapturePointData().
Definition at line 170 of file OutdoorPvP.h.
Referenced by AddCre(), DelCreature(), DeleteSpawns(), and OPvPCapturePointNA::GetAliveGuardsCount().
Definition at line 172 of file OutdoorPvP.h.
Referenced by AddCre(), OPvPCapturePointZM_GraveYard::CanTalkTo(), DelCreature(), and OPvPCapturePointZM_GraveYard::HandleGossipOption().
|
protected |
Definition at line 150 of file OutdoorPvP.h.
Referenced by OPvPCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Definition at line 146 of file OutdoorPvP.h.
Referenced by HandlePlayerEnter(), OPvPCapturePointHP::HandlePlayerEnter(), OPvPCapturePointNA::HandlePlayerEnter(), OPvPCapturePointTF::HandlePlayerEnter(), OPvPCapturePointZM_Beacon::HandlePlayerEnter(), OPvPCapturePoint(), SendChangePhase(), OPvPCapturePointHP::SendChangePhase(), OPvPCapturePointNA::SendChangePhase(), OPvPCapturePointTF::SendChangePhase(), OPvPCapturePointZM_Beacon::SendChangePhase(), SetCapturePointData(), and Update().
|
protected |
Definition at line 147 of file OutdoorPvP.h.
Referenced by OPvPCapturePoint(), SetCapturePointData(), and Update().
|
protected |
Definition at line 162 of file OutdoorPvP.h.
Referenced by HandlePlayerEnter(), OPvPCapturePointHP::HandlePlayerEnter(), OPvPCapturePointNA::HandlePlayerEnter(), OPvPCapturePointTF::HandlePlayerEnter(), OPvPCapturePointZM_Beacon::HandlePlayerEnter(), OPvPCapturePoint(), SendChangePhase(), OPvPCapturePointHP::SendChangePhase(), OPvPCapturePointNA::SendChangePhase(), OPvPCapturePointTF::SendChangePhase(), OPvPCapturePointZM_Beacon::SendChangePhase(), and SetCapturePointData().
Definition at line 169 of file OutdoorPvP.h.
Referenced by AddGO(), OPvPCapturePointHP::ChangeState(), DeleteSpawns(), and DelObject().
Definition at line 171 of file OutdoorPvP.h.
Referenced by AddGO(), DelObject(), and HandleOpenGo().
|
protected |
Definition at line 158 of file OutdoorPvP.h.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), OPvPCapturePoint(), Update(), and OPvPCapturePointZM_GraveYard::Update().
|
protected |
Definition at line 165 of file OutdoorPvP.h.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), OPvPCapturePointNA::FactionTakeOver(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), OPvPCapturePoint(), OPvPCapturePointNA::Update(), OPvPCapturePointTF::Update(), OPvPCapturePointNA::UpdateHalaaWorldState(), OPvPCapturePointTF::UpdateTowerState(), OPvPCapturePointZM_Beacon::UpdateTowerState(), OPvPCapturePointZM_GraveYard::UpdateTowerState(), and OPvPCapturePointNA::UpdateWyvernRoostWorldState().
|
protected |
Definition at line 159 of file OutdoorPvP.h.
Referenced by OPvPCapturePointHP::ChangeState(), OPvPCapturePointNA::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), OPvPCapturePointHP::FillInitialWorldStates(), OPvPCapturePoint(), SendObjectiveComplete(), Update(), and OPvPCapturePointZM_GraveYard::Update().
|
protected |
Definition at line 155 of file OutdoorPvP.h.
Referenced by OPvPCapturePoint(), and Update().
|
protected |
Definition at line 153 of file OutdoorPvP.h.
Referenced by HandlePlayerEnter(), OPvPCapturePointHP::HandlePlayerEnter(), OPvPCapturePointNA::HandlePlayerEnter(), OPvPCapturePointTF::HandlePlayerEnter(), OPvPCapturePointZM_Beacon::HandlePlayerEnter(), OPvPCapturePoint(), SendChangePhase(), OPvPCapturePointHP::SendChangePhase(), OPvPCapturePointNA::SendChangePhase(), OPvPCapturePointTF::SendChangePhase(), OPvPCapturePointZM_Beacon::SendChangePhase(), and Update().