diff options
author | megamage <none@none> | 2009-03-07 12:05:30 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-07 12:05:30 -0600 |
commit | 520ce96257a07c0ad07a652e01a3927af0f48f6f (patch) | |
tree | 3053b5b82332efbe2f6dbb79c9a3523859844ff2 /src/game/BattleGroundAA.cpp | |
parent | f63c07e66975a9f55c0bf5f73a4f2a34bde3e848 (diff) |
[7399] Rewrited BattleGround starting code - moved it to battleground class. Author: Triply
Fixed message color for premature finish warnings.
Fixed .debug bg command won't allow 1v0 arenas now, only battlegrounds 1v0.
Added battleground announcer message removed in [7384].
[7401] Fixed bgqueue invitation to already started battlegrounds - not tested. Author: Triply
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGroundAA.cpp')
-rw-r--r-- | src/game/BattleGroundAA.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/game/BattleGroundAA.cpp b/src/game/BattleGroundAA.cpp index ca52e4ddaf2..2aac2dde3eb 100644 --- a/src/game/BattleGroundAA.cpp +++ b/src/game/BattleGroundAA.cpp @@ -21,10 +21,20 @@ #include "Player.h" #include "BattleGround.h" #include "BattleGroundAA.h" +#include "Language.h" BattleGroundAA::BattleGroundAA() { + m_StartDelayTimes[BG_STARTING_EVENT_FIRST] = BG_START_DELAY_1M; + m_StartDelayTimes[BG_STARTING_EVENT_SECOND] = BG_START_DELAY_30S; + m_StartDelayTimes[BG_STARTING_EVENT_THIRD] = BG_START_DELAY_15S; + m_StartDelayTimes[BG_STARTING_EVENT_FOURTH] = BG_START_DELAY_NONE; + //we must set messageIds + m_StartMessageIds[BG_STARTING_EVENT_FIRST] = LANG_ARENA_ONE_MINUTE; + m_StartMessageIds[BG_STARTING_EVENT_SECOND] = LANG_ARENA_THIRTY_SECONDS; + m_StartMessageIds[BG_STARTING_EVENT_THIRD] = LANG_ARENA_FIFTEEN_SECONDS; + m_StartMessageIds[BG_STARTING_EVENT_FOURTH] = LANG_ARENA_HAS_BEGUN; } BattleGroundAA::~BattleGroundAA() @@ -37,6 +47,14 @@ void BattleGroundAA::Update(uint32 diff) BattleGround::Update(diff); } +void BattleGroundAA::StartingEventCloseDoors() +{ +} + +void BattleGroundAA::StartingEventOpenDoors() +{ +} + void BattleGroundAA::AddPlayer(Player *plr) { BattleGround::AddPlayer(plr); |