@Test public void testGetMaxHP() { assertEquals(MAX_HP, potion1.getMaxHP()); assertEquals(MAX_HP, potion2.getMaxHP()); }
public int getMaxHP() { return ((StatModifyingItemProperties) properties).getMaxModifier(); }
HPPotion extends ConsumableItem { public int getMaxHP() { return ((StatModifyingItemProperties) properties).getMaxModifier(); } }
HPPotion extends ConsumableItem { public int getMaxHP() { return ((StatModifyingItemProperties) properties).getMaxModifier(); } HPPotion(StatModifyingItemProperties properties, int amount); }
HPPotion extends ConsumableItem { public int getMaxHP() { return ((StatModifyingItemProperties) properties).getMaxModifier(); } HPPotion(StatModifyingItemProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getMinHP(); int getMaxHP(); }
HPPotion extends ConsumableItem { public int getMaxHP() { return ((StatModifyingItemProperties) properties).getMaxModifier(); } HPPotion(StatModifyingItemProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getMinHP(); int getMaxHP();  }