![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvPEP.h"
Public Member Functions | |
| OPvPCapturePointEP_CGT (OutdoorPvP *pvp) | |
| void | ChangeState () override |
| void | SendChangePhase () override |
| void | FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override |
| bool | HandlePlayerEnter (Player *player) override |
| void | HandlePlayerLeave (Player *player) override |
Public Member Functions inherited from OPvPCapturePoint | |
| OPvPCapturePoint (OutdoorPvP *pvp) | |
| virtual | ~OPvPCapturePoint ()=default |
| void | SendUpdateWorldState (uint32 field, uint32 value) |
| void | SendObjectiveComplete (uint32 id, ObjectGuid guid=ObjectGuid::Empty) |
| bool | IsInsideObjective (Player *player) const |
| virtual bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
| virtual int32 | HandleOpenGo (Player *player, GameObject *go) |
| virtual bool | Update (uint32 diff) |
| virtual void | ChangeTeam (TeamId) |
| virtual bool | HandleGossipOption (Player *player, Creature *creature, uint32 gossipId) |
| virtual bool | CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso) |
| virtual bool | HandleDropFlag (Player *player, uint32 spellId) |
| virtual void | DeleteSpawns () |
| void | AddGO (uint32 type, ObjectGuid::LowType guid, uint32 entry=0) |
| void | AddCre (uint32 type, ObjectGuid::LowType guid, uint32 entry=0) |
| 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) |
| void | SetSlider (float slider) |
| float | GetSlider () const |
Protected Member Functions | |
| void | LinkGraveyard (TeamId teamId) |
| void | UpdateTowerState () |
Protected Member Functions inherited from OPvPCapturePoint | |
| 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 | AddCreature (uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, uint32 spawntimeDelay=0) |
| bool | DelCreature (uint32 type) |
| bool | DelObject (uint32 type) |
| bool | DelCapturePoint () |
Protected Attributes | |
| uint32 | m_TowerState |
| TeamId | m_GraveyardSide |
Protected Attributes inherited from OPvPCapturePoint | |
| std::array< PlayerSet, 2 > | _activePlayers |
| float | _maxValue {} |
| float | _minValue {} |
| float | _maxSpeed {} |
| float | _value {} |
| TeamId | _team { TEAM_NEUTRAL } |
| ObjectiveStates | _oldState { OBJECTIVESTATE_NEUTRAL } |
| ObjectiveStates | _state { OBJECTIVESTATE_NEUTRAL } |
| uint32 | _neutralValuePct {} |
| OutdoorPvP * | _pvp {} |
| std::unordered_map< uint32, ObjectGuid::LowType > | _objects |
| std::unordered_map< uint32, ObjectGuid::LowType > | _creatures |
| std::unordered_map< ObjectGuid::LowType, uint32 > | _objectTypes |
| std::unordered_map< ObjectGuid::LowType, uint32 > | _creatureTypes |
Additional Inherited Members | |
Public Attributes inherited from OPvPCapturePoint | |
| ObjectGuid::LowType | m_capturePointSpawnId {} |
| GameObject * | _capturePoint {} |
| OPvPCapturePointEP_CGT::OPvPCapturePointEP_CGT | ( | OutdoorPvP * | pvp | ) |
References OPvPCapturePoint::AddObject(), EP_CGT, EP_CGT_FLAGS, EPCapturePoints, EPTowerFlags, and OPvPCapturePoint::SetCapturePointData().
|
overridevirtual |
Implements OPvPCapturePoint.
References OPvPCapturePoint::_objects, OPvPCapturePoint::_oldState, OPvPCapturePoint::_pvp, OPvPCapturePoint::_state, EP_CGT, EP_CGT_CM, EP_CGT_FLAGS, EP_GraveyardZone, EP_TS_A, EP_TS_H, EP_TS_N, EP_TS_N_A, EP_TS_N_H, Map::GetGameObjectBySpawnIdStore(), OutdoorPvP::GetMap(), LANG_OPVP_EP_CAPTURE_CGT_A, LANG_OPVP_EP_CAPTURE_CGT_H, LANG_OPVP_EP_LOSE_CGT_A, LANG_OPVP_EP_LOSE_CGT_H, LinkGraveyard(), OPvPCapturePoint::m_capturePointSpawnId, m_TowerState, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL, OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, OPvPCapturePoint::SendObjectiveComplete(), Map::SendZoneText(), sMapMgr, sObjectMgr, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and UpdateTowerState().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References EP_TS_A, EP_TS_H, EP_TS_N, EP_TS_N_A, EP_TS_N_H, m_TowerState, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_A, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_H, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N_A, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N_H, and WorldPackets::WorldState::InitWorldStates::Worldstates.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_maxValue, OPvPCapturePoint::_neutralValuePct, OPvPCapturePoint::_value, OPvPCapturePoint::HandlePlayerEnter(), Player::SendUpdateWorldState(), WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_DISPLAY, WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_N, and WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_POS.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::HandlePlayerLeave(), Player::SendUpdateWorldState(), and WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_DISPLAY.
|
protected |
References EP_GraveyardId, EP_GraveyardZone, m_GraveyardSide, and sGraveyard.
Referenced by ChangeState().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_maxValue, OPvPCapturePoint::_neutralValuePct, OPvPCapturePoint::_value, OPvPCapturePoint::SendUpdateWorldState(), WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_DISPLAY, WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_N, and WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_POS.
|
protected |
References OPvPCapturePoint::_pvp, EP_TS_A, EP_TS_H, EP_TS_N, EP_TS_N_A, EP_TS_N_H, m_TowerState, OutdoorPvP::SendUpdateWorldState(), WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_A, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_H, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N_A, and WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N_H.
Referenced by ChangeState().
|
protected |
Referenced by LinkGraveyard().
|
protected |
Referenced by ChangeState(), FillInitialWorldStates(), and UpdateTowerState().