diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2011-11-28 10:34:52 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2011-11-28 10:34:52 +0100 |
commit | 489547e7cd9192af86eb3edd673e0e6d395f906b (patch) | |
tree | 79fe1c40b5944f49e797473035c62a7077b98972 /Game.cpp | |
parent | c1f09153400fe7997b6c299484e01a13a4bfc6a4 (diff) |
added FIXME notes
Diffstat (limited to 'Game.cpp')
-rw-r--r-- | Game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,9 +62,9 @@ void Game::updateGame(uint timeElapsedMs) { cell.setState(BOOM);
if (cell.getState() % 2 == 0) { // it's a player itself
(getPlayerByID(cell.getState()/2)).kill();
- }
+ } // FIXME: we don't kill the player if he moved before us, i.e. treat his wall just like anything else
} else {
- cell.setState(player.getNumber()*2+1);
+ cell.setState(player.getNumber()*2+1); // FIXME: set it as player himself if it's the last element of the path, and set old player position as wall
}
} catch (std::exception out_of_bounds) { // doesn't that catch just any exception and name it out_of_bounds?
player.kill(); // set the cell before as boom?
|