DrawLayers
Basic interface for every effect that draws something related to it.unibo.alchemist.model.interfaces.Layers. This class is a workaround: the Effect abstraction is meant to add effects to nodes, not to draw layers. At present, is the finest workaround available. This workaround has the following disadvantages: - when there aren't nodes visible in the gui the effects are not used at all, so this effect won't work.
Functions
Link copied to clipboard
Content copied to clipboard
open fun <T, P : Position2D<P>?> apply( g: Graphics2D, n: Node<T>, environment: Environment<T, P>, wormhole: Wormhole2D<P>)
Content copied to clipboard
Applies the effect.
Link copied to clipboard
abstract fun <T, P : Position2D<P>?> drawLayers( toDraw: Collection<Layer<T, P>>, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)
Content copied to clipboard
Effectively draw the layers.
Link copied to clipboard