@Test public void testGetMaxHit() { assertEquals(MAX_HIT, weapon1.getMaxHit()); assertEquals(MAX_HIT, weapon2.getMaxHit()); }
public int getMaxHit() { return ((WeaponProperties) properties).getMaxHit(); }
Weapon extends AbstractEquipableItem { public int getMaxHit() { return ((WeaponProperties) properties).getMaxHit(); } }
Weapon extends AbstractEquipableItem { public int getMaxHit() { return ((WeaponProperties) properties).getMaxHit(); } Weapon(WeaponProperties properties, int amount); }
Weapon extends AbstractEquipableItem { public int getMaxHit() { return ((WeaponProperties) properties).getMaxHit(); } Weapon(WeaponProperties properties, int amount); @Override Item clone(); @Override void use(Character character); boolean getStabs(); int getPiercingDamage(); int getMinHit(); int getMaxHit(); int getDamage(); }
Weapon extends AbstractEquipableItem { public int getMaxHit() { return ((WeaponProperties) properties).getMaxHit(); } Weapon(WeaponProperties properties, int amount); @Override Item clone(); @Override void use(Character character); boolean getStabs(); int getPiercingDamage(); int getMinHit(); int getMaxHit(); int getDamage();  }