AbstractEffect

abstract class AbstractEffect<P : Position2D<out P>?> : EffectFX<P>

It models an abstract implementation of the effect interface, implementing default name and visibility properties.

The effect behavior can be implemented via computeDrawCommands template method.

Parameters

<P>

the position type

Functions

Link copied to clipboard
open fun <T> computeDrawCommands(environment: Environment<T, P>): Queue<DrawCommand<P>>
Computes a queue of commands to Draw something.
Link copied to clipboard
abstract fun equals(obj: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
fun isVisible(): Boolean
Gets the visibility of the effect.
Link copied to clipboard
abstract fun setName(name: String)
Sets the name of the effect.
Link copied to clipboard
abstract fun setVisibility(visibility: Boolean)
Sets the visibility of the effect.

Properties

Link copied to clipboard
private open var name: String
Link copied to clipboard
private open var visibility: Boolean

Inheritors

Link copied to clipboard
Link copied to clipboard