![]() |
TrinityCore
|
Inheritance diagram for battleground_battle_for_gilneas:Public Member Functions | |
| battleground_battle_for_gilneas (BattlegroundMap *map) | |
| void | OnUpdate (uint32 diff) override |
| void | OnStart () override |
| void | ProcessEvent (WorldObject *source, uint32 eventId, WorldObject *invoker) override |
| void | HandleAssaultPoint (GameObject const *capturePoint, Player *player) |
| void | HandleDefendPoint (GameObject const *capturePoint, Player *player) |
| void | HandleCapturePoint (GameObject const *capturePoint, TeamId const teamId) |
| void | CalculateTeamNodes (uint8 &alliance, uint8 &horde) const |
| void | OnGameObjectCreate (GameObject *gameobject) override |
Public Member Functions inherited from BattlegroundScript | |
| BattlegroundScript (BattlegroundMap *map) noexcept | |
| ~BattlegroundScript () override=default | |
| virtual void | OnInit () |
| virtual void | OnPrepareStage1 () |
| virtual void | OnPrepareStage2 () |
| virtual void | OnPrepareStage3 () |
| virtual void | OnEnd (Team winner) |
| virtual void | OnPlayerJoined (Player *player, bool inBattleground) |
| virtual void | OnPlayerLeft (Player *player) |
| virtual void | OnPlayerKilled (Player *victim, Player *killer) |
| virtual void | OnUnitKilled (Creature *victim, Unit *killer) |
| virtual Team | GetPrematureWinner () |
| void | TriggerGameEvent (uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override |
Public Member Functions inherited from ZoneScript | |
| ZoneScript () noexcept | |
| ZoneScript (ZoneScript const &right) | |
| ZoneScript (ZoneScript &&right) noexcept | |
| ZoneScript & | operator= (ZoneScript const &right) |
| ZoneScript & | operator= (ZoneScript &&right) noexcept |
| 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 | OnGameObjectRemove (GameObject *) |
| virtual void | OnAreaTriggerCreate (AreaTrigger *areaTrigger) |
| virtual void | OnAreaTriggerRemove (AreaTrigger *areaTrigger) |
| virtual void | OnUnitDeath (Unit *unit) |
| virtual void | OnCreatureGroupDepleted (CreatureGroup const *creatureGroup) |
| 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 | DoAction (uint32 actionId, WorldObject *source=nullptr, WorldObject *target=nullptr) |
| virtual void | OnFlagStateChange (GameObject *flagInBase, FlagState oldValue, FlagState newValue, Player *player) |
| virtual bool | CanCaptureFlag (AreaTrigger *areaTrigger, Player *player) |
| virtual void | OnCaptureFlag (AreaTrigger *areaTrigger, Player *player) |
| virtual void | OnFlagTaken (GameObject *flag, Player *player) |
| virtual void | OnFlagDropped (ObjectGuid const &flagGuid, Player *player) |
Static Public Attributes | |
| static constexpr uint32 | TICK_POINTS [4] = { 0, 1, 3, 30 } |
| static constexpr uint32 | WARNING_NEAR_VICTORY_SCORE = 1200 |
| static constexpr uint32 | MAX_TEAM_SCORE = 1500 |
Private Attributes | |
| TimeTracker | _tickTracker |
| GuidVector | _capturePoints |
| GuidVector | _doors |
| std::array< bool, PVP_TEAMS_COUNT > | _isInformedNearVictory |
| std::unordered_map< uint32, BattleForGilneasCapturePointData > | _capturePointData |
Additional Inherited Members | |
Protected Member Functions inherited from BattlegroundScript | |
| void | UpdateWorldState (int32 worldStateId, int32 value, bool hidden=false) const |
Protected Attributes inherited from BattlegroundScript | |
| BattlegroundMap * | battlegroundMap |
| Battleground * | battleground |
Definition at line 92 of file battleground_battle_for_gilneas.cpp.
|
inlineexplicit |
Definition at line 99 of file battleground_battle_for_gilneas.cpp.
References _capturePointData, _isInformedNearVictory, _tickTracker, BattleForGilneas::WorldStates::AllianceLighthouse, BattleForGilneas::WorldStates::AllianceMines, BattleForGilneas::WorldStates::AllianceWaterworks, BattleForGilneas::GameObjects::CapturePointLighthouse, BattleForGilneas::GameObjects::CapturePointMines, BattleForGilneas::GameObjects::CapturePointWaterworks, BattleForGilneas::WorldStates::HordeLighthouse, BattleForGilneas::WorldStates::HordeMines, BattleForGilneas::WorldStates::HordeWaterworks, and TimeTracker::Reset().
|
inline |
Definition at line 266 of file battleground_battle_for_gilneas.cpp.
References _capturePoints, WorldPackets::Battleground::AllianceCaptured, BattlegroundScript::battlegroundMap, Map::GetGameObject(), Map::GetWorldStateValue(), and WorldPackets::Battleground::HordeCaptured.
Referenced by OnUpdate().
|
inline |
Definition at line 206 of file battleground_battle_for_gilneas.cpp.
References _capturePointData, ALLIANCE, BattleForGilneas::PvpStats::BasesAssaulted, BattlegroundScript::battleground, Object::GetEntry(), BaseEntity::GetGUID(), Battleground::GetPlayerTeam(), HORDE, Battleground::PlaySoundToAll(), BattleForGilneas::Sounds::PvpFlagTakenAlliance, BattleForGilneas::Sounds::PvpFlagTakenHorde, Battleground::UpdatePvpStat(), and BattlegroundScript::UpdateWorldState().
Referenced by ProcessEvent().
|
inline |
Definition at line 250 of file battleground_battle_for_gilneas.cpp.
References _capturePointData, BattlegroundScript::battleground, Object::GetEntry(), Battleground::PlaySoundToAll(), BattleForGilneas::Sounds::PvpFlagCapturedAlliance, BattleForGilneas::Sounds::PvpFlagCapturedHorde, TEAM_ALLIANCE, TEAM_HORDE, and BattlegroundScript::UpdateWorldState().
Referenced by ProcessEvent().
|
inline |
Definition at line 228 of file battleground_battle_for_gilneas.cpp.
References _capturePointData, ALLIANCE, BattleForGilneas::PvpStats::BasesDefended, BattlegroundScript::battleground, Object::GetEntry(), BaseEntity::GetGUID(), Battleground::GetPlayerTeam(), HORDE, Battleground::PlaySoundToAll(), BattleForGilneas::Sounds::PvpFlagCapturedAlliance, BattleForGilneas::Sounds::PvpFlagCapturedHorde, Battleground::UpdatePvpStat(), and BattlegroundScript::UpdateWorldState().
Referenced by ProcessEvent().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 291 of file battleground_battle_for_gilneas.cpp.
References _capturePoints, _doors, BattleForGilneas::GameObjects::AllianceDoor, BattleForGilneas::GameObjects::AllianceGate, GAMEOBJECT_TYPE_CAPTURE_POINT, Object::GetEntry(), GameObject::GetGoType(), BaseEntity::GetGUID(), BattleForGilneas::GameObjects::HordeGate1, and BattleForGilneas::GameObjects::HordeGate2.
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 175 of file battleground_battle_for_gilneas.cpp.
References _doors, BattlegroundScript::battlegroundMap, Map::GetGameObject(), BattleForGilneas::Events::StartBattle, and BattlegroundScript::TriggerGameEvent().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 109 of file battleground_battle_for_gilneas.cpp.
References _isInformedNearVictory, _tickTracker, Battleground::AddPoint(), ALLIANCE, BattleForGilneas::Texts::AllianceNearVictory, BattlegroundScript::battleground, CalculateTeamNodes(), CHAT_MSG_BG_SYSTEM_NEUTRAL, Battleground::EndBattleground(), GetOtherTeam(), Battleground::GetStatus(), Battleground::GetTeamScore(), BattleForGilneas::WorldStates::HadResourceDisadvantageAlliance, BattleForGilneas::WorldStates::HadResourceDisadvantageHorde, HORDE, BattleForGilneas::Texts::HordeNearVictory, MAX_TEAM_SCORE, BattleForGilneas::WorldStates::OccupiedBasesAlliance, BattleForGilneas::WorldStates::OccupiedBasesHorde, TimeTracker::Passed(), PVP_TEAMS_COUNT, TimeTracker::Reset(), BattleForGilneas::WorldStates::ResourcesAlliance, BattleForGilneas::WorldStates::ResourcesHorde, Battleground::SendBroadcastText(), Battleground::SetTeamPoint(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, TEAM_OTHER, TICK_POINTS, TimeTracker::Update(), BattlegroundScript::UpdateWorldState(), and WARNING_NEAR_VICTORY_SCORE.
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 188 of file battleground_battle_for_gilneas.cpp.
References GAMEOBJECT_TYPE_CAPTURE_POINT, HandleAssaultPoint(), HandleCapturePoint(), HandleDefendPoint(), TEAM_ALLIANCE, TEAM_HORDE, Object::ToGameObject(), and Object::ToPlayer().
|
private |
Definition at line 314 of file battleground_battle_for_gilneas.cpp.
Referenced by battleground_battle_for_gilneas(), HandleAssaultPoint(), HandleCapturePoint(), and HandleDefendPoint().
|
private |
Definition at line 311 of file battleground_battle_for_gilneas.cpp.
Referenced by CalculateTeamNodes(), and OnGameObjectCreate().
|
private |
Definition at line 312 of file battleground_battle_for_gilneas.cpp.
Referenced by OnGameObjectCreate(), and OnStart().
|
private |
Definition at line 313 of file battleground_battle_for_gilneas.cpp.
Referenced by battleground_battle_for_gilneas(), and OnUpdate().
|
private |
Definition at line 310 of file battleground_battle_for_gilneas.cpp.
Referenced by battleground_battle_for_gilneas(), and OnUpdate().
|
staticconstexpr |
Definition at line 97 of file battleground_battle_for_gilneas.cpp.
Referenced by OnUpdate().
|
staticconstexpr |
Definition at line 94 of file battleground_battle_for_gilneas.cpp.
Referenced by OnUpdate().
|
staticconstexpr |
Definition at line 96 of file battleground_battle_for_gilneas.cpp.
Referenced by OnUpdate().