Called on setup and between the two round -Delete all gameobject / creature -Respawn all gameobject / creature to have good faction.
86 for (BattlegroundPlayerMap::const_iterator itr =
GetPlayers().begin(); itr !=
GetPlayers().end(); ++itr)
139 TC_LOG_ERROR(
"bg.battleground",
"SOTA: couldn't spawn one of the BG_SA_BOAT, Entry: %u", boatid);
165 TC_LOG_ERROR(
"bg.battleground",
"SOTA: couldn't spawn Cannon or demolisher, Entry: %u, Attackers: %s",
BG_SA_NpcEntries[i],
Attackers == TEAM_ALLIANCE ?
"Horde(1)" :
"Alliance(0)");
206 TC_LOG_ERROR(
"bg.battleground",
"SOTA: couldn't spawn GY: %u", i);
277 for (BattlegroundPlayerMap::const_iterator itr =
GetPlayers().begin(); itr !=
GetPlayers().end(); ++itr)
Definition: BattlegroundSA.h:198
Definition: Battleground.h:129
virtual bool AddObject(uint32 type, uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime=0, GOState goState=GO_STATE_READY)
Definition: Battleground.cpp:1446
float Z
Definition: DBCEnums.h:36
Definition: BattlegroundSA.h:164
Definition: BattlegroundSA.h:41
bool ShipsStarted
For know if boats has start moving or not yet.
Definition: BattlegroundSA.h:673
float Y
Definition: DBCEnums.h:35
DBCStorage< WorldSafeLocsEntry > sWorldSafeLocsStore(WorldSafeLocsfmt)
Definition: BattlegroundSA.h:210
virtual bool AddSpiritGuide(uint32 type, float x, float y, float z, float o, TeamId teamId=TEAM_NEUTRAL)
Definition: Battleground.cpp:1676
Definition: BattlegroundSA.h:298
#define MAX_GATES
Definition: BattlegroundSA.h:494
uint32 const BG_SA_Factions[2]
Definition: BattlegroundSA.h:451
Definition: BattlegroundSA.h:282
Definition: BattlegroundSA.h:288
Definition: BattlegroundSA.h:302
Definition: BattlegroundSA.h:300
Definition: BattlegroundSA.h:169
Definition: BattlegroundSA.h:171
Definition: BattlegroundSA.h:176
void SendTransportsRemove(Player *player)
Send packet to player for destroy boats (client part)
Definition: BattlegroundSA.cpp:1022
Definition: BattlegroundSA.h:158
virtual Creature * AddCreature(uint32 entry, uint32 type, float x, float y, float z, float o, TeamId teamId=TEAM_NEUTRAL, uint32 respawntime=0, Transport *transport=NULL)
Definition: Battleground.cpp:1580
Definition: BattlegroundSA.h:211
GameObject * GetBGObject(uint32 type, bool logError=true)
Definition: Battleground.cpp:1534
Definition: BattlegroundSA.h:287
Definition: DBCStructure.h:1434
arena_t NULL
Definition: jemalloc_internal.h:624
uint32 const BG_SA_ObjEntries[BG_SA_MAXOBJ+BG_SA_FLAG_AMOUNT]
Definition: BattlegroundSA.h:421
void SpawnBGObject(uint32 type, uint32 respawntime)
Definition: Battleground.cpp:1564
void UpdateObjectInteractionFlags()
Definition: BattlegroundSA.cpp:767
Definition: BattlegroundSA.h:289
void Refresh()
Definition: GameObject.cpp:710
BattlegroundPlayerMap const & GetPlayers() const
Definition: Battleground.h:331
bool DelObject(uint32 type)
Definition: Battleground.cpp:1658
Definition: BattlegroundSA.h:212
Definition: BattlegroundSA.h:459
Definition: BattlegroundSA.h:205
Definition: BattlegroundSA.h:301
uint32 TotalTime
Totale elapsed time of current round.
Definition: BattlegroundSA.h:669
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
Definition: BattlegroundSA.h:172
Definition: Battleground.h:158
const uint32 BG_SA_GYEntries[BG_SA_MAX_GY]
Definition: BattlegroundSA.h:467
Definition: BattlegroundSA.h:170
Definition: BattlegroundSA.h:177
Definition: BattlegroundSA.h:166
Definition: BattlegroundSA.h:159
Definition: BattlegroundSA.h:464
Definition: BattlegroundSA.h:175
void DemolisherStartState(bool start)
Set selectable or not demolisher, called on battle start, when boats arrive to dock.
Definition: BattlegroundSA.cpp:666
uint32_t uint32
Definition: Define.h:150
Position const BG_SA_NpcSpawnlocs[BG_SA_MAXNPC]
Definition: BattlegroundSA.h:245
Definition: BattlegroundSA.h:173
Definition: BattlegroundSA.h:213
Definition: BattlegroundSA.h:461
Definition: SharedDefines.h:992
Definition: Battleground.h:128
void SendTransportInit(Player *player)
Send packet to player for create boats (client part)
Definition: BattlegroundSA.cpp:1005
float X
Definition: DBCEnums.h:34
DBCPosition3D Loc
Definition: DBCStructure.h:1438
BG_SA_GateState GateStatus[MAX_GATES]
Status of each gate (Destroy/Damage/Intact)
Definition: BattlegroundSA.h:675
TeamId Attackers
Id of attacker team.
Definition: BattlegroundSA.h:666
TeamId GraveyardStatus[BG_SA_MAX_GY]
Team witch conntrol each graveyard.
Definition: BattlegroundSA.h:679
Definition: BattlegroundSA.h:463
float const BG_SA_GYOrientation[BG_SA_MAX_GY]
Definition: BattlegroundSA.h:476
Definition: BattlegroundSA.h:290
bool DelCreature(uint32 type)
Definition: Battleground.cpp:1640
void OverrideGunFaction()
Called on start and between the two round -Update faction of all vehicle.
Definition: BattlegroundSA.cpp:648
uint32 const BG_SA_NpcEntries[BG_SA_MAXNPC]
Definition: BattlegroundSA.h:216
Definition: BattlegroundSA.h:462
Definition: BattlegroundSA.h:204
Definition: BattlegroundSA.h:168
uint8_t uint8
Definition: Define.h:152
Definition: BattlegroundSA.h:160
void TeleportPlayers()
Called between the two round -Teleport all players to good location.
Definition: BattlegroundSA.cpp:497
Definition: BattlegroundSA.h:163
void UpdateWorldState(uint32 variable, uint32 value, bool hidden=false)
Definition: Battleground.cpp:735
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Definition: BattlegroundSA.h:165
Definition: BattlegroundSA.h:174
Definition: SharedDefines.h:993
Definition: BattlegroundSA.h:162
void SetStatus(BattlegroundStatus Status)
Definition: Battleground.h:295
Definition: BattlegroundSA.h:167
void SetFaction(uint32 faction)
Definition: GameObject.h:1068
Definition: BattlegroundSA.h:161
Position const BG_SA_ObjSpawnlocs[BG_SA_MAXOBJ]
Definition: BattlegroundSA.h:305
void UpdateRotationFields(float rotation2=0.0f, float rotation3=0.0f)
Definition: GameObject.cpp:1943
Definition: BattlegroundSA.h:297