classe tuile
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import java.util.List;
|
import java.util.LinkedList;
|
||||||
|
|
||||||
public class Tuile {
|
public class Tuile {
|
||||||
/*ATTRIBUTS*/
|
/*ATTRIBUTS*/
|
||||||
private byte y;
|
private byte y;
|
||||||
private byte r;
|
private byte r;
|
||||||
private String color;
|
private String color;
|
||||||
private List<Tuile> voisins = new List<Tuile>();
|
private LinkedList<Tuile> voisins = new LinkedList<Tuile>();
|
||||||
|
|
||||||
/*METHODES*/
|
/*METHODES*/
|
||||||
public byte getY(){
|
public byte getY(){
|
||||||
@@ -24,7 +24,7 @@ public class Tuile {
|
|||||||
this.voisins.add(v);
|
this.voisins.add(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Tuile> getVoisins(){
|
public LinkedList<Tuile> getVoisins(){
|
||||||
return this.voisins;
|
return this.voisins;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user