test pour faire le plateau+nouveau menu dans testV1+ probleme compilation
This commit is contained in:
19
TestV1/TestEnAttendantResolutionBug/model/Tile.java
Normal file
19
TestV1/TestEnAttendantResolutionBug/model/Tile.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package model;
|
||||
|
||||
public class Tile {
|
||||
private String type; // Par exemple : "forêt", "rivière", "champ", etc.
|
||||
private String[] edges; // Les types des bords de la tuile (ex: "eau", "terre")
|
||||
|
||||
public Tile(String type, String[] edges) {
|
||||
this.type = type;
|
||||
this.edges = edges;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getEdge(int index) {
|
||||
return edges[index];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user