From b5dc145bb7d02e7964457f633f68c99d12c55a10 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Tue, 10 Nov 2015 03:21:02 +0100 Subject: [PATCH] Redesigned a bit of the model. Added JUnit Tests for GameController. Added a GameView, that doesn't show the game yet though. --- app/app.iml | 40 ++-- app/src/main/AndroidManifest.xml | 14 +- .../sudoku/controller/GameController.java | 127 ++++++++--- .../tu_darmstadt/sudoku/game/CheckError.java | 67 +++++- .../tu_darmstadt/sudoku/game/GameCell.java | 69 +++++- .../tu_darmstadt/sudoku/game/GameField.java | 78 +++++-- .../sudoku/game/GameSettings.java | 12 + .../tu_darmstadt/sudoku/game/GameStatus.java | 11 + .../tu_darmstadt/sudoku/game/GameType.java | 10 + .../tu_darmstadt/sudoku/view/GameView.java | 108 +++++++++ .../tu_darmstadt/sudoku/view/MainMenu.java | 4 +- app/src/main/res/drawable/side_nav_bar.xml | 9 + .../main/res/layout/activity_game_view.xml | 17 ++ .../main/res/layout/activity_main_menu.xml | 4 - app/src/main/res/layout/app_bar_game_view.xml | 25 ++ app/src/main/res/layout/content_game_view.xml | 12 + .../main/res/layout/nav_header_game_view.xml | 23 ++ .../res/menu/activity_game_view_drawer.xml | 24 ++ app/src/main/res/menu/game_view.xml | 6 + app/src/main/res/values/dimens.xml | 3 + app/src/main/res/values/strings.xml | 4 + .../sudoku/controller/GameControllerTest.java | 214 ++++++++++++++++++ 22 files changed, 797 insertions(+), 84 deletions(-) create mode 100644 app/src/main/java/tu_darmstadt/sudoku/game/GameSettings.java create mode 100644 app/src/main/java/tu_darmstadt/sudoku/game/GameStatus.java create mode 100644 app/src/main/java/tu_darmstadt/sudoku/game/GameType.java create mode 100644 app/src/main/java/tu_darmstadt/sudoku/view/GameView.java create mode 100644 app/src/main/res/drawable/side_nav_bar.xml create mode 100644 app/src/main/res/layout/activity_game_view.xml create mode 100644 app/src/main/res/layout/app_bar_game_view.xml create mode 100644 app/src/main/res/layout/content_game_view.xml create mode 100644 app/src/main/res/layout/nav_header_game_view.xml create mode 100644 app/src/main/res/menu/activity_game_view_drawer.xml create mode 100644 app/src/main/res/menu/game_view.xml create mode 100644 app/src/test/java/tu_darmstadt/sudoku/controller/GameControllerTest.java diff --git a/app/app.iml b/app/app.iml index f33ee01..74d7e06 100644 --- a/app/app.iml +++ b/app/app.iml @@ -9,14 +9,15 @@