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

BoardElement : add the methode get and setPositions

parent 12a1de5e
No related branches found
No related tags found
No related merge requests found
...@@ -5,5 +5,15 @@ import util.Position; ...@@ -5,5 +5,15 @@ import util.Position;
public abstract class BoardElement implements ModelElement{ public abstract class BoardElement implements ModelElement{
protected Position position; protected Position position;
public BoardElement(Position position) {
this.position = position;
}
@Override
public Position getPosition() {
return position;
}
public void setPosition(Position position) {
this.position = position;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment