Search in sources :

Example 6 with Range

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());
}
Also used : Range(com.b3dgs.lionengine.Range) Test(org.junit.jupiter.api.Test)

Aggregations

Range (com.b3dgs.lionengine.Range)6 Test (org.junit.jupiter.api.Test)5 Transformable (com.b3dgs.lionengine.game.feature.Transformable)2 UtilTransformable (com.b3dgs.lionengine.game.feature.UtilTransformable)2 Animation (com.b3dgs.lionengine.Animation)1 Animatable (com.b3dgs.lionengine.game.feature.Animatable)1 TransformableModel (com.b3dgs.lionengine.game.feature.TransformableModel)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1