Created
December 9, 2015 00:52
-
-
Save franksands/4a0c0f55a87be1fd1fa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LivingThing { | |
public String name; | |
public int health; | |
public int magicPoints; | |
public String attack; | |
public int hunger; | |
public LivingThing(String name, int health, int magicPoints, String attack) { | |
this.name = name; | |
this.health = health; | |
this.magicPoints = magicPoints; | |
this.attack = attack; | |
this.hunger = 0; // all living things start with hunger level 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment