We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e186b commit 7cac269Copy full SHA for 7cac269
include/GameController.h
@@ -26,8 +26,7 @@ class GameController {
26
GameController(GameBoard&, GameView& view);
27
~GameController();
28
29
- void nextTurn(ScreenCoordinate);
30
-
+ bool nextTurn(ScreenCoordinate);
31
bool handleBoardEvent(ScreenCoordinate);
32
bool handleRoadButtonEvent(ScreenCoordinate);
33
bool handleSettlementButtonEvent(ScreenCoordinate);
src/GameController.cpp
@@ -31,8 +31,9 @@ GameController::~GameController() {
/**
* calls a function to advance turn, check for victory and roll dice
*/
34
-void GameController::nextTurn(ScreenCoordinate) {
+bool GameController::nextTurn(ScreenCoordinate) {
35
model.endTurn();
36
+ return true;
37
}
38
39
0 commit comments