Skip to content
Snippets Groups Projects
Commit cb43f02e authored by CHERCHEM Sarah's avatar CHERCHEM Sarah
Browse files

BoardElement : add the methode isAtPosition

parent 990166fc
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,12 @@ public abstract class BoardElement implements ModelElement{
public void setPosition(Position position) {
this.position = position;
}
public boolean isAtPosition(Position position) {
return this.position.equals(position);
}
public abstract String getType(); // Ajout de la méthode abstraite
public abstract String toString();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment