AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvPZM.h"
Public Member Functions | |
OPvPCapturePointZM_GraveYard (OutdoorPvP *pvp) | |
bool | Update (uint32 diff) override |
void | ChangeState () override |
void | FillInitialWorldStates (WorldPacket &data) override |
void | UpdateTowerState () |
int32 | HandleOpenGo (Player *player, GameObject *go) override |
void | SetBeaconState (TeamId controlling_teamId) |
bool | HandleGossipOption (Player *player, Creature *creature, uint32 gossipid) override |
bool | HandleDropFlag (Player *player, uint32 spellId) override |
bool | CanTalkTo (Player *player, Creature *creature, GossipMenuItems const &gso) override |
uint32 | GetGraveYardState () 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 Attributes | |
TeamId | m_BothControllingFactionId |
ObjectGuid | m_FlagCarrierGUID |
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 |
Private Attributes | |
uint32 | m_GraveYardState |
Additional Inherited Members | |
Public Attributes inherited from OPvPCapturePoint | |
ObjectGuid::LowType | m_capturePointSpawnId {} |
GameObject * | _capturePoint {} |
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 () |
OPvPCapturePointZM_GraveYard::OPvPCapturePointZM_GraveYard | ( | OutdoorPvP * | pvp | ) |
References OPvPCapturePoint::AddCreature(), OPvPCapturePoint::AddObject(), ObjectGuid::Clear(), go_type::entry, creature_type::entry, m_BothControllingFactionId, m_FlagCarrierGUID, m_GraveYardState, go_type::map, creature_type::map, go_type::o, creature_type::o, go_type::rot0, go_type::rot1, go_type::rot2, go_type::rot3, TEAM_NEUTRAL, go_type::x, creature_type::x, go_type::y, creature_type::y, go_type::z, creature_type::z, ZM_ALLIANCE_FIELD_SCOUT, ZM_AllianceFieldScout, ZM_Banner_N, ZM_GRAVEYARD_N, ZM_HORDE_FIELD_SCOUT, and ZM_HordeFieldScout.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_creatureTypes, ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetTeamId(), m_BothControllingFactionId, m_FlagCarrierGUID, m_GraveYardState, TEAM_ALLIANCE, TEAM_HORDE, ZM_ALLIANCE_FIELD_SCOUT, ZM_GRAVEYARD_A, ZM_GRAVEYARD_H, and ZM_HORDE_FIELD_SCOUT.
|
inlineoverridevirtual |
Implements OPvPCapturePoint.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References m_BothControllingFactionId, m_GraveYardState, TEAM_ALLIANCE, TEAM_HORDE, ZM_GRAVEYARD_A, ZM_GRAVEYARD_H, ZM_GRAVEYARD_N, ZM_MAP_ALLIANCE_FLAG_NOT_READY, ZM_MAP_ALLIANCE_FLAG_READY, ZM_MAP_GRAVEYARD_A, ZM_MAP_GRAVEYARD_H, ZM_MAP_GRAVEYARD_N, ZM_MAP_HORDE_FLAG_NOT_READY, and ZM_MAP_HORDE_FLAG_READY.
uint32 OPvPCapturePointZM_GraveYard::GetGraveYardState | ( | ) | const |
References m_GraveYardState.
Referenced by OutdoorPvPZM::HandlePlayerEnterZone().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References ObjectGuid::Clear(), m_FlagCarrierGUID, ZM_BATTLE_STANDARD_A, and ZM_BATTLE_STANDARD_H.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_creatureTypes, Unit::CastSpell(), Object::GetGUID(), Creature::GetSpawnId(), m_FlagCarrierGUID, Player::PlayerTalkClass, PlayerMenu::SendCloseGossip(), UpdateTowerState(), ZM_ALLIANCE_FIELD_SCOUT, ZM_BATTLE_STANDARD_A, ZM_BATTLE_STANDARD_H, and ZM_HORDE_FIELD_SCOUT.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_pvp, OPvPCapturePoint::AddObject(), OPvPCapturePoint::DelObject(), go_type::entry, OPvPCapturePoint::HandleOpenGo(), Unit::HasAura(), LANG_OPVP_ZM_CAPTURE_GY_A, LANG_OPVP_ZM_CAPTURE_GY_H, LANG_OPVP_ZM_LOSE_GY_A, LANG_OPVP_ZM_LOSE_GY_H, m_GraveYardState, go_type::map, go_type::o, Unit::RemoveAurasDueToSpell(), go_type::rot0, go_type::rot1, go_type::rot2, go_type::rot3, sGraveyard, sObjectMgr, sWorld, TEAM_ALLIANCE, TEAM_HORDE, OutdoorPvP::TeamApplyBuff(), UpdateTowerState(), go_type::x, go_type::y, go_type::z, ZM_Banner_A, ZM_Banner_H, ZM_BATTLE_STANDARD_A, ZM_BATTLE_STANDARD_H, ZM_CAPTURE_BUFF, ZM_GRAVEYARD_A, ZM_GRAVEYARD_H, ZM_GRAVEYARD_ID, and ZM_GRAVEYARD_ZONE.
void OPvPCapturePointZM_GraveYard::SetBeaconState | ( | TeamId | controlling_teamId | ) |
References ObjectGuid::Clear(), ObjectAccessor::FindPlayer(), m_BothControllingFactionId, m_FlagCarrierGUID, m_GraveYardState, Unit::RemoveAurasDueToSpell(), TEAM_ALLIANCE, TEAM_HORDE, UpdateTowerState(), ZM_BATTLE_STANDARD_A, ZM_BATTLE_STANDARD_H, ZM_GRAVEYARD_A, ZM_GRAVEYARD_H, and ZM_GRAVEYARD_N.
Referenced by OutdoorPvPZM::Update().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::_oldState, and OPvPCapturePoint::_state.
void OPvPCapturePointZM_GraveYard::UpdateTowerState | ( | ) |
References OPvPCapturePoint::_pvp, m_BothControllingFactionId, m_GraveYardState, OutdoorPvP::SendUpdateWorldState(), TEAM_ALLIANCE, TEAM_HORDE, ZM_GRAVEYARD_A, ZM_GRAVEYARD_H, ZM_GRAVEYARD_N, ZM_MAP_ALLIANCE_FLAG_NOT_READY, ZM_MAP_ALLIANCE_FLAG_READY, ZM_MAP_GRAVEYARD_A, ZM_MAP_GRAVEYARD_H, ZM_MAP_GRAVEYARD_N, ZM_MAP_HORDE_FLAG_NOT_READY, and ZM_MAP_HORDE_FLAG_READY.
Referenced by HandleGossipOption(), HandleOpenGo(), and SetBeaconState().
|
protected |
Referenced by CanTalkTo(), FillInitialWorldStates(), OPvPCapturePointZM_GraveYard(), SetBeaconState(), and UpdateTowerState().
|
protected |
Referenced by CanTalkTo(), HandleDropFlag(), HandleGossipOption(), OPvPCapturePointZM_GraveYard(), and SetBeaconState().
|
private |