mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-31 12:21:34 +00:00
feat: fusion Circuit et CircuitCell
This commit is contained in:
@@ -6,6 +6,8 @@ public class Game
|
||||
private Car[] cars;
|
||||
private Map map;
|
||||
|
||||
private ArrayList<GObserver> obs;
|
||||
|
||||
public static class Builder
|
||||
{
|
||||
private int pnumber = 3;
|
||||
@@ -57,8 +59,6 @@ public class Game
|
||||
}
|
||||
}
|
||||
|
||||
private ArrayList<GObserver> obs;
|
||||
|
||||
public Game(int pnumber, Map map, State state)
|
||||
{
|
||||
int loop = map.getPathSize();
|
||||
@@ -71,6 +71,7 @@ public class Game
|
||||
{
|
||||
Car car = new Car(loop, state);
|
||||
cars[i] = car;
|
||||
|
||||
// Observer pour avancer
|
||||
obs.add(car);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user