![]() |
TrinityCore
|
Inheritance diagram for battleground_arathi_basin:Public Member Functions | |
| battleground_arathi_basin (BattlegroundMap *map) | |
| void | OnInit () override |
| void | OnUpdate (uint32 diff) override |
| void | OnStart () override |
| void | _CalculateTeamNodes (uint8 &alliance, uint8 &horde) const |
| Team | GetPrematureWinner () override |
| void | ProcessEvent (WorldObject *, uint32 eventId, WorldObject *invoker) override |
| void | OnCreatureCreate (Creature *creature) override |
| void | OnGameObjectCreate (GameObject *gameObject) override |
| void | OnEnd (Team winner) override |
Public Member Functions inherited from BattlegroundScript | |
| BattlegroundScript (BattlegroundMap *map) noexcept | |
| ~BattlegroundScript () override=default | |
| virtual void | OnPrepareStage1 () |
| virtual void | OnPrepareStage2 () |
| virtual void | OnPrepareStage3 () |
| 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) |
| 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 | 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 | BG_AB_TickInterval = 2000 |
| static constexpr uint32 | BG_AB_TickPoints [6] = { 0, 2, 3, 4, 7, 60 } |
| static constexpr uint32 | NORMAL_HONOR_TICKS = 160 |
| static constexpr uint32 | WEEKEND_HONOR_TICKS = 260 |
| static constexpr uint32 | NORMAL_REPUTATION_TICKS = 120 |
| static constexpr uint32 | WEEKEND_REPUTATION_TICKS = 160 |
Private Attributes | |
| uint32 | _lastTick |
| std::array< uint32, PVP_TEAMS_COUNT > | _honorScoreTics |
| std::array< uint32, PVP_TEAMS_COUNT > | _reputationScoreTics |
| bool | _isInformedNearVictory |
| uint32 | _honorTics |
| uint32 | _reputationTics |
| GuidVector | _gameobjectsToRemoveOnMatchStart |
| GuidVector | _creaturesToRemoveOnMatchStart |
| GuidVector | _doors |
| GuidVector | _capturePoints |
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 29 of file battleground_arathi_basin.cpp.
| Enumerator | |
|---|---|
| BG_AB_TEXT_ALLIANCE_NEAR_VICTORY | |
| BG_AB_TEXT_HORDE_NEAR_VICTORY | |
Definition at line 96 of file battleground_arathi_basin.cpp.
| Enumerator | |
|---|---|
| BG_AB_NPC_THE_BLACK_BRIDE | |
| BG_AB_NPC_RADULF_LEDER | |
Definition at line 108 of file battleground_arathi_basin.cpp.
Definition at line 45 of file battleground_arathi_basin.cpp.
Definition at line 114 of file battleground_arathi_basin.cpp.
| Enumerator | |
|---|---|
| PVP_STAT_BASES_ASSAULTED | |
| PVP_STAT_BASES_DEFENDED | |
Definition at line 39 of file battleground_arathi_basin.cpp.
| Enumerator | |
|---|---|
| BG_AB_WARNING_NEAR_VICTORY_SCORE | |
| BG_AB_MAX_TEAM_SCORE | |
Definition at line 102 of file battleground_arathi_basin.cpp.
Definition at line 85 of file battleground_arathi_basin.cpp.
Definition at line 127 of file battleground_arathi_basin.cpp.
|
inlineexplicit |
Definition at line 183 of file battleground_arathi_basin.cpp.
References _honorScoreTics, _honorTics, _reputationScoreTics, _reputationTics, BattlegroundScript::battleground, Battleground::GetTypeID(), NORMAL_HONOR_TICKS, NORMAL_REPUTATION_TICKS, sBattlegroundMgr, WEEKEND_HONOR_TICKS, and WEEKEND_REPUTATION_TICKS.
|
inline |
Definition at line 292 of file battleground_arathi_basin.cpp.
References _capturePoints, WorldPackets::Battleground::AllianceCaptured, BattlegroundScript::battlegroundMap, Map::GetGameObject(), Map::GetWorldStateValue(), and WorldPackets::Battleground::HordeCaptured.
Referenced by GetPrematureWinner(), and OnUpdate().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 317 of file battleground_arathi_basin.cpp.
References _CalculateTeamNodes(), ALLIANCE, BattlegroundScript::GetPrematureWinner(), and HORDE.
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 542 of file battleground_arathi_basin.cpp.
References _creaturesToRemoveOnMatchStart, BG_AB_NPC_RADULF_LEDER, BG_AB_NPC_THE_BLACK_BRIDE, Object::GetEntry(), and BaseEntity::GetGUID().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 574 of file battleground_arathi_basin.cpp.
References ALLIANCE, BattlegroundScript::battleground, Battleground::GetBonusHonorFromKill(), HORDE, BattlegroundScript::OnEnd(), and Battleground::RewardHonorToTeam().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 555 of file battleground_arathi_basin.cpp.
References _capturePoints, _doors, _gameobjectsToRemoveOnMatchStart, BG_AB_OBJECTID_ALLIANCE_DOOR, BG_AB_OBJECTID_GHOST_GATE, BG_AB_OBJECTID_HORDE_DOOR, GAMEOBJECT_TYPE_CAPTURE_POINT, Object::GetEntry(), GameObject::GetGOInfo(), BaseEntity::GetGUID(), and GameObjectTemplate::type.
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 193 of file battleground_arathi_basin.cpp.
References BG_AB_MAX_TEAM_SCORE, BG_AB_WARNING_NEAR_VICTORY_SCORE, BG_AB_WS_RESOURCES_MAX, BG_AB_WS_RESOURCES_WARNING, BattlegroundScript::OnInit(), and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 286 of file battleground_arathi_basin.cpp.
References AB_EVENT_START_BATTLE, and BattlegroundScript::TriggerGameEvent().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 201 of file battleground_arathi_basin.cpp.
References _CalculateTeamNodes(), _honorScoreTics, _honorTics, _isInformedNearVictory, _lastTick, _reputationScoreTics, _reputationTics, Battleground::AddPoint(), ALLIANCE, BattlegroundScript::battleground, BG_AB_MAX_TEAM_SCORE, BG_AB_SOUND_NEAR_VICTORY_ALLIANCE, BG_AB_SOUND_NEAR_VICTORY_HORDE, BG_AB_TEXT_ALLIANCE_NEAR_VICTORY, BG_AB_TEXT_HORDE_NEAR_VICTORY, BG_AB_TickInterval, BG_AB_TickPoints, BG_AB_WARNING_NEAR_VICTORY_SCORE, BG_AB_WS_HAD_500_DISADVANTAGE_ALLIANCE, BG_AB_WS_HAD_500_DISADVANTAGE_HORDE, BG_AB_WS_OCCUPIED_BASES_ALLY, BG_AB_WS_OCCUPIED_BASES_HORDE, BG_AB_WS_RESOURCES_ALLY, BG_AB_WS_RESOURCES_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), Battleground::GetStatus(), Battleground::GetTeamScore(), HORDE, Battleground::PlaySoundToAll(), PVP_TEAMS_COUNT, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), Battleground::SendBroadcastText(), Battleground::SetTeamPoint(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, TEAM_OTHER, and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 332 of file battleground_arathi_basin.cpp.
References _creaturesToRemoveOnMatchStart, _doors, _gameobjectsToRemoveOnMatchStart, AB_EVENT_CAPTURE_BLACKSMITH_ALLIANCE, AB_EVENT_CAPTURE_BLACKSMITH_HORDE, AB_EVENT_CAPTURE_FARM_ALLIANCE, AB_EVENT_CAPTURE_FARM_HORDE, AB_EVENT_CAPTURE_GOLD_MINE_ALLIANCE, AB_EVENT_CAPTURE_GOLD_MINE_HORDE, AB_EVENT_CAPTURE_LUMBER_MILL_ALLIANCE, AB_EVENT_CAPTURE_LUMBER_MILL_HORDE, AB_EVENT_CAPTURE_STABLES_ALLIANCE, AB_EVENT_CAPTURE_STABLES_HORDE, AB_EVENT_CONTESTED_BLACKSMITH_ALLIANCE, AB_EVENT_CONTESTED_BLACKSMITH_HORDE, AB_EVENT_CONTESTED_FARM_ALLIANCE, AB_EVENT_CONTESTED_FARM_HORDE, AB_EVENT_CONTESTED_GOLD_MINE_ALLIANCE, AB_EVENT_CONTESTED_GOLD_MINE_HORDE, AB_EVENT_CONTESTED_LUMBER_MILL_ALLIANCE, AB_EVENT_CONTESTED_LUMBER_MILL_HORDE, AB_EVENT_CONTESTED_STABLES_ALLIANCE, AB_EVENT_CONTESTED_STABLES_HORDE, AB_EVENT_DEFENDED_BLACKSMITH_ALLIANCE, AB_EVENT_DEFENDED_BLACKSMITH_HORDE, AB_EVENT_DEFENDED_FARM_ALLIANCE, AB_EVENT_DEFENDED_FARM_HORDE, AB_EVENT_DEFENDED_GOLD_MINE_ALLIANCE, AB_EVENT_DEFENDED_GOLD_MINE_HORDE, AB_EVENT_DEFENDED_LUMBER_MILL_ALLIANCE, AB_EVENT_DEFENDED_LUMBER_MILL_HORDE, AB_EVENT_DEFENDED_STABLES_ALLIANCE, AB_EVENT_DEFENDED_STABLES_HORDE, AB_EVENT_START_BATTLE, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, BG_AB_SOUND_NODE_ASSAULTED_ALLIANCE, BG_AB_SOUND_NODE_ASSAULTED_HORDE, BG_AB_SOUND_NODE_CAPTURED_ALLIANCE, BG_AB_SOUND_NODE_CAPTURED_HORDE, BG_AB_WS_BLACKSMITH_ALLIANCE_CONTROL_STATE, BG_AB_WS_BLACKSMITH_HORDE_CONTROL_STATE, BG_AB_WS_FARM_ALLIANCE_CONTROL_STATE, BG_AB_WS_FARM_HORDE_CONTROL_STATE, BG_AB_WS_GOLD_MINE_ALLIANCE_CONTROL_STATE, BG_AB_WS_GOLD_MINE_HORDE_CONTROL_STATE, BG_AB_WS_LUMBER_MILL_ALLIANCE_CONTROL_STATE, BG_AB_WS_LUMBER_MILL_HORDE_CONTROL_STATE, BG_AB_WS_STABLES_ALLIANCE_CONTROL_STATE, BG_AB_WS_STABLES_HORDE_CONTROL_STATE, Map::GetCreature(), Map::GetGameObject(), Battleground::PlaySoundToAll(), PVP_STAT_BASES_ASSAULTED, PVP_STAT_BASES_DEFENDED, TC_LOG_WARN, Object::ToPlayer(), Battleground::UpdatePvpStat(), and BattlegroundScript::UpdateWorldState().
|
private |
Definition at line 599 of file battleground_arathi_basin.cpp.
Referenced by _CalculateTeamNodes(), and OnGameObjectCreate().
|
private |
Definition at line 597 of file battleground_arathi_basin.cpp.
Referenced by OnCreatureCreate(), and ProcessEvent().
|
private |
Definition at line 598 of file battleground_arathi_basin.cpp.
Referenced by OnGameObjectCreate(), and ProcessEvent().
|
private |
Definition at line 596 of file battleground_arathi_basin.cpp.
Referenced by OnGameObjectCreate(), and ProcessEvent().
|
private |
Definition at line 590 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin(), and OnUpdate().
|
private |
Definition at line 593 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin(), and OnUpdate().
|
private |
Definition at line 592 of file battleground_arathi_basin.cpp.
Referenced by OnUpdate().
|
private |
Definition at line 589 of file battleground_arathi_basin.cpp.
Referenced by OnUpdate().
|
private |
Definition at line 591 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin(), and OnUpdate().
|
private |
Definition at line 594 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin(), and OnUpdate().
|
staticconstexpr |
Definition at line 32 of file battleground_arathi_basin.cpp.
Referenced by OnUpdate().
|
staticconstexpr |
Definition at line 33 of file battleground_arathi_basin.cpp.
Referenced by OnUpdate().
|
staticconstexpr |
Definition at line 34 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin().
|
staticconstexpr |
Definition at line 36 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin().
|
staticconstexpr |
Definition at line 35 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin().
|
staticconstexpr |
Definition at line 37 of file battleground_arathi_basin.cpp.
Referenced by battleground_arathi_basin().