mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-30 11:56:14 +00:00
feat: ajout Menu selection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user