|
| OutdoorPvPTF () |
|
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 | SaveRequiredWorldStates () const |
|
void | ResetZoneToTeamControlled (TeamId team) |
|
void | RecalculateClientUILockTime () |
|
uint32 | GetAllianceTowersControlled () const |
|
void | SetAllianceTowersControlled (uint32 count) |
|
uint32 | GetHordeTowersControlled () const |
|
void | SetHordeTowersControlled (uint32 count) |
|
bool | IsLocked () const |
|
| 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 |
|
| 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) |
|
|
typedef std::map< ObjectGuid::LowType, OPvPCapturePoint * > | OPvPCapturePointMap |
|
typedef std::pair< ObjectGuid::LowType, GameObject * > | GoScriptPair |
|
typedef std::pair< ObjectGuid::LowType, Creature * > | CreatureScriptPair |
|
void | BroadcastPacket (WorldPacket &data) const |
|
virtual void | SendRemoveWorldStates (Player *) |
|
virtual void | HandlePlayerEnterZone (Player *player, uint32 zone) |
|
virtual void | HandlePlayerLeaveZone (Player *player, uint32 zone) |
|
virtual void | HandlePlayerResurrects (Player *player, uint32 zone) |
|
void | AddCapturePoint (OPvPCapturePoint *cp) |
|
OPvPCapturePoint * | GetCapturePoint (ObjectGuid::LowType spawnId) const |
|
void | RegisterZone (uint32 zoneid) |
|
bool | HasPlayer (Player const *player) const |
|
void | TeamCastSpell (TeamId team, int32 spellId, Player *sameMapPlr=nullptr) |
|
void | SetMapFromZone (uint32 zone) |
|
OPvPCapturePointMap | _capturePoints |
|
std::array< PlayerSet, 2 > | _players |
|
uint32 | _typeId {} |
|
bool | _sendUpdate { true } |
|
Map * | _map {} |
|
std::unordered_map< ObjectGuid::LowType, GameObject * > | _goScriptStore |
|
std::unordered_map< ObjectGuid::LowType, Creature * > | _creatureScriptStore |
|
bool OutdoorPvPTF::SetupOutdoorPvP |
( |
| ) |
|
|
overridevirtual |
Reimplemented from OutdoorPvP.
332{
335
343
344
347
349
355
357 {
358
359
361 if (lockRemainingTime > 0)
362 {
365
369
371 }
372 else
373 {
374
377 }
378 }
379
380 return true;
381}
std::int32_t int32
Definition: Define.h:103
std::uint8_t uint8
Definition: Define.h:109
const uint32 OutdoorPvPTFBuffZones[OutdoorPvPTFBuffZonesNum]
Definition: OutdoorPvPTF.h:25
@ TF_TOWER_SE
Definition: OutdoorPvPTF.h:51
@ TF_TOWER_N
Definition: OutdoorPvPTF.h:49
@ TF_TOWER_NE
Definition: OutdoorPvPTF.h:50
@ TF_TOWER_NW
Definition: OutdoorPvPTF.h:48
@ TF_TOWER_S
Definition: OutdoorPvPTF.h:52
const uint8 OutdoorPvPTFBuffZonesNum
Definition: OutdoorPvPTF.h:23
TeamId
Definition: SharedDefines.h:759
void RegisterZone(uint32 zoneid)
Definition: OutdoorPvP.cpp:641
void SetMapFromZone(uint32 zone)
Definition: OutdoorPvP.cpp:718
void AddCapturePoint(OPvPCapturePoint *cp)
Definition: OutdoorPvP.h:254
void RecalculateClientUILockTime()
Definition: OutdoorPvPTF.h:171
void SaveRequiredWorldStates() const
Definition: OutdoorPvPTF.cpp:110
void ResetZoneToTeamControlled(TeamId team)
Definition: OutdoorPvPTF.cpp:122
References OutdoorPvP::AddCapturePoint(), first_digit, GameTime::GetGameTime(), hours_left, IN_MILLISECONDS, m_AllianceTowersControlled, m_HordeTowersControlled, m_IsLocked, m_JustLocked, m_LockTimer, m_LockTimerUpdate, OutdoorPvPTFBuffZones, OutdoorPvPTFBuffZonesNum, RecalculateClientUILockTime(), OutdoorPvP::RegisterZone(), ResetZoneToTeamControlled(), SaveRequiredWorldStates(), second_digit, OutdoorPvP::SetMapFromZone(), sWorld, TEAM_ALLIANCE, TEAM_HORDE, TF_LOCK_TIME, TF_TOWER_N, TF_TOWER_NE, TF_TOWER_NW, TF_TOWER_S, TF_TOWER_SE, TF_UI_LOCKED_TIME_HOURS, TF_UI_TOWER_COUNT_A, TF_UI_TOWER_COUNT_H, and TF_UI_TOWERS_CONTROLLED_DISPLAY.