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());
}
Aggregations