minesweeper/src/com/tofvesson/api/ICoordinate.java
2016-03-21 04:41:02 +01:00

17 lines
370 B
Java

package com.tofvesson.api;
public interface ICoordinate {
public abstract int getX();
public abstract int getY();
public abstract void setX(int x);
public abstract void setY(int y);
public default void setCoordinate(ICoordinate c){
setX(c.getX());
setY(c.getY());
}
public default void setCoordinate(int x, int y){
setX(x);
setY(y);
}
}