![]() |
TrinityCore
|
#include <OutdoorPvPNA.h>
Inheritance diagram for OPvPCapturePointNA:Additional Inherited Members | |
Public Attributes inherited from OPvPCapturePoint | |
| ObjectGuid::LowType | m_capturePointSpawnId |
| GameObject * | m_capturePoint |
Protected Member Functions inherited from OPvPCapturePoint | |
| bool | AddObject (uint32 type, uint32 entry, uint32 map, Position const &pos, QuaternionData const &rot) |
| bool | AddCreature (uint32 type, uint32 entry, uint32 map, Position const &pos, TeamId teamId=TEAM_NEUTRAL, uint32 spawntimedelay=0) |
| bool | DelObject (uint32 type) |
| bool | DelCreature (uint32 type) |
| bool | DelCapturePoint () |
Protected Attributes inherited from OPvPCapturePoint | |
| GuidSet | m_activePlayers [2] |
| float | m_maxValue |
| float | m_minValue |
| float | m_maxSpeed |
| float | m_value |
| TeamId | m_team |
| ObjectiveStates | m_OldState |
| ObjectiveStates | m_State |
| uint32 | m_neutralValuePct |
| OutdoorPvP * | m_PvP |
| std::map< uint32, ObjectGuid::LowType > | m_Objects |
| std::map< uint32, ObjectGuid::LowType > | m_Creatures |
| std::map< ObjectGuid::LowType, uint32 > | m_ObjectTypes |
| std::map< ObjectGuid::LowType, uint32 > | m_CreatureTypes |
Definition at line 152 of file OutdoorPvPNA.h.
| OPvPCapturePointNA::OPvPCapturePointNA | ( | OutdoorPvP * | pvp | ) |
Definition at line 279 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::SetCapturePointData().
|
overridevirtual |
Implements OPvPCapturePoint.
Definition at line 632 of file OutdoorPvPNA.cpp.
References ALLIANCE, FactionTakeOver(), Map::GetGameObjectBySpawnIdStore(), OutdoorPvP::GetMap(), HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, HORDE, OPvPCapturePoint::m_capturePointSpawnId, m_HalaaState, OPvPCapturePoint::m_PvP, OPvPCapturePoint::m_State, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL, OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, and UpdateHalaaWorldState().
| void OPvPCapturePointNA::DeSpawnGOs | ( | ) |
Definition at line 226 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::DelObject(), and NA_CONTROL_GO_NUM.
Referenced by FactionTakeOver().
| void OPvPCapturePointNA::DeSpawnNPCs | ( | ) |
Definition at line 197 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::DelCreature(), and NA_CONTROL_NPC_NUM.
Referenced by FactionTakeOver().
| void OPvPCapturePointNA::FactionTakeOver | ( | uint32 | team | ) |
Definition at line 234 of file OutdoorPvPNA.cpp.
References ALLIANCE, DeSpawnGOs(), DeSpawnNPCs(), m_capturable, m_ControllingFaction, m_GuardsAlive, OPvPCapturePoint::m_PvP, 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::SendDefenseMessage(), OutdoorPvP::SendUpdateWorldState(), sObjectMgr, SpawnGOsForTeam(), SpawnNPCsForTeam(), TEAM_ALLIANCE, TEAM_HORDE, OutdoorPvP::TeamApplyBuff(), TEXT_HALAA_TAKEN_ALLIANCE, TEXT_HALAA_TAKEN_HORDE, UpdateHalaaWorldState(), UpdateWyvernRoostWorldState(), WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by ChangeState(), and Update().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 319 of file OutdoorPvPNA.cpp.
References ALLIANCE, HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, HORDE, 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, WorldPackets::WorldState::InitWorldStates::Worldstates, WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by OutdoorPvPNA::FillInitialWorldStates().
| uint32 OPvPCapturePointNA::GetAliveGuardsCount | ( | ) |
Definition at line 143 of file OutdoorPvPNA.cpp.
References Map::GetCreatureBySpawnIdStore(), OutdoorPvP::GetMap(), OPvPCapturePoint::m_Creatures, OPvPCapturePoint::m_PvP, NA_NPC_GUARD_01, NA_NPC_GUARD_02, NA_NPC_GUARD_03, NA_NPC_GUARD_04, NA_NPC_GUARD_05, NA_NPC_GUARD_06, NA_NPC_GUARD_07, NA_NPC_GUARD_08, NA_NPC_GUARD_09, NA_NPC_GUARD_10, NA_NPC_GUARD_11, NA_NPC_GUARD_12, NA_NPC_GUARD_13, NA_NPC_GUARD_14, and NA_NPC_GUARD_15.
Referenced by Update().
| uint32 OPvPCapturePointNA::GetControllingFaction | ( | ) | const |
Definition at line 179 of file OutdoorPvPNA.cpp.
References m_ControllingFaction.
Referenced by OutdoorPvPNA::HandlePlayerEnterZone().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 396 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, PLAYER_FLAGS_IN_PVP, Player::SendNewItem(), Object::SetFlag(), Player::StoreNewItem(), and Player::UpdatePvP().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 471 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::AddObject(), ALLIANCE, AllianceControlGOs, OPvPCapturePoint::DelObject(), OPvPCapturePoint::HandleOpenGo(), HORDE, 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, UpdateWyvernRoostWorldState(), WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
| void OPvPCapturePointNA::SpawnGOsForTeam | ( | uint32 | team | ) |
Definition at line 203 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::AddObject(), ALLIANCE, AllianceControlGOs, HORDE, HordeControlGOs, NA_DESTROYED_ROOST_E, NA_DESTROYED_ROOST_N, NA_DESTROYED_ROOST_S, and NA_DESTROYED_ROOST_W.
Referenced by FactionTakeOver().
| void OPvPCapturePointNA::SpawnNPCsForTeam | ( | uint32 | team | ) |
Definition at line 184 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::AddCreature(), ALLIANCE, AllianceControlNPCs, OutdoorPvP::GetTeamIdByTeam(), HORDE, HordeControlNPCs, and NA_CONTROL_NPC_NUM.
Referenced by FactionTakeOver().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
Definition at line 593 of file OutdoorPvPNA.cpp.
References ALLIANCE, FactionTakeOver(), GetAliveGuardsCount(), HORDE, OPvPCapturePoint::m_activePlayers, m_capturable, m_ControllingFaction, m_GuardCheckTimer, m_GuardsAlive, OPvPCapturePoint::m_PvP, m_RespawnTimer, NA_GUARD_CHECK_TIME, NA_RESPAWN_TIME, NA_UI_GUARDS_LEFT, OutdoorPvP::SendUpdateWorldState(), and OPvPCapturePoint::Update().
Referenced by OutdoorPvPNA::Update().
| void OPvPCapturePointNA::UpdateHalaaWorldState | ( | ) |
Definition at line 673 of file OutdoorPvPNA.cpp.
References HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, m_HalaaState, OPvPCapturePoint::m_PvP, 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().
| void OPvPCapturePointNA::UpdateWyvernRoostWorldState | ( | uint32 | roost | ) |
Definition at line 682 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::SendUpdateWorldState(), WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by FactionTakeOver(), and HandleOpenGo().
|
private |
Definition at line 174 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), and Update().
|
private |
Definition at line 176 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), GetControllingFaction(), HandleOpenGo(), and Update().
|
private |
Definition at line 183 of file OutdoorPvPNA.h.
Referenced by Update().
|
private |
Definition at line 175 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), and Update().
|
private |
Definition at line 181 of file OutdoorPvPNA.h.
Referenced by ChangeState(), FillInitialWorldStates(), and UpdateHalaaWorldState().
|
private |
Definition at line 182 of file OutdoorPvPNA.h.
Referenced by Update().
|
private |
Definition at line 179 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 177 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 178 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 180 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), and UpdateWyvernRoostWorldState().