Added the method loadNewDailySudokuLevel.

Is responsible for loading the DailySudoku.
This commit is contained in:
ErikWaegerle 2020-05-27 20:04:08 +02:00
parent af812f6bed
commit 9f999b5512

View file

@ -111,6 +111,17 @@ public class GameController implements IModelChangedListener, Parcelable {
newLevelManager.checkAndRestock();
}
public void loadNewDailySudokuLevel(GameDifficulty gameDifficulty) {
NewLevelManager newLevelManager = NewLevelManager.getInstance(context, settings);
int[] level = newLevelManager.loadDailySudoku();
loadLevel(new GameInfoContainer(DAILY_SUDOKU_ID, gameDifficulty, GameType.Default_9x9, level, null, null));
newLevelManager.checkAndRestock();
}
public int getTime() {
return time;
}