AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvPEP.h"
Public Member Functions | |
OutdoorPvPEP () | |
bool | SetupOutdoorPvP () override |
void | HandlePlayerEnterZone (Player *player, uint32 zone) override |
void | HandlePlayerLeaveZone (Player *player, uint32 zone) override |
bool | Update (uint32 diff) override |
void | FillInitialWorldStates (WorldPacket &data) override |
void | SendRemoveWorldStates (Player *player) override |
void | BuffTeams () |
void | SetControlledState (uint32 index, TeamId teamId) |
Public Member Functions inherited from OutdoorPvP | |
OutdoorPvP ()=default | |
~OutdoorPvP () override | |
void | DeleteSpawns () |
virtual void | FillInitialWorldStates (WorldPacket &) |
virtual bool | HandleAreaTrigger (Player *player, uint32 trigger) |
virtual bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
virtual bool | HandleOpenGo (Player *player, GameObject *go) |
virtual bool | SetupOutdoorPvP () |
void | OnGameObjectCreate (GameObject *go) override |
void | OnGameObjectRemove (GameObject *go) override |
void | OnCreatureCreate (Creature *creature) override |
void | OnCreatureRemove (Creature *creature) override |
void | SendUpdateWorldState (uint32 field, uint32 value) |
virtual bool | Update (uint32 diff) |
virtual void | HandleKill (Player *killer, Unit *killed) |
virtual void | HandleKillImpl (Player *, Unit *) |
bool | IsInsideObjective (Player *player) const |
virtual void | AwardKillBonus (Player *) |
uint32 | GetTypeId () const |
virtual bool | HandleDropFlag (Player *player, uint32 spellId) |
virtual bool | HandleGossipOption (Player *player, Creature *creature, uint32 gossipId) |
virtual bool | CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso) |
void | TeamApplyBuff (TeamId teamId, uint32 spellId, uint32 spellId2=0, Player *sameMapPlr=nullptr) |
Map * | GetMap () const |
Public Member Functions inherited from ZoneScript | |
ZoneScript () | |
virtual | ~ZoneScript () |
virtual uint32 | GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data) |
virtual uint32 | GetGameObjectEntry (ObjectGuid::LowType, uint32 entry) |
virtual void | OnCreatureCreate (Creature *) |
virtual void | OnCreatureRemove (Creature *) |
virtual void | OnGameObjectCreate (GameObject *) |
virtual void | OnGameObjectRemove (GameObject *) |
virtual void | OnUnitDeath (Unit *) |
virtual void | OnCreatureEvade (Creature *) |
virtual ObjectGuid | GetGuidData (uint32) const |
virtual void | SetGuidData (uint32, ObjectGuid) |
virtual uint64 | GetData64 (uint32) const |
virtual void | SetData64 (uint32, uint64) |
virtual uint32 | GetData (uint32) const |
virtual void | SetData (uint32, uint32) |
virtual void | ProcessEvent (WorldObject *, uint32) |
Private Attributes | |
TeamId | EP_ControlsId [EP_TOWER_NUM] |
uint32 | m_AllianceTowersControlled |
uint32 | m_HordeTowersControlled |
OutdoorPvPEP::OutdoorPvPEP | ( | ) |
References OutdoorPvP::_typeId, EP_ControlsId, m_AllianceTowersControlled, m_HordeTowersControlled, OUTDOOR_PVP_EP, and TEAM_NEUTRAL.
void OutdoorPvPEP::BuffTeams | ( | ) |
References OutdoorPvP::_players, EP_AllianceBuffs, EP_HordeBuffs, ObjectAccessor::FindPlayer(), m_AllianceTowersControlled, and m_HordeTowersControlled.
Referenced by Update().
|
overridevirtual |
Reimplemented from OutdoorPvP.
References OutdoorPvP::_capturePoints, EP_UI_TOWER_COUNT_A, EP_UI_TOWER_COUNT_H, EP_UI_TOWER_SLIDER_DISPLAY, EP_UI_TOWER_SLIDER_N, EP_UI_TOWER_SLIDER_POS, m_AllianceTowersControlled, and m_HordeTowersControlled.
Reimplemented from OutdoorPvP.
References Unit::CastSpell(), EP_AllianceBuffs, EP_HordeBuffs, Player::GetTeamId(), OutdoorPvP::HandlePlayerEnterZone(), m_AllianceTowersControlled, m_HordeTowersControlled, and TEAM_ALLIANCE.
Reimplemented from OutdoorPvP.
References EP_AllianceBuffs, EP_HordeBuffs, Player::GetTeamId(), OutdoorPvP::HandlePlayerLeaveZone(), Unit::RemoveAurasDueToSpell(), and TEAM_ALLIANCE.
|
overridevirtual |
Reimplemented from OutdoorPvP.
References EP_CGT_A, EP_CGT_H, EP_CGT_N, EP_CGT_N_A, EP_CGT_N_H, EP_EWT_A, EP_EWT_H, EP_EWT_N, EP_EWT_N_A, EP_EWT_N_H, EP_NPT_A, EP_NPT_H, EP_NPT_N, EP_NPT_N_A, EP_NPT_N_H, EP_PWT_A, EP_PWT_H, EP_PWT_N, EP_PWT_N_A, EP_PWT_N_H, EP_UI_TOWER_COUNT_A, EP_UI_TOWER_COUNT_H, EP_UI_TOWER_SLIDER_DISPLAY, EP_UI_TOWER_SLIDER_N, EP_UI_TOWER_SLIDER_POS, and Player::SendUpdateWorldState().
References EP_ControlsId.
|
overridevirtual |
Reimplemented from OutdoorPvP.
References OutdoorPvP::AddCapturePoint(), EPBuffZones, EPBuffZonesNum, OutdoorPvP::RegisterZone(), and OutdoorPvP::SetMapFromZone().
|
overridevirtual |
Reimplemented from OutdoorPvP.
References BuffTeams(), EP_ControlsId, EP_TOWER_NUM, EP_UI_TOWER_COUNT_A, EP_UI_TOWER_COUNT_H, m_AllianceTowersControlled, m_HordeTowersControlled, OutdoorPvP::SendUpdateWorldState(), TEAM_ALLIANCE, TEAM_HORDE, and OutdoorPvP::Update().
|
private |
Referenced by OutdoorPvPEP(), SetControlledState(), and Update().
|
private |
Referenced by BuffTeams(), FillInitialWorldStates(), HandlePlayerEnterZone(), OutdoorPvPEP(), and Update().
|
private |
Referenced by BuffTeams(), FillInitialWorldStates(), HandlePlayerEnterZone(), OutdoorPvPEP(), and Update().