EffectStack

class EffectStack<P : Position2D<out P>?> : EffectGroup<P>

The class models a group of effects, stored as a stack. It can manage priority of visualization and visibility of each effect inside it.

Parameters

<P>

The position type

Constructors

Link copied to clipboard
open fun EffectStack()
Constructor that creates an empty stack of effects with default name.
Link copied to clipboard
open fun EffectStack(name: String)
Default constructor.

Functions

Link copied to clipboard
open fun add(e: EffectFX<P>): Boolean
Link copied to clipboard
open fun addAll(c: Collection<out EffectFX<P>>): Boolean
Link copied to clipboard
open fun changePriority(effect: EffectFX<P>, offset: Int)
Changes the specified offset priority of the specified offset.
Link copied to clipboard
open fun clear()
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
open fun contains(o: Any): Boolean
Link copied to clipboard
open fun containsAll(c: Collection<out Any>): Boolean
Link copied to clipboard
open fun element(): EffectFX<P>
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun forEach(action: Consumer<out Any>)
Link copied to clipboard
open fun getTypeAdapter(): EffectGroupAdapter
Returns a com.google.gson.JsonSerializer and com.google.gson.JsonDeserializer combo class to be used as a TypeAdapter for this EffectStack.
Link copied to clipboard
open fun getVisibilityOf(effect: EffectFX<P>): Boolean
Returns the visibility of the specified effect.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isVisible(): Boolean
Gets the visibility of the effect.
Link copied to clipboard
open fun iterator(): Iterator<EffectFX<P>>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
open fun offer(e: EffectFX<P>): Boolean
Link copied to clipboard
open fun parallelStream(): Stream<E>
Link copied to clipboard
open fun peek(): EffectFX<P>
Returns the effect with maximum priority, without removing it.
Link copied to clipboard
open fun poll(): EffectFX<P>
Link copied to clipboard
open fun pop(): EffectFX<P>
Removes the effect with maximum priority and returns it.
Link copied to clipboard
open fun push(effect: EffectFX<P>): EffectFX<P>
Puts the effects in the group, giving it the maximum priority.
Link copied to clipboard
open fun remove(): EffectFX<P>
open fun remove(o: Any): Boolean
Link copied to clipboard
open fun removeAll(c: Collection<out Any>): Boolean
Link copied to clipboard
open fun removeIf(filter: Predicate<out Any>): Boolean
Link copied to clipboard
open fun retainAll(c: Collection<out Any>): Boolean
Link copied to clipboard
open fun search(effect: EffectFX<P>): Int
Checks if an effect is present in the group.
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.
Link copied to clipboard
open fun setVisibilityOf(effect: EffectFX<P>, visibility: Boolean)
Sets the visibility of the specified effect.
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
open fun spliterator(): Spliterator<T>
open fun spliterator(): Spliterator<E>
Link copied to clipboard
open fun stream(): Stream<E>
Link copied to clipboard
open fun toArray(): Array<Any>
open fun <T> toArray(a: Array<T>): Array<T>

Properties

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