AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvPNA.h"
Public Member Functions | |
OPvPCapturePointNA (OutdoorPvP *pvp) | |
bool | Update (uint32 diff) override |
void | ChangeState () override |
void | SendChangePhase () override |
void | FillInitialWorldStates (WorldPacket &data) override |
bool | HandlePlayerEnter (Player *player) override |
void | HandlePlayerLeave (Player *player) override |
bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) override |
int32 | HandleOpenGo (Player *player, GameObject *go) override |
uint32 | GetAliveGuardsCount () |
TeamId | GetControllingFaction () const |
Public Member Functions inherited from OPvPCapturePoint | |
OPvPCapturePoint (OutdoorPvP *pvp) | |
virtual | ~OPvPCapturePoint ()=default |
virtual void | FillInitialWorldStates (WorldPacket &) |
void | SendUpdateWorldState (uint32 field, uint32 value) |
void | SendObjectiveComplete (uint32 id, ObjectGuid guid=ObjectGuid::Empty) |
virtual bool | HandlePlayerEnter (Player *player) |
virtual void | HandlePlayerLeave (Player *player) |
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 | ChangeState ()=0 |
virtual void | ChangeTeam (TeamId) |
virtual void | SendChangePhase () |
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 | FactionTakeOver (TeamId teamId) |
void | DespawnGOs () |
void | DespawnCreatures (HalaaNPCS teamNPC) |
void | SpawnNPCsForTeam (HalaaNPCS teamNPC) |
void | SpawnGOsForTeam (TeamId teamId) |
void | UpdateWyvernRoostWorldState (uint32 roost) |
void | UpdateHalaaWorldState () |
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 () |
Additional Inherited Members | |
Public Attributes inherited from OPvPCapturePoint | |
ObjectGuid::LowType | m_capturePointSpawnId {} |
GameObject * | _capturePoint {} |
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 |
OPvPCapturePointNA::OPvPCapturePointNA | ( | OutdoorPvP * | pvp | ) |
References OPvPCapturePoint::SetCapturePointData().
|
overridevirtual |
Implements OPvPCapturePoint.
References OPvPCapturePoint::_state, FactionTakeOver(), HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, m_canRecap, OPvPCapturePoint::m_capturePointSpawnId, m_HalaaState, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL, OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, sMapMgr, TEAM_ALLIANCE, TEAM_HORDE, and UpdateHalaaWorldState().
Referenced by Update().
|
protected |
References OPvPCapturePoint::_creatures, OPvPCapturePoint::_creatureTypes, OPvPCapturePoint::_pvp, WorldObject::AddObjectToRemoveList(), Map::GetCreatureBySpawnIdStore(), OutdoorPvP::GetMap(), NA_HALAA_CREATURE_TEAM_SPAWN, and sObjectMgr.
Referenced by FactionTakeOver(), and Update().
|
protected |
References OPvPCapturePoint::DelObject(), and NA_CONTROL_GO_NUM.
Referenced by FactionTakeOver(), and Update().
|
protected |
References OPvPCapturePoint::_pvp, DespawnCreatures(), DespawnGOs(), GetControllingFaction(), halaaNPCAlly, halaaNPCHorde, LANG_OPVP_NA_CAPTURE_A, LANG_OPVP_NA_CAPTURE_H, LANG_OPVP_NA_LOSE_A, LANG_OPVP_NA_LOSE_H, m_canRecap, m_capturable, m_ControllingFaction, m_GuardsAlive, m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, NA_CAPTURE_BUFF, NA_GUARDS_MAX, NA_HALAA_GRAVEYARD, 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::SendUpdateWorldState(), sGraveyard, sObjectMgr, SpawnGOsForTeam(), SpawnNPCsForTeam(), sWorld, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, OutdoorPvP::TeamApplyBuff(), UpdateHalaaWorldState(), UpdateWyvernRoostWorldState(), WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by ChangeState(), and Update().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, m_ControllingFaction, m_GuardsAlive, m_HalaaState, m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, NA_GUARDS_MAX, NA_MAP_HALAA_ALLIANCE, NA_MAP_HALAA_HORDE, NA_MAP_HALAA_NEU_A, NA_MAP_HALAA_NEU_H, NA_MAP_HALAA_NEUTRAL, 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_UI_ALLIANCE_GUARDS_SHOW, NA_UI_GUARDS_LEFT, NA_UI_GUARDS_MAX, NA_UI_HORDE_GUARDS_SHOW, NA_UI_TOWER_SLIDER_DISPLAY, NA_UI_TOWER_SLIDER_N, NA_UI_TOWER_SLIDER_POS, TEAM_ALLIANCE, TEAM_HORDE, WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by OutdoorPvPNA::FillInitialWorldStates().
uint32 OPvPCapturePointNA::GetAliveGuardsCount | ( | ) |
References OPvPCapturePoint::_creatures, OPvPCapturePoint::_pvp, Map::GetCreatureBySpawnIdStore(), OutdoorPvP::GetMap(), NA_HALAANI_GUARD_A, and NA_HALAANI_GUARD_H.
Referenced by Update().
TeamId OPvPCapturePointNA::GetControllingFaction | ( | ) | const |
References m_ControllingFaction.
Referenced by FactionTakeOver(), OutdoorPvPNA::HandlePlayerEnterZone(), and Update().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References Player::ActivateTaxiPathTo(), Player::CanStoreNewItem(), EQUIP_ERR_OK, FlagPlayerPvP(), FlightPathEndNodes, FlightPathStartNodes, NA_HALAA_BOMB, 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::SendNewItem(), and Player::StoreNewItem().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::AddObject(), AllianceControlGOs, OPvPCapturePoint::DelObject(), FlagPlayerPvP(), OPvPCapturePoint::HandleOpenGo(), HordeControlGOs, m_ControllingFaction, m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, NA_BOMB_WAGON_E, NA_BOMB_WAGON_N, NA_BOMB_WAGON_S, NA_BOMB_WAGON_W, NA_DESTROYED_ROOST_E, NA_DESTROYED_ROOST_N, NA_DESTROYED_ROOST_S, NA_DESTROYED_ROOST_W, NA_ROOST_E, NA_ROOST_N, NA_ROOST_S, NA_ROOST_W, TEAM_ALLIANCE, TEAM_HORDE, UpdateWyvernRoostWorldState(), WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_maxValue, OPvPCapturePoint::_neutralValuePct, OPvPCapturePoint::_value, OPvPCapturePoint::HandlePlayerEnter(), NA_UI_TOWER_SLIDER_DISPLAY, NA_UI_TOWER_SLIDER_N, NA_UI_TOWER_SLIDER_POS, and Player::SendUpdateWorldState().
Referenced by Update().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::HandlePlayerLeave(), NA_UI_TOWER_SLIDER_DISPLAY, and Player::SendUpdateWorldState().
Referenced by Update().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_maxValue, OPvPCapturePoint::_neutralValuePct, OPvPCapturePoint::_value, NA_UI_TOWER_SLIDER_DISPLAY, NA_UI_TOWER_SLIDER_N, NA_UI_TOWER_SLIDER_POS, and OPvPCapturePoint::SendUpdateWorldState().
Referenced by Update().
|
protected |
References OPvPCapturePoint::AddObject(), AllianceControlGOs, HordeControlGOs, NA_BOMB_WAGON_E, NA_BOMB_WAGON_N, NA_BOMB_WAGON_S, NA_BOMB_WAGON_W, NA_CONTROL_GO_NUM, NA_ROOST_E, NA_ROOST_N, NA_ROOST_S, NA_ROOST_W, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by FactionTakeOver().
|
protected |
References OPvPCapturePoint::_creatures, OPvPCapturePoint::_creatureTypes, OPvPCapturePoint::_pvp, OutdoorPvP::GetMap(), NA_HALAA_CREATURE_TEAM_SPAWN, CreatureData::posX, CreatureData::posY, sObjectMgr, and UpdateCreatureHalaa().
Referenced by FactionTakeOver().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_activePlayers, OPvPCapturePoint::_capturePoint, OPvPCapturePoint::_maxSpeed, OPvPCapturePoint::_maxValue, OPvPCapturePoint::_minValue, OPvPCapturePoint::_oldState, OPvPCapturePoint::_pvp, OPvPCapturePoint::_state, OPvPCapturePoint::_team, OPvPCapturePoint::_value, GameObjectTemplate::capturePoint, ChangeState(), OPvPCapturePoint::ChangeTeam(), DespawnCreatures(), DespawnGOs(), FactionTakeOver(), ObjectAccessor::FindPlayer(), GetAliveGuardsCount(), GetControllingFaction(), GameObject::GetGOInfo(), halaaNPCAlly, halaaNPCHorde, HandlePlayerEnter(), HandlePlayerLeave(), GameObject::IsWithinDistInMap(), LANG_OPVP_NA_DEFENSELESS, m_canRecap, m_capturable, m_GuardCheckTimer, m_GuardsAlive, m_RespawnTimer, NA_GUARD_CHECK_TIME, NA_HALAA_GRAVEYARD_ZONE, NA_RESPAWN_TIME, NA_UI_GUARDS_LEFT, NA_UI_TOWER_SLIDER_DISPLAY, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL, OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL, GameObjectTemplate::radius, SendChangePhase(), OPvPCapturePoint::SendUpdateWorldState(), OutdoorPvP::SendUpdateWorldState(), sObjectMgr, sWorld, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and Cell::VisitWorldObjects().
Referenced by OutdoorPvPNA::Update().
|
protected |
References OPvPCapturePoint::_pvp, HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, m_HalaaState, NA_MAP_HALAA_ALLIANCE, NA_MAP_HALAA_HORDE, NA_MAP_HALAA_NEU_A, NA_MAP_HALAA_NEU_H, NA_MAP_HALAA_NEUTRAL, and OutdoorPvP::SendUpdateWorldState().
Referenced by ChangeState(), and FactionTakeOver().
|
protected |
References OPvPCapturePoint::_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::SendUpdateWorldState(), WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by FactionTakeOver(), and HandleOpenGo().
|
private |
Referenced by ChangeState(), FactionTakeOver(), and Update().
|
private |
Referenced by FactionTakeOver(), and Update().
|
private |
Referenced by FactionTakeOver(), FillInitialWorldStates(), GetControllingFaction(), and HandleOpenGo().
|
private |
Referenced by FactionTakeOver(), FillInitialWorldStates(), and Update().
|
private |
Referenced by ChangeState(), FillInitialWorldStates(), and UpdateHalaaWorldState().
|
private |
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().