EffectBuilderFX

open class EffectBuilderFX

Class that lets the user choose the effect from all it can find.

Constructors

Link copied to clipboard
open fun EffectBuilderFX()
Default constructor.

Functions

Link copied to clipboard
open fun <P : Position2D<out P>?> chooseAndLoad(): EffectFX<P>
Asks the user to chose an effect and returns a new instance of the desired class.
Link copied to clipboard
open fun getFoundEffects(): List<Class<out EffectFX<out Any>>>
Gets an unmodifiable view of the effects found during construction.
Link copied to clipboard
open fun <P : Position2D<out P>?, C : EffectFX<P>?> getResult(): Optional<Class<C>>
Asks the user to chose an effect and returns the related Class.
Link copied to clipboard
open fun <P : Position2D<out P>?> instantiateEffect(clazz: Class<out EffectFX<P>>): EffectFX<P>
Instantiates the desired effect.