package dev.llan.model.pieces;
import dev.llan.model.board.Point;
public abstract class APiece implements Piece {
private final String name;
private final String resourcePath;
private Point position;
public APiece(String name, String resourcePath) {
this.name = name;
this.resourcePath = resourcePath;
}
@Override
public String getResourcePath() {
return resourcePath;
}
public String getName() {
return this.name;
}
@Override
public Point getPosition() {
return position;
}
@Override
public void setPosition(Point point) {
this.position = point;
}
}