mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-28 18:03:50 +00:00
feat(Map.java): init la class Map
This commit is contained in:
19
src/Map.java
Normal file
19
src/Map.java
Normal file
@@ -0,0 +1,19 @@
|
||||
import java.awt.Point;
|
||||
|
||||
public class Map {
|
||||
private Circuit[][] map;
|
||||
private Point[] pathMap;
|
||||
|
||||
public Map(Circuit[][] map) {
|
||||
this.map = map;
|
||||
this.buildPath();
|
||||
}
|
||||
|
||||
private boolean buildPath() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Circuit getElement(int x, int y) {
|
||||
return map[y][x];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user