Skip to content

Commit

Permalink
fix bugs with the switch to sunday, halfway implimentet
Browse files Browse the repository at this point in the history
  • Loading branch information
peretr committed May 14, 2026
1 parent 6064d35 commit 0ac514a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .claude/worktrees/nostalgic-liskov-9129de
Submodule nostalgic-liskov-9129de added at 6064d3
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void setGameState(GameState gameState) {
public void startGame() {
timer = new Timer(true);
final int delay = 0;
final int period = 1000; //TODO: This has to be 1000 (1 second) on release
final int period = 10; //TODO: This has to be 1000 (1 second) on release

timer.scheduleAtFixedRate(
new TimerTask() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,8 @@ public void updateGameState() {
}
gameController.setGameState(GameState.WORKDAY);
}

public void setDay(Day day){
dayIndex.set(day.ordinal());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import edu.ntnu.idi.idatt2003.gruppe42.Controller.PopupsController;
import edu.ntnu.idi.idatt2003.gruppe42.Controller.TimeAndWeatherController;
import edu.ntnu.idi.idatt2003.gruppe42.Model.App;
import edu.ntnu.idi.idatt2003.gruppe42.Model.Day;
import edu.ntnu.idi.idatt2003.gruppe42.Model.Player;
import edu.ntnu.idi.idatt2003.gruppe42.Model.Transaction.Purchase;
import edu.ntnu.idi.idatt2003.gruppe42.Model.Transaction.Sale;
Expand Down Expand Up @@ -164,6 +165,7 @@ private void wireWeekendRapport() {
weekendRapportApp.getContinueButton().setOnAction(event -> {
weekendRapportApp.getRoot().setVisible(false);
desktopView.exitLayer(ModalLayer.RAPPORT);
timeAndWeatherController.setDay(Day.SUN);
});
}

Expand Down

0 comments on commit 0ac514a

Please sign in to comment.