AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvPSI.h"
Public Member Functions | |
OutdoorPvPSI () | |
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 |
bool | HandleAreaTrigger (Player *player, uint32 trigger) override |
bool | HandleDropFlag (Player *player, uint32 spellId) override |
bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) override |
void | UpdateWorldState () |
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 | |
uint32 | m_Gathered_A |
uint32 | m_Gathered_H |
TeamId | m_LastController |
OutdoorPvPSI::OutdoorPvPSI | ( | ) |
References OutdoorPvP::_typeId, m_Gathered_A, m_Gathered_H, m_LastController, OUTDOOR_PVP_SI, and TEAM_NEUTRAL.
|
overridevirtual |
Reimplemented from OutdoorPvP.
References m_Gathered_A, m_Gathered_H, SI_GATHERED_A, SI_GATHERED_H, SI_MAX_RESOURCES, and SI_SILITHYST_MAX.
Reimplemented from OutdoorPvP.
References Unit::CastSpell(), Unit::GetLevel(), Player::GetReputationMgr(), Player::GetTeamId(), Unit::HasAura(), Player::KilledMonsterCredit(), LANG_OPVP_SI_CAPTURE_A, LANG_OPVP_SI_CAPTURE_H, m_Gathered_A, m_Gathered_H, m_LastController, ReputationMgr::ModifyReputation(), OutdoorPvPSIBuffZones, Unit::RemoveAurasDueToSpell(), Player::RewardHonor(), sFactionStore, SI_AREATRIGGER_A, SI_AREATRIGGER_H, SI_CENARION_FAVOR, SI_MAX_RESOURCES, SI_SILITHYST_FLAG, SI_TRACES_OF_SILITHYST, SI_TURNIN_QUEST_CM_A, SI_TURNIN_QUEST_CM_H, sObjectMgr, sOutdoorPvPMgr, sWorld, TEAM_ALLIANCE, TEAM_HORDE, OutdoorPvP::TeamApplyBuff(), and UpdateWorldState().
|
overridevirtual |
Reimplemented from OutdoorPvP.
References Unit::CastSpell(), GameObject::Delete(), GameObjectTemplate::entry, GameObject::GetGOInfo(), GameObject::SetRespawnTime(), SI_SILITHYST_FLAG, SI_SILITHYST_FLAG_GO_SPELL, and SI_SILITHYST_MOUND.
Reimplemented from OutdoorPvP.
References Map::AddToMap(), GameObject::Create(), Map::GenerateLowGuid(), WorldObject::GetDistance(), WorldObject::GetMap(), Position::GetOrientation(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeamId(), GO_STATE_READY, AreaTrigger::radius, GameObject::SetRespawnTime(), SI_AREATRIGGER_A, SI_AREATRIGGER_H, SI_SILITHYST_FLAG, SI_SILITHYST_MOUND, sObjectMgr, TEAM_ALLIANCE, TEAM_HORDE, AreaTrigger::x, AreaTrigger::y, and AreaTrigger::z.
Reimplemented from OutdoorPvP.
References Unit::CastSpell(), Player::GetTeamId(), OutdoorPvP::HandlePlayerEnterZone(), m_LastController, and SI_CENARION_FAVOR.
Reimplemented from OutdoorPvP.
References OutdoorPvP::HandlePlayerLeaveZone(), Unit::RemoveAurasDueToSpell(), and SI_CENARION_FAVOR.
|
overridevirtual |
Reimplemented from OutdoorPvP.
References Player::SendUpdateWorldState(), SI_GATHERED_A, SI_GATHERED_H, and SI_SILITHYST_MAX.
|
overridevirtual |
Reimplemented from OutdoorPvP.
References OutdoorPvPSIBuffZones, OutdoorPvPSIBuffZonesNum, OutdoorPvP::RegisterZone(), and OutdoorPvP::SetMapFromZone().
|
overridevirtual |
Reimplemented from OutdoorPvP.
void OutdoorPvPSI::UpdateWorldState | ( | ) |
References m_Gathered_A, m_Gathered_H, OutdoorPvP::SendUpdateWorldState(), SI_GATHERED_A, SI_GATHERED_H, SI_MAX_RESOURCES, and SI_SILITHYST_MAX.
Referenced by HandleAreaTrigger().
|
private |
Referenced by FillInitialWorldStates(), HandleAreaTrigger(), OutdoorPvPSI(), and UpdateWorldState().
|
private |
Referenced by FillInitialWorldStates(), HandleAreaTrigger(), OutdoorPvPSI(), and UpdateWorldState().
|
private |
Referenced by HandleAreaTrigger(), HandlePlayerEnterZone(), and OutdoorPvPSI().