@Test public void testGetMagicPower() { assertEquals(MAGIC_POWER, ((Staff) weapon1).getMagicPower()); assertEquals(MAGIC_POWER, ((Staff) weapon2).getMagicPower()); }
public int getMagicPower() { return ((StaffProperties) properties).getMagicPower(); }
Staff extends Weapon { public int getMagicPower() { return ((StaffProperties) properties).getMagicPower(); } }
Staff extends Weapon { public int getMagicPower() { return ((StaffProperties) properties).getMagicPower(); } Staff(StaffProperties properties, int amount); }
Staff extends Weapon { public int getMagicPower() { return ((StaffProperties) properties).getMagicPower(); } Staff(StaffProperties properties, int amount); int getMagicPower(); int getDamageBonus(); @Override Item clone(); @Override void use(Character character); }
Staff extends Weapon { public int getMagicPower() { return ((StaffProperties) properties).getMagicPower(); } Staff(StaffProperties properties, int amount); int getMagicPower(); int getDamageBonus(); @Override Item clone(); @Override void use(Character character);  }