aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-31 11:34:38 +0800
committermegamage <none@none>2009-07-31 11:34:38 +0800
commitd96642c92fbeab49ae613a78c3fb578934288d2f (patch)
tree673a8e3594b82b6c0abfd0294851810a6426c892 /src/game/BattleGround.h
parented995581af21754e3b7e66daa50f8da1e38d3760 (diff)
[8274] use virtual m_TeamScore for battlegrounds
score is used in every battleground (not arena) so we can use it as a virtual variable to access it also from BattleGround-class Signed-off-by: balrok <der-coole-carl@gmx.net> --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.h')
-rw-r--r--src/game/BattleGround.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h
index 509ba6eb972..2d7419e8798 100644
--- a/src/game/BattleGround.h
+++ b/src/game/BattleGround.h
@@ -514,6 +514,9 @@ class BattleGround
void SetDeleteThis() {m_SetDeleteThis = true;}
+ /* virtual score-array - get's used in bg-subclasses */
+ int32 m_TeamScores[BG_TEAMS_COUNT];
+
protected:
//this method is called, when BG cannot spawn its own spirit guide, or something is wrong, It correctly ends BattleGround
void EndNow();