Correct LOT OF BUGS

This commit is contained in:
manzerbredes 2015-04-30 09:42:40 +02:00
parent a2ed149069
commit e13d24b6c8
6 changed files with 13 additions and 7 deletions

View file

@ -12,6 +12,7 @@ set_property(GLOBAL PROPERTY SFML_INCLUDE_DIR "${SFML_INCLUDE_DIR}")
#Include "Includes" and "Libraries"
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(2P11 ${SFML_LIBRARIES} Model)
target_link_libraries(2P11 ${SFML_LIBRARIES} Model ConsoleController)
add_subdirectory(./Model)
add_subdirectory(./Controller/)

View file

@ -0,0 +1 @@
add_subdirectory(./ConsoleController/)

View file

@ -0,0 +1,3 @@
#Make Model lib
add_library(ConsoleController ./ConsoleController.cpp)
target_link_libraries(ConsoleController Model)

View file

@ -1,4 +1,4 @@
#include "ConsoleController.hpp"
#include "./ConsoleController.hpp"
ConsoleController::ConsoleController()
{

View file

@ -8,6 +8,7 @@
* Date : 29/04/2015 */
#include <iostream>
#include <cstdlib>
#include "Grid.hpp"
@ -26,4 +27,4 @@ class Game
bool isOver();
};
#endif
#endif

View file

@ -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: