You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package structures.basic;
-
- /**
- * A basic representation of of the Player. A player
- * has health and mana.
- *
- * @author Dr. Richard McCreadie
- *
- */
- public class Player {
-
- int health;
- int mana;
-
- public Player() {
- super();
- this.health = 20;
- this.mana = 0;
- }
- public Player(int health, int mana) {
- super();
- this.health = health;
- this.mana = mana;
- }
- public int getHealth() {
- return health;
- }
- public void setHealth(int health) {
- this.health = health;
- }
- public int getMana() {
- return mana;
- }
- public void setMana(int mana) {
- this.mana = mana;
- }
-
-
-
- }
|