120 uint8 ally = 0, horde = 0;
182 gameObject->UseDoorOrButton();
183 gameObject->DespawnOrUnsummon(3s);
195 if (capturePoint->GetGOInfo()->capturePoint.ContestedEventAlliance == eventId || capturePoint->GetGOInfo()->capturePoint.ContestedEventHorde == eventId)
197 else if (capturePoint->GetGOInfo()->capturePoint.DefendedEventAlliance == eventId || capturePoint->GetGOInfo()->capturePoint.DefendedEventHorde == eventId)
199 else if (capturePoint->GetGOInfo()->capturePoint.CaptureEventAlliance == eventId)
201 else if (capturePoint->GetGOInfo()->capturePoint.CaptureEventHorde == eventId)
218 else if (team ==
HORDE)
240 else if (team ==
HORDE)
std::vector< ObjectGuid > GuidVector
#define RegisterBattlegroundMapScript(script_name, mapId)
@ GAMEOBJECT_TYPE_CAPTURE_POINT
constexpr TeamId GetOtherTeam(TeamId team)
uint8 constexpr PVP_TEAMS_COUNT
@ CHAT_MSG_BG_SYSTEM_NEUTRAL
void AddSC_battleground_battle_for_gilneas()
ObjectGuid const & GetGUID() const
Battleground * battleground
void TriggerGameEvent(uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override
BattlegroundMap * battlegroundMap
void UpdateWorldState(int32 worldStateId, int32 value, bool hidden=false) const
void PlaySoundToAll(uint32 SoundID)
uint32 GetTeamScore(TeamId teamId) const
virtual void EndBattleground(Team winner)
void SendBroadcastText(uint32 id, ChatMsg msgType, WorldObject const *target=nullptr)
BattlegroundStatus GetStatus() const
void AddPoint(Team team, uint32 points=1)
Team GetPlayerTeam(ObjectGuid guid) const
void SetTeamPoint(Team team, uint32 points=0)
void UpdatePvpStat(Player *player, uint32 pvpStatId, uint32 value)
GameobjectTypes GetGoType() const
int32 GetWorldStateValue(int32 worldStateId) const
GameObject * GetGameObject(ObjectGuid const &guid)
GameObject * ToGameObject()
static constexpr uint32 StartBattle
static constexpr uint32 CapturePointWaterworks
static constexpr uint32 AllianceDoor
static constexpr uint32 HordeGate2
static constexpr uint32 HordeGate1
static constexpr uint32 CapturePointMines
static constexpr uint32 CapturePointLighthouse
static constexpr uint32 AllianceGate
static constexpr uint32 BasesDefended
static constexpr uint32 BasesAssaulted
static constexpr uint32 PvpFlagCapturedHorde
static constexpr uint32 PvpFlagTakenHorde
static constexpr uint32 PvpFlagTakenAlliance
static constexpr uint32 PvpFlagCapturedAlliance
static constexpr uint32 AllianceNearVictory
static constexpr uint32 HordeNearVictory
static constexpr uint32 ResourcesHorde
static constexpr uint32 HordeMines
static constexpr uint32 ResourcesAlliance
static constexpr uint32 HadResourceDisadvantageHorde
static constexpr uint32 AllianceLighthouse
static constexpr uint32 OccupiedBasesHorde
static constexpr uint32 HordeLighthouse
static constexpr uint32 HadResourceDisadvantageAlliance
static constexpr uint32 HordeWaterworks
static constexpr uint32 OccupiedBasesAlliance
static constexpr uint32 AllianceWaterworks
static constexpr uint32 AllianceMines
BattlegroundCapturePointState
int32 WorldStateAllianceControlState
int32 WorldStateHordeControlState
void HandleAssaultPoint(GameObject const *capturePoint, Player *player)
GuidVector _capturePoints
battleground_battle_for_gilneas(BattlegroundMap *map)
void HandleCapturePoint(GameObject const *capturePoint, TeamId const teamId)
void ProcessEvent(WorldObject *source, uint32 eventId, WorldObject *invoker) override
void CalculateTeamNodes(uint8 &alliance, uint8 &horde) const
void OnGameObjectCreate(GameObject *gameobject) override
static constexpr uint32 WARNING_NEAR_VICTORY_SCORE
void HandleDefendPoint(GameObject const *capturePoint, Player *player)
void OnUpdate(uint32 diff) override
std::unordered_map< uint32, BattleForGilneasCapturePointData > _capturePointData
static constexpr uint32 TICK_POINTS[4]
std::array< bool, PVP_TEAMS_COUNT > _isInformedNearVictory
static constexpr uint32 MAX_TEAM_SCORE