diff options
author | mario <mario@notk.org> | 2011-11-30 03:46:41 +0100 |
---|---|---|
committer | mario <mario@notk.org> | 2011-11-30 03:46:41 +0100 |
commit | 871745156d679f82f3be060af83dfd51a3416f09 (patch) | |
tree | c17729ebf4c28991e02029e46ecb6d122b77c152 /Game.cpp | |
parent | f5c32b3b880deb0ff2eee7243e3f112469841e95 (diff) |
~Doxygen-style commented. Not exactly doxygen but compatible and close enough.
Diffstat (limited to 'Game.cpp')
-rw-r--r-- | Game.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)
|