-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Updated View structure to use enums for easier usage.
- Loading branch information
Showing
17 changed files
with
364 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/ViewEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view; | ||
|
|
||
| /** | ||
| * Enum representing different views in the system. | ||
| * */ | ||
| public enum ViewEnum { | ||
| /** | ||
| * {@link edu.ntnu.idi.idatt2003.g40.mappe.view.mainmenu.MainMenuView}. | ||
| * */ | ||
| MAIN_MENU, | ||
|
|
||
| /** | ||
| * {@link edu.ntnu.idi.idatt2003.g40.mappe.view.settings.SettingsView}. | ||
| * */ | ||
| SETTINGS, | ||
|
|
||
| /** | ||
| * {@link edu.ntnu.idi.idatt2003.g40.mappe.view.playgame.PlayGameView}. | ||
| * */ | ||
| PLAY_GAME, | ||
|
|
||
| /** | ||
| * {@link edu.ntnu.idi.idatt2003.g40.mappe.view.ingame.InGameView}. | ||
| * */ | ||
| IN_GAME; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/mainmenu/MainMenuActions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.mainmenu; | ||
|
|
||
| public enum MainMenuActions { | ||
| START_GAME, | ||
| SETTINGS, | ||
| EXIT; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.