@Test public void testGetMaxHit() { assertEquals(MAX_HIT, boat1.getMaxHit()); assertEquals(MAX_HIT, boat2.getMaxHit()); }
public int getMaxHit() { return ((BoatProperties) properties).getMaxHit(); }
Boat extends AbstractDefensiveItem { public int getMaxHit() { return ((BoatProperties) properties).getMaxHit(); } }
Boat extends AbstractDefensiveItem { public int getMaxHit() { return ((BoatProperties) properties).getMaxHit(); } Boat(BoatProperties properties, int amount); }
Boat extends AbstractDefensiveItem { public int getMaxHit() { return ((BoatProperties) properties).getMaxHit(); } Boat(BoatProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getMinHit(); int getMaxHit(); int getDamageBonus(); @Override boolean canBeStolen(); int getUsageDifficulty(); }
Boat extends AbstractDefensiveItem { public int getMaxHit() { return ((BoatProperties) properties).getMaxHit(); } Boat(BoatProperties properties, int amount); @Override Item clone(); @Override void use(Character character); int getMinHit(); int getMaxHit(); int getDamageBonus(); @Override boolean canBeStolen(); int getUsageDifficulty();  }