Files
BUT3ProjetJeuGroupe/Tuile.java
2025-10-16 11:35:37 +02:00

37 lines
575 B
Java

import java.util.LinkedList;
public class Tuile {
/*ATTRIBUTS*/
private byte y;
private byte r;
private String color;
private LinkedList<Tuile> voisins = new LinkedList<Tuile>();
/*METHODES*/
public byte getY(){
return this.y;
}
public byte getR(){
return this.r;
}
public String getColor(){
return this.color;
}
public void addVoisin(Tuile v){
this.voisins.add(v);
}
public LinkedList<Tuile> getVoisins(){
return this.voisins;
}
/*CONSTRUCTEUR*/
public Tuile(byte y, byte r, String c){
this.y = y;
this.r = r;
this.color = c;
}
}