![]() |
TrinityCore
|
#include <OutdoorPvPNA.h>
Inheritance diagram for OPvPCapturePointNA:Public Member Functions | |
| OPvPCapturePointNA (OutdoorPvP *pvp) | |
| void | Update (uint32 diff) override |
| void | ChangeState () override |
| bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) override |
| int32 | HandleOpenGo (Player *player, GameObject *go) override |
| uint32 | GetAliveGuardsCount () const |
| Team | GetControllingFaction () const |
| void | FactionTakeOver (Team team) |
| void | UpdateWyvernRoostWorldState (uint32 roost) |
| void | SetControlZoneGUID (ObjectGuid guid) |
Public Member Functions inherited from OPvPCapturePoint | |
| OPvPCapturePoint (OutdoorPvP *pvp) | |
| virtual | ~OPvPCapturePoint () |
| OPvPCapturePoint (OPvPCapturePoint const &right)=delete | |
| OPvPCapturePoint (OPvPCapturePoint &&right)=delete | |
| OPvPCapturePoint & | operator= (OPvPCapturePoint const &right)=delete |
| OPvPCapturePoint & | operator= (OPvPCapturePoint &&right)=delete |
| virtual void | ChangeTeam (TeamId) |
| virtual bool | HandleDropFlag (Player *, uint32) |
Additional Inherited Members | |
Protected Attributes inherited from OPvPCapturePoint | |
| TeamId | m_team |
| ObjectiveStates | m_OldState |
| ObjectiveStates | m_State |
| OutdoorPvP * | m_PvP |
Definition at line 150 of file OutdoorPvPNA.h.
| OPvPCapturePointNA::OPvPCapturePointNA | ( | OutdoorPvP * | pvp | ) |
Definition at line 210 of file OutdoorPvPNA.cpp.
|
inlineoverridevirtual |
Implements OPvPCapturePoint.
Definition at line 156 of file OutdoorPvPNA.h.
| void OPvPCapturePointNA::FactionTakeOver | ( | Team | team | ) |
Definition at line 172 of file OutdoorPvPNA.cpp.
References _controlZoneGUID, ALLIANCE, Map::GetGameObject(), OutdoorPvP::GetMap(), m_capturable, m_ControllingFaction, m_GuardsAlive, OPvPCapturePoint::m_PvP, m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, MakeInert, NA_CAPTURE_BUFF, NA_GUARDS_MAX, NA_HALAA_GRAVEYARD_ZONE, NA_ROOST_E, NA_ROOST_N, NA_ROOST_S, NA_ROOST_W, NA_UI_ALLIANCE_GUARDS_SHOW, NA_UI_GUARDS_LEFT, NA_UI_HORDE_GUARDS_SHOW, OutdoorPvP::SendDefenseMessage(), OutdoorPvP::SetWorldState(), TEAM_ALLIANCE, TEAM_HORDE, OutdoorPvP::TeamApplyBuff(), TEXT_HALAA_TAKEN_ALLIANCE, TEXT_HALAA_TAKEN_HORDE, UpdateWyvernRoostWorldState(), WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by NAControlZoneHandler::HandleCaptureEventAlliance(), NAControlZoneHandler::HandleCaptureEventHorde(), and Update().
| uint32 OPvPCapturePointNA::GetAliveGuardsCount | ( | ) | const |
Definition at line 155 of file OutdoorPvPNA.cpp.
References ObjectGuid::Empty, GetControllingFaction(), PhasingHandler::GetEmptyPhaseShift(), OutdoorPvP::GetMap(), Position::GetPositionX(), Position::GetPositionY(), HORDE, Unit::IsAlive(), OPvPCapturePoint::m_PvP, SIZE_OF_GRIDS, and Cell::VisitGridObjects().
Referenced by Update().
| Team OPvPCapturePointNA::GetControllingFaction | ( | ) | const |
Definition at line 167 of file OutdoorPvPNA.cpp.
References m_ControllingFaction.
Referenced by GetAliveGuardsCount().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 282 of file OutdoorPvPNA.cpp.
References Player::ActivateTaxiPathTo(), Player::CanStoreNewItem(), EQUIP_ERR_OK, FlightPathEndNodes, FlightPathStartNodes, NA_ROOST_E, NA_ROOST_N, NA_ROOST_S, NA_ROOST_W, NA_SPELL_FLY_EAST, NA_SPELL_FLY_NORTH, NA_SPELL_FLY_SOUTH, NA_SPELL_FLY_WEST, NULL_BAG, NULL_SLOT, PLAYER_FLAGS_IN_PVP, Player::SendNewItem(), Player::SetPlayerFlag(), Player::StoreNewItem(), and Player::UpdatePvP().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 357 of file OutdoorPvPNA.cpp.
References Object::GetEntry(), OPvPCapturePoint::HandleOpenGo(), m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, NA_ROOST_E, NA_ROOST_N, NA_ROOST_S, NA_ROOST_W, UpdateWyvernRoostWorldState(), WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
|
inline |
Definition at line 165 of file OutdoorPvPNA.h.
References _controlZoneGUID.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 432 of file OutdoorPvPNA.cpp.
References _controlZoneGUID, FactionTakeOver(), GetAliveGuardsCount(), Map::GetGameObject(), OutdoorPvP::GetMap(), HORDE, m_capturable, m_ControllingFaction, m_GuardCheckTimer, m_GuardsAlive, OPvPCapturePoint::m_PvP, m_RespawnTimer, MakeActive, MakeInert, NA_GUARD_CHECK_TIME, NA_RESPAWN_TIME, NA_UI_GUARDS_LEFT, OutdoorPvP::SetWorldState(), SPAWN_GROUP_ALLIANCE_GUARDS, SPAWN_GROUP_HORDE_GUARDS, Map::SpawnGroupSpawn(), and OPvPCapturePoint::Update().
| void OPvPCapturePointNA::UpdateWyvernRoostWorldState | ( | uint32 | roost | ) |
Definition at line 473 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::m_PvP, m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, NA_MAP_WYVERN_EAST_A, NA_MAP_WYVERN_EAST_H, NA_MAP_WYVERN_EAST_NEU_A, NA_MAP_WYVERN_EAST_NEU_H, NA_MAP_WYVERN_NORTH_A, NA_MAP_WYVERN_NORTH_H, NA_MAP_WYVERN_NORTH_NEU_A, NA_MAP_WYVERN_NORTH_NEU_H, NA_MAP_WYVERN_SOUTH_A, NA_MAP_WYVERN_SOUTH_H, NA_MAP_WYVERN_SOUTH_NEU_A, NA_MAP_WYVERN_SOUTH_NEU_H, NA_MAP_WYVERN_WEST_A, NA_MAP_WYVERN_WEST_H, NA_MAP_WYVERN_WEST_NEU_A, NA_MAP_WYVERN_WEST_NEU_H, NA_ROOST_E, NA_ROOST_N, NA_ROOST_S, NA_ROOST_W, OutdoorPvP::SetWorldState(), WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by FactionTakeOver(), and HandleOpenGo().
|
private |
Definition at line 176 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), SetControlZoneGUID(), and Update().
|
private |
Definition at line 167 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), and Update().
|
private |
Definition at line 169 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), GetControllingFaction(), and Update().
|
private |
Definition at line 175 of file OutdoorPvPNA.h.
Referenced by Update().
|
private |
Definition at line 168 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), and Update().
|
private |
Definition at line 174 of file OutdoorPvPNA.h.
Referenced by Update().
|
private |
Definition at line 172 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 170 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 171 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 173 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), HandleOpenGo(), and UpdateWyvernRoostWorldState().