summaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 09:42:40 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 09:42:40 +0200
commite13d24b6c8f5aafa11c027dd971a98f895825b41 (patch)
tree76a4fa066c8afbe489bd74bd1f78f49f424af2a7 /src/Model
parenta2ed149069a29212a11eb4a1fa676e6f27d941fd (diff)
Correct LOT OF BUGS
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Game.hpp3
-rw-r--r--src/Model/Grid.cpp8
2 files changed, 6 insertions, 5 deletions
diff --git a/src/Model/Game.hpp b/src/Model/Game.hpp
index 8dcaf64..b7e0a60 100644
--- a/src/Model/Game.hpp
+++ b/src/Model/Game.hpp
@@ -8,6 +8,7 @@
* Date : 29/04/2015 */
#include <iostream>
+#include <cstdlib>
#include "Grid.hpp"
@@ -26,4 +27,4 @@ class Game
bool isOver();
};
-#endif \ No newline at end of file
+#endif
diff --git a/src/Model/Grid.cpp b/src/Model/Grid.cpp
index 295b9b4..ca93955 100644
--- a/src/Model/Grid.cpp
+++ b/src/Model/Grid.cpp
@@ -75,17 +75,17 @@ void Grid::move(Direction direction)
{
switch (direction)
{
- case Direction::UP:
+ case UP:
break;
- case Direction::DOWN:
+ case DOWN:
break;
- case Direction::LEFT:
+ case LEFT:
break;
- case Direction::RIGHT:
+ case RIGHT:
break;
default: