diff options
author | megamage <none@none> | 2009-03-09 17:06:13 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-09 17:06:13 -0600 |
commit | 01b67a1f6a08b22dcdea6e7f5647bb37dc2465d9 (patch) | |
tree | 9f49d0c2250b2a795a0017a124e8b487b0dee10e /src/game/BattleGround.h | |
parent | c9796bab32f3c0ba2859d33e1a56f6d734164b0c (diff) |
[7413] Fixed finally problems with node names localization in BattleGroundAB messages. Author: VladimirMangos
Also fix build at some platforms.
Note: GetTrinityString should be removed in the future when AV is updated.
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.h')
-rw-r--r-- | src/game/BattleGround.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h index d77577449c9..9d060f9d2c6 100644 --- a/src/game/BattleGround.h +++ b/src/game/BattleGround.h @@ -411,12 +411,7 @@ class BattleGround void YellToAll(Creature* creature, const char* text, uint32 language); template<class Do> - void BroadcastWorker(Do& _do) - { - for(std::map<uint64, BattleGroundPlayer>::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) - if(Player *plr = ObjectAccessor::FindPlayer(MAKE_NEW_GUID(itr->first, 0, HIGHGUID_PLAYER))) - _do(plr); - } + void BroadcastWorker(Do& _do); void PlaySoundToTeam(uint32 SoundID, uint32 TeamID); void PlaySoundToAll(uint32 SoundID); @@ -434,6 +429,9 @@ class BattleGround void SendMessageToAll(int32 entry, ChatMsg type, Player const* source = NULL); void PSendMessageToAll(int32 entry, ChatMsg type, Player const* source, ... ); + // specialized version with 2 string id args + void SendMessage2ToAll(int32 entry, ChatMsg type, Player const* source, int32 strId1 = 0, int32 strId2 = 0); + /* Raid Group */ Group *GetBgRaid(uint32 TeamID) const { return TeamID == ALLIANCE ? m_BgRaids[BG_TEAM_ALLIANCE] : m_BgRaids[BG_TEAM_HORDE]; } void SetBgRaid(uint32 TeamID, Group *bg_raid); @@ -500,6 +498,7 @@ class BattleGround void DoorOpen(uint32 type); void DoorClose(uint32 type); + //to be removed const char *GetTrinityString(int32 entry); virtual bool HandlePlayerUnderMap(Player * /*plr*/) { return false; } |