17 lines
445 B
Java
17 lines
445 B
Java
package laboratoire4;
|
|
|
|
import laboratoire4.pawns.PawnMovement;
|
|
|
|
public interface IPawn {
|
|
boolean isMoveValid(IPawn[][] board, PawnMovement movement);
|
|
boolean isMoveValid(IPawn[][] board, PawnMovement movement, int fromRow, int fromCol);
|
|
void move(PawnMovement movement);
|
|
boolean isPusher();
|
|
int getDirection();
|
|
Player getPlayer();
|
|
int getRow();
|
|
int getCol();
|
|
void setRow(int row);
|
|
void setCol(int col);
|
|
}
|