Correct LOT OF BUGS
This commit is contained in:
parent
a2ed149069
commit
e13d24b6c8
6 changed files with 13 additions and 7 deletions
|
@ -12,6 +12,7 @@ set_property(GLOBAL PROPERTY SFML_INCLUDE_DIR "${SFML_INCLUDE_DIR}")
|
||||||
|
|
||||||
#Include "Includes" and "Libraries"
|
#Include "Includes" and "Libraries"
|
||||||
include_directories(${SFML_INCLUDE_DIR})
|
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(./Model)
|
||||||
|
add_subdirectory(./Controller/)
|
||||||
|
|
1
src/Controller/CMakeLists.txt
Normal file
1
src/Controller/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
add_subdirectory(./ConsoleController/)
|
3
src/Controller/ConsoleController/CMakeLists.txt
Normal file
3
src/Controller/ConsoleController/CMakeLists.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#Make Model lib
|
||||||
|
add_library(ConsoleController ./ConsoleController.cpp)
|
||||||
|
target_link_libraries(ConsoleController Model)
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ConsoleController.hpp"
|
#include "./ConsoleController.hpp"
|
||||||
|
|
||||||
ConsoleController::ConsoleController()
|
ConsoleController::ConsoleController()
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
* Date : 29/04/2015 */
|
* Date : 29/04/2015 */
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "Grid.hpp"
|
#include "Grid.hpp"
|
||||||
|
|
||||||
|
@ -26,4 +27,4 @@ class Game
|
||||||
bool isOver();
|
bool isOver();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -75,17 +75,17 @@ void Grid::move(Direction direction)
|
||||||
{
|
{
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
case Direction::UP:
|
case UP:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Direction::DOWN:
|
case DOWN:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Direction::LEFT:
|
case LEFT:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Direction::RIGHT:
|
case RIGHT:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue