1228 {
1229 if (!gobj)
1230 {
1231 return;
1232 }
1233
1234
1236
1237
1239
1240
1242
1243
1246
1248 {
1254 break;
1257 break;
1258 default:
1260 break;
1261 }
1262
1264 if (gobj)
1265 {
1267 {
1271 break;
1275 break;
1279 break;
1280 }
1281 }
1282
1285 {
1287 towerid = 0;
1288 break;
1290 towerid = 1;
1291 break;
1293 towerid = 2;
1294 break;
1296 towerid = 3;
1297 break;
1299 towerid = 4;
1300 break;
1302 towerid = 5;
1303 break;
1305 towerid = 6;
1306 break;
1307 }
1308
1309 if (towerid > 3)
1310 {
1311
1313 {
1319 }
1320
1321
1323 {
1329 }
1330
1331
1333 {
1339 }
1340 }
1341
1342 if (towerid >= 0)
1343 {
1344
1346 {
1349 {
1352 }
1353 }
1354
1355
1357 {
1360 {
1363 }
1364 }
1366 }
1367 }
std::int32_t int32
Definition: Define.h:104
std::uint8_t uint8
Definition: Define.h:110
@ NPC_WINTERGRASP_TOWER_CANNON
Definition: BattlefieldWG.h:216
const WintergraspTowerCannonData TowerCannon[WG_MAX_TOWER_CANNON]
Definition: BattlefieldWG.h:923
const WintergraspTowerData AttackTowers[WG_MAX_ATTACKTOWERS]
Definition: BattlefieldWG.h:807
@ GO_WINTERGRASP_FORTRESS_TOWER_3
Definition: BattlefieldWG.h:579
@ GO_WINTERGRASP_FORTRESS_TOWER_2
Definition: BattlefieldWG.h:578
@ GO_WINTERGRASP_FLAMEWATCH_TOWER
Definition: BattlefieldWG.h:584
@ GO_WINTERGRASP_FORTRESS_TOWER_4
Definition: BattlefieldWG.h:580
@ GO_WINTERGRASP_SHADOWSIGHT_TOWER
Definition: BattlefieldWG.h:582
@ GO_WINTERGRASP_FORTRESS_TOWER_1
Definition: BattlefieldWG.h:577
@ GO_WINTERGRASP_WINTER_S_EDGE_TOWER
Definition: BattlefieldWG.h:583
@ BATTLEFIELD_WG_OBJECTSTATE_HORDE_DESTROY
Definition: BattlefieldWG.h:505
@ BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT
Definition: BattlefieldWG.h:506
@ BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT
Definition: BattlefieldWG.h:503
@ BATTLEFIELD_WG_OBJECTSTATE_HORDE_DAMAGE
Definition: BattlefieldWG.h:504
ObjectData const creatureData[]
Definition: instance_blackwing_lair.cpp:44
@ TEAM_NEUTRAL
Definition: SharedDefines.h:734
@ TEAM_HORDE
Definition: SharedDefines.h:733
@ GO_DESTRUCTIBLE_DESTROYED
Definition: SharedDefines.h:1601
@ GO_DESTRUCTIBLE_REBUILDING
Definition: SharedDefines.h:1602
@ GO_DESTRUCTIBLE_DAMAGED
Definition: SharedDefines.h:1600
#define sWorld
Definition: World.h:451
Creature * SpawnCreature(uint32 entry, float x, float y, float z, float o, TeamId teamId)
Definition: Battlefield.cpp:779
TeamId GetDefenderTeam()
Definition: Battlefield.h:276
GameObject * SpawnGameObject(uint32 entry, float x, float y, float z, float o)
Definition: Battlefield.cpp:819
Definition: BattlefieldWG.h:588
uint32 entryAlliance
Definition: BattlefieldWG.h:594
uint32 entryHorde
Definition: BattlefieldWG.h:593
float y
Definition: BattlefieldWG.h:590
float x
Definition: BattlefieldWG.h:589
float z
Definition: BattlefieldWG.h:591
float o
Definition: BattlefieldWG.h:592
uint8 nbCreatureTop
Definition: BattlefieldWG.h:800
WintergraspObjectPositionData CreatureTop[5]
Definition: BattlefieldWG.h:801
WintergraspObjectPositionData CreatureBottom[9]
Definition: BattlefieldWG.h:799
WintergraspObjectPositionData GameObject[6]
Definition: BattlefieldWG.h:795
uint8 nbObject
Definition: BattlefieldWG.h:794
uint8 nbCreatureBottom
Definition: BattlefieldWG.h:798
uint8 nbTowerCannonBottom
Definition: BattlefieldWG.h:915
Position TowerCannonBottom[5]
Definition: BattlefieldWG.h:916
uint8 nbTurretTop
Definition: BattlefieldWG.h:917
Position TurretTop[5]
Definition: BattlefieldWG.h:918
GameObjectSet m_GameObjectList[2]
Definition: BattlefieldWG.h:1130
GuidUnorderedSet m_CreatureBottomList[2]
Definition: BattlefieldWG.h:1133
GuidUnorderedSet m_TowerCannonBottomList
Definition: BattlefieldWG.h:1135
void UpdateCreatureAndGo()
Definition: BattlefieldWG.h:1369
void SetDestructibleState(GameObjectDestructibleState state, Player *eventInvoker=nullptr, bool setHealth=false)
Definition: GameObject.cpp:2330
uint32 GetEntry() const
Definition: Object.h:109
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
Definition: Position.h:28
void GetPosition(float &x, float &y) const
Definition: Position.h:122