summaryrefslogtreecommitdiffstats
path: root/Game.cpp
diff options
context:
space:
mode:
authormario <mario@notk.org>2011-11-30 03:46:41 +0100
committermario <mario@notk.org>2011-11-30 03:46:41 +0100
commit871745156d679f82f3be060af83dfd51a3416f09 (patch)
treec17729ebf4c28991e02029e46ecb6d122b77c152 /Game.cpp
parentf5c32b3b880deb0ff2eee7243e3f112469841e95 (diff)
~Doxygen-style commented. Not exactly doxygen but compatible and close enough.
Diffstat (limited to 'Game.cpp')
-rw-r--r--Game.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Game.cpp b/Game.cpp
index 40c98f9..8f8fcab 100644
--- a/Game.cpp
+++ b/Game.cpp
@@ -11,7 +11,12 @@ Game::Game(int width, int height): m_width(width), m_height(height)
initField(width, height);
m_vpPlayers.clear();
}
-
+void Game::setSize(int width, int height)
+{
+ m_width =width;
+ m_height =height;
+ initField(width, height);
+}
Game::~Game(void)
{
while(m_vpPlayers.size() > 0)