feat: ajout Menu selection

This commit is contained in:
2025-12-19 16:18:40 +01:00
parent 203ed3c94d
commit 25c3e8dbd7
12 changed files with 254 additions and 80 deletions

View File

@@ -39,19 +39,19 @@ public class Game {
public Builder rankboard(String title, int width,
int height, int x, int y) {
this.OBSERVERS.add(new Rankboard(null, title, width, height, x, y));
this.OBSERVERS.add(new RankboardView(null, title, width, height, x, y));
return this;
}
public Builder track(String title, int width,
int height, int x, int y) {
this.OBSERVERS.add(new Track(null, title, width, height, x, y));
this.OBSERVERS.add(new TrackView(null, title, width, height, x, y));
return this;
}
public Builder dashboard(Car car, String title, int width,
int height, int x, int y) {
this.OBSERVERS.add(new Dashboard(null, car, title, width, height, x, y));
this.OBSERVERS.add(new DashboardView(null, car, title, width, height, x, y));
return this;
}