instantiateEffect

open fun <P : Position2D<out P>?> instantiateEffect(clazz: Class<out EffectFX<P>>): EffectFX<P>

Instantiates the desired effect.

Return

the effect instantiated

Parameters

<P>

the position type

clazz

the class of the effect