use of com.b3dgs.lionengine.Range in project lionengine by b3dgs.
the class DamagesTest method testSetDamagesRange.
/**
* Test set damages with range.
*/
@Test
void testSetDamagesRange() {
final Damages damages = new Damages();
damages.setDamages(new Range(1, 5));
assertEquals(1, damages.getMin());
assertEquals(5, damages.getMax());
}
Aggregations