Skip to content

Commit 7cac269

Browse files
author
ankit21
committed
added bool return value
1 parent 25e186b commit 7cac269

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/GameController.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ class GameController {
2626
GameController(GameBoard&, GameView& view);
2727
~GameController();
2828

29-
void nextTurn(ScreenCoordinate);
30-
29+
bool nextTurn(ScreenCoordinate);
3130
bool handleBoardEvent(ScreenCoordinate);
3231
bool handleRoadButtonEvent(ScreenCoordinate);
3332
bool handleSettlementButtonEvent(ScreenCoordinate);

src/GameController.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ GameController::~GameController() {
3131
/**
3232
* calls a function to advance turn, check for victory and roll dice
3333
*/
34-
void GameController::nextTurn(ScreenCoordinate) {
34+
bool GameController::nextTurn(ScreenCoordinate) {
3535
model.endTurn();
36+
return true;
3637
}
3738

3839

0 commit comments

Comments
 (0)