Created Player class

This commit is contained in:
2019-02-18 18:47:00 -07:00
parent f419834f79
commit 509a587447
3 changed files with 226 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
public class Core {
public class Player {
private String name = "Taipan";
private int bank = 0;
@@ -9,6 +9,15 @@ public class Core {
private int armsHeld = 0;
private int location = 2;
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;