add getter and setter for name
This commit is contained in:
parent
ab1aae7798
commit
bdde2066f3
|
@ -28,4 +28,11 @@ public abstract class Player {
|
|||
public void setEnemy(Player enemy) {
|
||||
this.enemy = enemy;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue