package Entities; import Frames.Frame; /** * Character class, which is a sub-class of an entity * @author Victor * */ public class Character extends Entity { private static int maxHP; /** * Main constructor for a character. By default its max health is 1000 if not specified */ public Character() { super(); this.maxHP = 1000; } public Character(int posx, int posy, Frame f, int maxHP) { super(posx, posy, f); this.maxHP = maxHP; } public void setMaxHP(int HP) { this.maxHP = HP; } public int getMaxHP() { return this.getMaxHP();} }