Skip to content
Snippets Groups Projects
Commit a83e40a2 authored by BEL KHALIFA Mohamed amine's avatar BEL KHALIFA Mohamed amine
Browse files

player

parent 9b1f0e72
No related branches found
No related tags found
No related merge requests found
package model;
public class HumanPlayer implements Player {
private String name;
private Cell startCell;
HumanPlayer(String name, Cell startCell) {
this.name = name;
this.startCell = startCell;
}
HumanPlayer(Cell startCell1) {
this.startCell = startCell1;
}
@Override
public boolean isHuman() {
return true;
}
@Override
public void setName(String name) {
this.name = name;
}
@Override
public String getName() {
return name;
}
@Override
public Cell getStartCell() {
return startCell;
}
}
...@@ -2,4 +2,11 @@ package model; ...@@ -2,4 +2,11 @@ package model;
public interface Player { public interface Player {
boolean isHuman(); boolean isHuman();
void setName(String name);
String getName();
Cell getStartCell();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment