Skip to content
Snippets Groups Projects
Commit c14dc015 authored by dragapsy's avatar dragapsy
Browse files

Tache 7 (Ajout de la classe HumanPlayer + Ajout de ces deux constructeur +...

Tache 7 (Ajout de la classe HumanPlayer + Ajout de ces deux constructeur + redefinition des methodes implementé):
parent 6f10cb76
No related branches found
No related tags found
No related merge requests found
package model;
public class HumanPlayer implements Player{
private Cell startCell;
private String name;
public HumanPlayer(String name, Cell startCell){
this.name=name;
this.startCell=startCell;
}
public HumanPlayer(Cell startCell){
this.startCell=startCell;
this.name="player";
}
@Override
public boolean isHuman() {
return true;
}
@Override
public void setName(String name) {
this.name=name;
}
@Override
public String getName() {
return this.name;
}
@Override
public Cell getStartCell() {
return this.startCell;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment