Created Player class

This commit is contained in:
2019-02-18 18:56:45 -07:00
parent 509a587447
commit a5cbc87906
2 changed files with 59 additions and 45 deletions

View File

@@ -11,14 +11,6 @@ public class Player {
private int guns = 0;
private int Hp = 100;
public int getHp() {
return Hp;
}
public void setHp(int hp) {
Hp = hp;
}
public String getName() {
return name;
}
@@ -27,6 +19,14 @@ public class Player {
this.name = name;
}
public int getHp() {
return Hp;
}
public void setHp(int hp) {
Hp = hp;
}
public int getBank() {
return bank;
}