1226 {
1227 if (!gobj)
1228 {
1229 return;
1230 }
1231
1232
1234
1235
1237
1238
1240
1241
1244
1246 {
1252 break;
1255 break;
1256 default:
1258 break;
1259 }
1260
1262 if (gobj)
1263 {
1265 {
1269 break;
1273 break;
1277 break;
1278 }
1279 }
1280
1283 {
1285 towerid = 0;
1286 break;
1288 towerid = 1;
1289 break;
1291 towerid = 2;
1292 break;
1294 towerid = 3;
1295 break;
1297 towerid = 4;
1298 break;
1300 towerid = 5;
1301 break;
1303 towerid = 6;
1304 break;
1305 }
1306
1307 if (towerid > 3)
1308 {
1309
1311 {
1317 }
1318
1319
1321 {
1327 }
1328
1329
1331 {
1337 }
1338 }
1339
1340 if (towerid >= 0)
1341 {
1342
1344 {
1347 {
1350 }
1351 }
1352
1353
1355 {
1358 {
1361 }
1362 }
1364 }
1365 }
std::int32_t int32
Definition: Define.h:103
std::uint8_t uint8
Definition: Define.h:109
ObjectData const creatureData[]
Definition: instance_blackwing_lair.cpp:45
@ GO_DESTRUCTIBLE_DESTROYED
Definition: SharedDefines.h:1629
@ GO_DESTRUCTIBLE_REBUILDING
Definition: SharedDefines.h:1630
@ GO_DESTRUCTIBLE_DAMAGED
Definition: SharedDefines.h:1628
@ TEAM_NEUTRAL
Definition: SharedDefines.h:762
@ TEAM_HORDE
Definition: SharedDefines.h:761
@ NPC_WINTERGRASP_TOWER_CANNON
Definition: BattlefieldWG.h:214
const WintergraspTowerCannonData TowerCannon[WG_MAX_TOWER_CANNON]
Definition: BattlefieldWG.h:921
const WintergraspTowerData AttackTowers[WG_MAX_ATTACKTOWERS]
Definition: BattlefieldWG.h:805
@ GO_WINTERGRASP_FORTRESS_TOWER_3
Definition: BattlefieldWG.h:577
@ GO_WINTERGRASP_FORTRESS_TOWER_2
Definition: BattlefieldWG.h:576
@ GO_WINTERGRASP_FLAMEWATCH_TOWER
Definition: BattlefieldWG.h:582
@ GO_WINTERGRASP_FORTRESS_TOWER_4
Definition: BattlefieldWG.h:578
@ GO_WINTERGRASP_SHADOWSIGHT_TOWER
Definition: BattlefieldWG.h:580
@ GO_WINTERGRASP_FORTRESS_TOWER_1
Definition: BattlefieldWG.h:575
@ GO_WINTERGRASP_WINTER_S_EDGE_TOWER
Definition: BattlefieldWG.h:581
@ BATTLEFIELD_WG_OBJECTSTATE_HORDE_DESTROY
Definition: BattlefieldWG.h:503
@ BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT
Definition: BattlefieldWG.h:504
@ BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT
Definition: BattlefieldWG.h:501
@ BATTLEFIELD_WG_OBJECTSTATE_HORDE_DAMAGE
Definition: BattlefieldWG.h:502
#define sWorld
Definition: World.h:443
Creature * SpawnCreature(uint32 entry, float x, float y, float z, float o, TeamId teamId)
Definition: Battlefield.cpp:784
TeamId GetDefenderTeam()
Definition: Battlefield.h:275
GameObject * SpawnGameObject(uint32 entry, float x, float y, float z, float o)
Definition: Battlefield.cpp:824
Definition: BattlefieldWG.h:586
uint32 entryAlliance
Definition: BattlefieldWG.h:592
uint32 entryHorde
Definition: BattlefieldWG.h:591
float y
Definition: BattlefieldWG.h:588
float x
Definition: BattlefieldWG.h:587
float z
Definition: BattlefieldWG.h:589
float o
Definition: BattlefieldWG.h:590
uint8 nbCreatureTop
Definition: BattlefieldWG.h:798
WintergraspObjectPositionData CreatureTop[5]
Definition: BattlefieldWG.h:799
WintergraspObjectPositionData CreatureBottom[9]
Definition: BattlefieldWG.h:797
WintergraspObjectPositionData GameObject[6]
Definition: BattlefieldWG.h:793
uint8 nbObject
Definition: BattlefieldWG.h:792
uint8 nbCreatureBottom
Definition: BattlefieldWG.h:796
uint8 nbTowerCannonBottom
Definition: BattlefieldWG.h:913
Position TowerCannonBottom[5]
Definition: BattlefieldWG.h:914
uint8 nbTurretTop
Definition: BattlefieldWG.h:915
Position TurretTop[5]
Definition: BattlefieldWG.h:916
GameObjectSet m_GameObjectList[2]
Definition: BattlefieldWG.h:1128
GuidUnorderedSet m_CreatureBottomList[2]
Definition: BattlefieldWG.h:1131
GuidUnorderedSet m_TowerCannonBottomList
Definition: BattlefieldWG.h:1133
void UpdateCreatureAndGo()
Definition: BattlefieldWG.h:1367
void SetDestructibleState(GameObjectDestructibleState state, Player *eventInvoker=nullptr, bool setHealth=false)
Definition: GameObject.cpp:2342
uint32 GetEntry() const
Definition: Object.h:115
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
Definition: Position.h:27
void GetPosition(float &x, float &y) const
Definition: Position.h:121