Added the method loadNewDailySudokuLevel.
Is responsible for loading the DailySudoku.
This commit is contained in:
parent
af812f6bed
commit
9f999b5512
1 changed files with 11 additions and 0 deletions
|
@ -111,6 +111,17 @@ public class GameController implements IModelChangedListener, Parcelable {
|
||||||
newLevelManager.checkAndRestock();
|
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() {
|
public int getTime() {
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue