19 #ifndef __BATTLEGROUNDEY_H
20 #define __BATTLEGROUNDEY_H
222 #define BG_EY_NotEYWeekendHonorTicks 260
223 #define BG_EY_EYWeekendHonorTicks 160
262 {2044.28f, 1729.68f, 1189.96f, 0.017453f},
263 {2048.83f, 1393.65f, 1194.49f, 0.20944f},
264 {2286.56f, 1402.36f, 1197.11f, 3.72381f},
265 {2284.48f, 1731.23f, 1189.99f, 2.89725f}
380 void Reset()
override;
398 void GetPlayerPositionData(std::vector<WorldPackets::Battleground::BattlegroundPlayerPosition>* positions)
const override;
Definition: BattlegroundEY.h:46
const uint32 BG_EY_FlagPoints[EY_POINTS_MAX]
Definition: BattlegroundEY.h:301
Definition: BattlegroundEY.h:198
void UpdateScore(uint32 type, uint32 value) override
Definition: BattlegroundEY.h:333
Definition: BattlegroundEY.h:181
Definition: BattlegroundEY.h:193
Definition: BattlegroundEY.h:242
Definition: BattlegroundScore.h:35
Definition: BattlegroundEY.h:82
void RespawnFlagAfterDrop()
Definition: BattlegroundEY.cpp:600
uint8 m_CurrentPointPlayersCount[2 *EY_POINTS_MAX]
Definition: BattlegroundEY.h:434
void UpdatePointsIcons(uint32 Team, uint32 Point)
Definition: BattlegroundEY.cpp:354
Definition: Language.h:680
uint32 SpawnObjectTypeHorde
Definition: BattlegroundEY.h:295
Definition: Language.h:687
int32 m_TeamScores[BG_TEAMS_COUNT]
Definition: Battleground.h:562
void HandleKillPlayer(Player *player, Player *killer) override
Definition: BattlegroundEY.cpp:613
void EventPlayerDroppedFlag(Player *Source) override
Definition: BattlegroundEY.cpp:622
void AddPoints(uint32 Team, uint32 Points)
Definition: BattlegroundEY.cpp:159
Definition: BattlegroundEY.h:132
uint32 MessageIdHorde
Definition: BattlegroundEY.h:280
Definition: BattlegroundEY.h:79
Definition: BattlegroundEY.h:41
Definition: BattlegroundEY.h:234
uint32 GetAttr1() const finaloverride
Definition: BattlegroundEY.h:351
Definition: BattlegroundEY.h:194
Definition: BattlegroundEY.h:243
Definition: BattlegroundEY.h:201
Definition: BattlegroundEY.h:173
Definition: Language.h:679
Definition: BattlegroundEY.h:58
Definition: BattlegroundEY.h:88
Definition: BattlegroundEY.h:48
BG_EY_Objectives
Definition: BattlegroundEY.h:246
void EndBattleground(uint32 winner) override
Definition: BattlegroundEY.cpp:332
EYBattlegroundPointsTrigger
Definition: BattlegroundEY.h:107
Definition: BattlegroundEY.h:213
Points
Definition: ScriptedEscortAI.cpp:31
Definition: BattlegroundEY.h:233
void EventTeamLostPoint(Player *Source, uint32 Point)
Definition: BattlegroundEY.cpp:690
Definition: BattlegroundEY.h:96
Definition: Language.h:686
Definition: BattlegroundEY.h:93
int32 m_TowerCapCheckTimer
Definition: BattlegroundEY.h:428
Definition: BattlegroundEY.h:212
void Reset() override
Definition: BattlegroundEY.cpp:550
Definition: BattlegroundEY.h:217
Definition: BattlegroundEY.h:78
void SetDroppedFlagGUID(ObjectGuid guid, int32=-1) override
Definition: BattlegroundEY.h:385
Definition: BattlegroundEY.h:71
uint8 m_PointState[EY_POINTS_MAX]
Definition: BattlegroundEY.h:431
Definition: Language.h:682
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:65
WorldSafeLocsEntry const * GetClosestGraveYard(Player *player) override
Definition: BattlegroundEY.cpp:900
Definition: BattlegroundEY.h:168
Definition: BattlegroundEY.h:49
Definition: BattlegroundEY.h:143
Definition: BattlegroundEY.h:190
Definition: BattlegroundEY.h:154
Definition: BattlegroundEY.h:184
Definition: DBCStructure.h:1434
EYBattlegroundGaveyards
Definition: BattlegroundEY.h:119
Definition: BattlegroundEY.h:188
void EventTeamCapturedPoint(Player *Source, uint32 Point)
Definition: BattlegroundEY.cpp:738
const uint8 BG_EY_TickPoints[EY_POINTS_MAX]
Definition: BattlegroundEY.h:300
Definition: BattlegroundEY.h:47
Definition: BattlegroundEY.h:218
void RemovePoint(uint32 TeamID, uint32 Points=1)
Definition: BattlegroundEY.h:415
Definition: BattlegroundEY.h:283
Definition: Language.h:691
BG_EY_WorldStates
Definition: BattlegroundEY.h:34
Definition: BattlegroundEY.h:216
Definition: BattlegroundEY.h:101
uint32 GetPrematureWinner() override
Definition: BattlegroundEY.cpp:963
Definition: BattlegroundEY.h:208
Definition: BattlegroundEY.h:152
Definition: BattlegroundEY.h:115
GuidVector m_PlayersNearPoint[EY_POINTS_MAX+1]
Definition: BattlegroundEY.h:433
int32 m_FlagsTimer
Definition: BattlegroundEY.h:427
std::vector< ObjectGuid > GuidVector
Definition: ObjectGuid.h:335
Definition: Language.h:678
Definition: BattlegroundEY.h:187
Definition: BattlegroundEY.h:145
BattlegroundEYCapturingPointStruct(uint32 _DespawnNeutralObjectType, uint32 _SpawnObjectTypeAlliance, uint32 _MessageIdAlliance, uint32 _SpawnObjectTypeHorde, uint32 _MessageIdHorde, uint32 _GraveYardId)
Definition: BattlegroundEY.h:285
Definition: BattlegroundEY.h:356
uint32 GraveYardId
Definition: BattlegroundEY.h:297
uint32 WorldStateControlIndex
Definition: BattlegroundEY.h:255
Definition: BattlegroundEY.h:63
ObjectGuid m_FlagKeeper
Definition: BattlegroundEY.h:423
Definition: BattlegroundEY.h:109
uint32 MessageIdAlliance
Definition: BattlegroundEY.h:294
void PostUpdateImpl(uint32 diff) override
Post-update hook.
Definition: BattlegroundEY.cpp:74
uint32 m_HonorTics
Definition: BattlegroundEY.h:437
Definition: BattlegroundEY.h:200
Definition: BattlegroundEY.h:165
Definition: BattlegroundEY.h:54
Definition: BattlegroundEY.h:123
Definition: BattlegroundEY.h:186
uint32 m_FlagCapturedBgObjectType
Definition: BattlegroundEY.h:425
uint32 m_HonorScoreTics[2]
Definition: BattlegroundEY.h:418
Definition: BattlegroundEY.h:67
void EventPlayerCapturedFlag(Player *Source, uint32 BgObjectType)
Definition: BattlegroundEY.cpp:805
Definition: Language.h:684
static TeamId GetTeamIndexByTeamId(uint32 Team)
Definition: Battleground.h:399
Definition: Language.h:688
void AddPlayer(Player *player) override
Definition: BattlegroundEY.cpp:375
Definition: BattlegroundEY.h:219
Definition: BattlegroundEY.h:185
Definition: BattlegroundEY.h:182
Definition: Language.h:693
Definition: BattlegroundScore.h:54
uint32 DespawnNeutralObjectType
Definition: BattlegroundEY.h:292
Definition: BattlegroundEY.h:110
Definition: BattlegroundEY.h:183
BattlegroundEYLosingPointStruct(uint32 _SpawnNeutralObjectType, uint32 _DespawnObjectTypeAlliance, uint32 _MessageIdAlliance, uint32 _DespawnObjectTypeHorde, uint32 _MessageIdHorde)
Definition: BattlegroundEY.h:270
Team
Definition: SharedDefines.h:997
Definition: BattlegroundEY.h:87
Definition: BattlegroundEY.h:94
Definition: BattlegroundEY.h:326
Definition: BattlegroundEY.h:98
Position const BG_EY_TriggerPositions[EY_POINTS_MAX]
Definition: BattlegroundEY.h:260
void RespawnFlag(bool send_message)
Definition: BattlegroundEY.cpp:582
Definition: BattlegroundEY.h:172
Definition: BattlegroundEY.h:137
EYBattlegroundObjectTypes
Definition: BattlegroundEY.h:157
uint8 m_FlagState
Definition: BattlegroundEY.h:426
bool UpdatePlayerScore(Player *player, uint32 type, uint32 value, bool doAddHonor=true) override
Definition: BattlegroundEY.cpp:844
Definition: BattlegroundEY.h:179
int32 m_PointAddingTimer
Definition: BattlegroundEY.h:436
Definition: BattlegroundEY.h:196
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
Definition: BattlegroundEY.cpp:860
Definition: BattlegroundEY.h:166
Definition: BattlegroundEY.h:189
Definition: BattlegroundEY.h:65
ObjectGuid GetDroppedFlagGUID() const
Definition: BattlegroundEY.h:386
EYBattlegroundObjectEntry
Definition: BattlegroundEY.h:91
Definition: BattlegroundEY.h:81
Definition: BattlegroundEY.h:160
Definition: BattlegroundEY.h:116
Definition: BattlegroundEY.h:100
Definition: BattlegroundEY.h:125
Definition: BattlegroundEY.h:44
BG_EY_ProgressBarConsts
Definition: BattlegroundEY.h:61
Definition: BattlegroundEY.h:114
Definition: BattlegroundEY.h:122
Definition: BattlegroundEY.h:251
Definition: BattlegroundEY.h:31
Definition: BattlegroundEY.h:209
Definition: BattlegroundEY.h:170
Definition: BattlegroundEY.h:69
Definition: BattlegroundEY.h:126
int32_t int32
Definition: Define.h:146
BG_EY_Score
Definition: BattlegroundEY.h:225
uint32 DespawnObjectTypeAlliance
Definition: BattlegroundEY.h:277
uint32_t uint32
Definition: Define.h:150
Definition: BattlegroundEY.h:159
Definition: BattlegroundEY.h:162
Definition: BattlegroundEY.h:38
void RemovePlayer(Player *player, ObjectGuid guid, uint32 team) override
Definition: BattlegroundEY.cpp:383
Definition: BattlegroundEY.h:133
Definition: BattlegroundEY.h:102
Definition: WorldStatePackets.h:27
Definition: BattlegroundEY.h:169
Definition: BattlegroundEY.h:227
Definition: GameObject.h:880
Definition: Language.h:690
uint32 m_Points_Trigger[EY_POINTS_MAX]
Definition: BattlegroundEY.h:421
Definition: BattlegroundEY.h:235
Definition: BattlegroundEY.h:37
Definition: BattlegroundEY.h:70
Definition: BattlegroundEY.h:121
Definition: BattlegroundEY.h:195
uint32 WorldStateAllianceControlledIndex
Definition: BattlegroundEY.h:256
Definition: BattlegroundEY.h:207
Definition: BattlegroundEY.h:53
Definition: BattlegroundEY.h:214
Definition: BattlegroundEY.h:124
void BuildObjectivesBlock(std::vector< int32 > &stats) override
Definition: BattlegroundEY.h:346
Definition: BattlegroundEY.h:191
void SetTeamPoint(uint32 TeamID, uint32 Points=0)
Definition: BattlegroundEY.h:416
Definition: BattlegroundEY.h:111
Definition: BattlegroundEY.h:55
Definition: BattlegroundEY.h:95
Definition: BattlegroundEY.h:164
Definition: BattlegroundEY.h:203
Definition: BattlegroundEY.h:211
Definition: BattlegroundEY.h:136
Definition: BattlegroundEY.h:167
void StartingEventOpenDoors() override
Definition: BattlegroundEY.cpp:141
Definition: BattlegroundEY.h:57
Definition: BattlegroundEY.h:112
Definition: BattlegroundEY.h:30
Definition: BattlegroundEY.h:268
Definition: BattlegroundEY.h:144
Definition: Language.h:681
void CheckSomeoneLeftPoint()
Definition: BattlegroundEY.cpp:209
bool IsAllNodesControlledByTeam(uint32 team) const override
Definition: BattlegroundEY.cpp:953
Definition: BattlegroundEY.h:134
int32 m_PointBarStatus[EY_POINTS_MAX]
Definition: BattlegroundEY.h:432
Definition: BattlegroundEY.h:204
Definition: Language.h:692
BG_EY_Misc
Definition: BattlegroundEY.h:27
Definition: BattlegroundEY.h:236
Definition: Language.h:689
Definition: BattlegroundEY.h:39
void UpdatePointStatuses()
Definition: BattlegroundEY.cpp:250
uint32 WorldStateHordeControlledIndex
Definition: BattlegroundEY.h:257
EYBattlegroundPoints
Definition: BattlegroundEY.h:129
Definition: BattlegroundEY.h:68
uint32 SpawnObjectTypeAlliance
Definition: BattlegroundEY.h:293
Definition: BattlegroundEY.h:177
void HandleAreaTrigger(Player *source, uint32 trigger, bool entered) override
Definition: BattlegroundEY.cpp:407
EYBattlegroundCreaturesTypes
Definition: BattlegroundEY.h:140
Definition: BattlegroundEY.h:180
Definition: BattlegroundEY.h:52
BG_EY_FlagState
Definition: BattlegroundEY.h:231
Definition: BattlegroundEY.h:199
Definition: BattlegroundEY.h:202
const BattlegroundEYPointIconsStruct m_PointsIconStruct[EY_POINTS_MAX]
Definition: BattlegroundEY.h:304
Definition: BattlegroundEY.h:151
BattlegroundEYScore(ObjectGuid playerGuid, uint32 team)
Definition: BattlegroundEY.h:331
Definition: BattlegroundEY.h:174
Definition: BattlegroundEY.h:99
Definition: BattlegroundEY.h:29
uint32 MessageIdAlliance
Definition: BattlegroundEY.h:278
Definition: Language.h:685
Definition: BattlegroundEY.h:205
Definition: BattlegroundEY.h:40
void SetFlagPicker(ObjectGuid guid)
Definition: BattlegroundEY.h:369
uint32 DespawnObjectTypeHorde
Definition: BattlegroundEY.h:279
Definition: BattlegroundEY.h:51
Definition: BattlegroundEY.h:142
bool IsFlagPickedup() const
Definition: BattlegroundEY.h:370
Definition: BattlegroundEY.h:149
uint32 m_TeamPointsCount[2]
Definition: BattlegroundEY.h:419
Definition: BattlegroundEY.h:113
Definition: BattlegroundEY.h:175
uint8 GetFlagState() const
Definition: BattlegroundEY.h:371
uint8_t uint8
Definition: Define.h:152
Definition: Position.h:27
Definition: BattlegroundEY.h:163
Definition: BattlegroundEY.h:36
void StartingEventCloseDoors() override
Definition: BattlegroundEY.cpp:132
bool SetupBattleground() override
Definition: BattlegroundEY.cpp:455
uint32 SpawnNeutralObjectType
Definition: BattlegroundEY.h:276
Definition: BattlegroundEY.h:146
const BattlegroundEYCapturingPointStruct m_CapturingPointTypes[EY_POINTS_MAX]
Definition: BattlegroundEY.h:318
Definition: BattlegroundEY.h:171
Definition: BattlegroundEY.h:64
BattlegroundEYPointIconsStruct(uint32 _WorldStateControlIndex, uint32 _WorldStateAllianceControlledIndex, uint32 _WorldStateHordeControlledIndex)
Definition: BattlegroundEY.h:253
Definition: BattlegroundEY.h:66
Definition: BattlegroundEY.h:192
const BattlegroundEYLosingPointStruct m_LosingPointTypes[EY_POINTS_MAX]
Definition: BattlegroundEY.h:311
Definition: BattlegroundEY.h:43
BG_EY_Spells
Definition: BattlegroundEY.h:85
Definition: Battleground.h:235
BG_EY_Sounds
Definition: BattlegroundEY.h:75
void GetPlayerPositionData(std::vector< WorldPackets::Battleground::BattlegroundPlayerPosition > *positions) const override
Definition: BattlegroundEY.cpp:118
const FieldDescriptor value
Definition: descriptor.h:1522
ObjectGuid GetFlagPickerGUID(int32=-1) const override
Definition: BattlegroundEY.h:368
BattlegroundEY()
Definition: BattlegroundEY.cpp:34
ObjectGuid m_DroppedFlagGUID
Definition: BattlegroundEY.h:424
Definition: BattlegroundEY.h:147
Definition: ObjectGuid.h:189
#define const
Definition: zconf.h:217
uint32 MessageIdHorde
Definition: BattlegroundEY.h:296
void CheckSomeoneJoinedPoint()
Definition: BattlegroundEY.cpp:172
Definition: BattlegroundEY.h:80
Definition: BattlegroundEY.h:97
Definition: BattlegroundEY.h:241
Definition: BattlegroundEY.h:228
EYBattlegroundPointState
Definition: BattlegroundEY.h:239
Definition: BattlegroundEY.h:215
uint32 FlagCaptures
Definition: BattlegroundEY.h:353
~BattlegroundEY()
Definition: BattlegroundEY.cpp:72
void UpdateTeamScore(uint32 Team)
Definition: BattlegroundEY.cpp:303
Definition: BattlegroundEY.h:248
Definition: BattlegroundEY.h:50
Definition: BattlegroundEY.h:131
uint32 m_PointOwnedByTeam[EY_POINTS_MAX]
Definition: BattlegroundEY.h:430
Definition: BattlegroundEY.h:150
Definition: BattlegroundEY.h:161
void EventPlayerClickedOnFlag(Player *Source, GameObject *target_obj) override
Definition: BattlegroundEY.cpp:658
Definition: BattlegroundEY.h:178
Definition: BattlegroundEY.h:103
Definition: BattlegroundEY.h:42
Definition: BattlegroundEY.h:197
bool IsEmpty() const
Definition: ObjectGuid.h:242
Definition: BattlegroundEY.h:45
Definition: BattlegroundEY.h:176
Definition: BattlegroundEY.h:210
void UpdatePointsCount(uint32 Team)
Definition: BattlegroundEY.cpp:346
Definition: BattlegroundEY.h:72
Definition: Language.h:683
Definition: BattlegroundEY.h:104