-
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.
Merge pull request #142 from Team-40-IDATT2003/141-market-integration…
…-fix 141 market integration fix
- Loading branch information
Showing
22 changed files
with
375 additions
and
217 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
6 changes: 4 additions & 2 deletions
6
src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/ingame/InGameActions.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 |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.ingame; | ||
|
|
||
| /** | ||
| * Action set for the in game controller. | ||
| * */ | ||
| public enum InGameActions { | ||
| BUY_SHARES, | ||
| SELL_SHARES; | ||
| // Empty, no direct actions. | ||
| } |
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
14 changes: 14 additions & 0 deletions
14
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 |
|---|---|---|
| @@ -1,7 +1,21 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.mainmenu; | ||
|
|
||
| /** | ||
| * Action set for the main menu. | ||
| * */ | ||
| public enum MainMenuActions { | ||
| /** | ||
| * Action for starting the game. | ||
| * */ | ||
| START_GAME, | ||
|
|
||
| /** | ||
| * Action for opening the settings panel. | ||
| * */ | ||
| SETTINGS, | ||
|
|
||
| /** | ||
| * Action for exiting the application. | ||
| * */ | ||
| EXIT; | ||
| } |
3 changes: 0 additions & 3 deletions
3
src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/mainmenu/MainMenuController.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
15 changes: 15 additions & 0 deletions
15
src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/playgame/PlayGameActions.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 |
|---|---|---|
| @@ -1,7 +1,22 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.playgame; | ||
|
|
||
| /** | ||
| * Action set in the {@link PlayGameView} section. | ||
| * */ | ||
| public enum PlayGameActions { | ||
|
|
||
| /** | ||
| * Creating a new game. | ||
| * */ | ||
| NEW_GAME, | ||
|
|
||
| /** | ||
| * Returning to the main menu. | ||
| * */ | ||
| BACK, | ||
|
|
||
| /** | ||
| * Uploading a save file. | ||
| * */ | ||
| UPLOAD_SAVE, | ||
| } |
32 changes: 19 additions & 13 deletions
32
src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/view/settings/SettingsActions.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 |
|---|---|---|
| @@ -1,30 +1,36 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.settings; | ||
|
|
||
| /** | ||
| * User-triggered actions available on the main-menu settings view. | ||
| * | ||
| * <p>{@link #AUDIO}, {@link #VIDEO} and {@link #HOTKEYS} are kept for | ||
| * backwards compatibility with the older sidebar/tab layout - they no | ||
| * longer correspond to user-pressable buttons in the redesigned view, | ||
| * but the {@code SettingsController} still wires no-op handlers to | ||
| * them so existing call sites keep compiling.</p> | ||
| * Action set for {@link SettingsView}. | ||
| * */ | ||
| public enum SettingsActions { | ||
| /** Legacy audio-tab action. No longer triggered by the redesigned view. */ | ||
| /** | ||
| * Audio panel. | ||
| * */ | ||
| AUDIO, | ||
|
|
||
| /** Legacy video-tab action. No longer triggered by the redesigned view. */ | ||
| /** | ||
| * Video panel. | ||
| * */ | ||
| VIDEO, | ||
|
|
||
| /** Legacy hot-keys-tab action. No longer triggered by the redesigned view. */ | ||
| /** | ||
| * Hotkeys panel. | ||
| * */ | ||
| HOTKEYS, | ||
|
|
||
| /** Returns to the main menu. */ | ||
| /** | ||
| * Return to main menu. | ||
| * */ | ||
| BACK, | ||
|
|
||
| /** Selects the dark theme. */ | ||
| /** | ||
| * Selecting dark mode. | ||
| */ | ||
| DARK_MODE, | ||
|
|
||
| /** Selects the light theme. */ | ||
| /** | ||
| * Selecting light mode. | ||
| * */ | ||
| LIGHT_MODE; | ||
| } |
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
6 changes: 6 additions & 0 deletions
6
...n/java/edu/ntnu/idi/idatt2003/g40/mappe/view/widgets/financialsummary/SummaryActions.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 |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| package edu.ntnu.idi.idatt2003.g40.mappe.view.widgets.financialsummary; | ||
|
|
||
| /** | ||
| * Action set for {@link SummaryView}. | ||
| * */ | ||
| public enum SummaryActions { | ||
| /** | ||
| * Advance week. | ||
| * */ | ||
| NEXT_WEEK; | ||
| } |
Oops, something went wrong.