Search in sources :

Example 1 with AnimatorMock

use of com.b3dgs.lionengine.core.drawable.AnimatorMock in project lionengine by b3dgs.

the class UtilAttackable method prepare.

/**
 * Create the featurable.
 *
 * @param featurable The featurable to prepare.
 */
public static void prepare(Featurable featurable) {
    final Animator animator = new AnimatorMock();
    animator.play(new Animation("test", 1, 1, 1.0, false, false));
    featurable.addFeature(new AnimatableModel(animator));
    featurable.addFeature(new TransformableModel());
}
Also used : Animator(com.b3dgs.lionengine.Animator) AnimatableModel(com.b3dgs.lionengine.game.feature.AnimatableModel) TransformableModel(com.b3dgs.lionengine.game.feature.TransformableModel) Animation(com.b3dgs.lionengine.Animation) AnimatorMock(com.b3dgs.lionengine.core.drawable.AnimatorMock)

Aggregations

Animation (com.b3dgs.lionengine.Animation)1 Animator (com.b3dgs.lionengine.Animator)1 AnimatorMock (com.b3dgs.lionengine.core.drawable.AnimatorMock)1 AnimatableModel (com.b3dgs.lionengine.game.feature.AnimatableModel)1 TransformableModel (com.b3dgs.lionengine.game.feature.TransformableModel)1