|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <OutdoorPvPNA.h>
Protected Member Functions | |
| void | DeSpawnGOs () |
| void | DeSpawnNPCs () |
| void | FactionTakeOver (uint32 team) |
| void | SpawnGOsForTeam (uint32 team) |
| void | SpawnNPCsForTeam (uint32 team) |
| void | UpdateHalaaWorldState () |
| void | UpdateWyvernRoostWorldState (uint32 roost) |
| Protected Member Functions inherited from OPvPCapturePoint | |
| 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) |
Additional Inherited Members | |
| Public Attributes inherited from OPvPCapturePoint | |
| GameObject * | m_capturePoint |
| uint32 | m_capturePointGUID |
| Protected Attributes inherited from OPvPCapturePoint | |
| 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 241 of file OutdoorPvPNA.h.
| OPvPCapturePointNA::OPvPCapturePointNA | ( | OutdoorPvP * | pvp | ) |
Definition at line 190 of file OutdoorPvPNA.cpp.
References HALAA_N, m_capturable, m_ControllingFaction, m_GuardCheckTimer, m_GuardsAlive, m_HalaaState, m_RespawnTimer, m_WyvernStateEast, m_WyvernStateNorth, m_WyvernStateSouth, m_WyvernStateWest, NA_GUARD_CHECK_TIME, NA_RESPAWN_TIME, OPvPCapturePoint::OPvPCapturePoint(), and OPvPCapturePoint::SetCapturePointData().
|
virtual |
Implements OPvPCapturePoint.
Definition at line 556 of file OutdoorPvPNA.cpp.
References ALLIANCE, FactionTakeOver(), HashMapHolder< T >::Find(), HALAA_A, HALAA_H, HALAA_N, HALAA_N_A, HALAA_N_H, HORDE, OPvPCapturePoint::m_capturePointGUID, m_HalaaState, 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, GameObject::SetGoArtKit(), and UpdateHalaaWorldState().
|
protected |
Definition at line 114 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::DelObject(), and NA_CONTROL_GO_NUM.
Referenced by FactionTakeOver().
|
protected |
Definition at line 84 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::DelCreature(), and NA_CONTROL_NPC_NUM.
Referenced by FactionTakeOver().
|
protected |
Definition at line 122 of file OutdoorPvPNA.cpp.
References ALLIANCE, DeSpawnGOs(), DeSpawnNPCs(), HORDE, LANG_OPVP_NA_CAPTURE_A, LANG_OPVP_NA_CAPTURE_H, LANG_OPVP_NA_LOSE_A, LANG_OPVP_NA_LOSE_H, 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, sObjectMgr, SpawnGOsForTeam(), SpawnNPCsForTeam(), sWorld, TEAM_ALLIANCE, TEAM_HORDE, UpdateHalaaWorldState(), UpdateWyvernRoostWorldState(), WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by ChangeState(), and Update().
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 231 of file OutdoorPvPNA.cpp.
References ALLIANCE, WorldStateBuilder::AppendState(), 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, NA_UI_TOWER_SLIDER_DISPLAY, NA_UI_TOWER_SLIDER_N, NA_UI_TOWER_SLIDER_POS, WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
| uint32 OPvPCapturePointNA::GetAliveGuardsCount | ( | ) |
Definition at line 33 of file OutdoorPvPNA.cpp.
References HashMapHolder< T >::Find(), OPvPCapturePoint::m_Creatures, 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 66 of file OutdoorPvPNA.cpp.
References m_ControllingFaction.
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 320 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_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, Player::SendNewItem(), Object::SetFlag(), Player::StoreNewItem(), and Player::UpdatePvP().
Reimplemented from OPvPCapturePoint.
Definition at line 395 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.
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 171 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::m_maxValue, OPvPCapturePoint::m_neutralValuePct, OPvPCapturePoint::m_value, NA_UI_TOWER_SLIDER_DISPLAY, NA_UI_TOWER_SLIDER_N, NA_UI_TOWER_SLIDER_POS, and Player::SendUpdateWorldState().
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 184 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::HandlePlayerLeave(), NA_UI_TOWER_SLIDER_DISPLAY, and Player::SendUpdateWorldState().
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 599 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::m_maxValue, OPvPCapturePoint::m_neutralValuePct, OPvPCapturePoint::m_value, NA_UI_TOWER_SLIDER_DISPLAY, NA_UI_TOWER_SLIDER_N, NA_UI_TOWER_SLIDER_POS, and OPvPCapturePoint::SendUpdateWorldState().
|
protected |
Definition at line 90 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::AddObject(), ALLIANCE, AllianceControlGOs, HORDE, 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, and NA_ROOST_W.
Referenced by FactionTakeOver().
|
protected |
Definition at line 71 of file OutdoorPvPNA.cpp.
References OPvPCapturePoint::AddCreature(), ALLIANCE, AllianceControlNPCs, HORDE, HordeControlNPCs, and NA_CONTROL_NPC_NUM.
Referenced by FactionTakeOver().
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 517 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, and OPvPCapturePoint::Update().
|
protected |
Definition at line 609 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, and NA_MAP_HALAA_NEUTRAL.
Referenced by ChangeState(), and FactionTakeOver().
|
protected |
Definition at line 618 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, WYVERN_ALLIANCE, WYVERN_HORDE, WYVERN_NEU_ALLIANCE, and WYVERN_NEU_HORDE.
Referenced by FactionTakeOver(), and HandleOpenGo().
|
private |
Definition at line 271 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), OPvPCapturePointNA(), and Update().
|
private |
Definition at line 273 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), GetControllingFaction(), HandleOpenGo(), OPvPCapturePointNA(), and Update().
|
private |
Definition at line 280 of file OutdoorPvPNA.h.
Referenced by OPvPCapturePointNA(), and Update().
|
private |
Definition at line 272 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), OPvPCapturePointNA(), and Update().
|
private |
Definition at line 278 of file OutdoorPvPNA.h.
Referenced by ChangeState(), FillInitialWorldStates(), OPvPCapturePointNA(), and UpdateHalaaWorldState().
|
private |
Definition at line 279 of file OutdoorPvPNA.h.
Referenced by OPvPCapturePointNA(), and Update().
|
private |
Definition at line 276 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), OPvPCapturePointNA(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 274 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), OPvPCapturePointNA(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 275 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), OPvPCapturePointNA(), and UpdateWyvernRoostWorldState().
|
private |
Definition at line 277 of file OutdoorPvPNA.h.
Referenced by FactionTakeOver(), FillInitialWorldStates(), HandleOpenGo(), OPvPCapturePointNA(), and UpdateWyvernRoostWorldState().