/* Author: James Tam Version: October 12, 2015 */ public class Entity { public static final char DEFAULT = 'X'; private char appearance; private int hitPoints; public Entity() { setAppearance(DEFAULT); } public Entity(char anAppearance, int newHP) { appearance = anAppearance; hitPoints = newHP; } public Entity(char newAppearance) { setAppearance(newAppearance); } public char getAppearance() { return(appearance); } private void setAppearance(char newAppearance) { appearance = newAppearance; } }