ElementControllerImpl
Attributes
- Graph
-
- Supertypes
-
trait ElementControllertrait ElementCollectortrait Observableclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- ElementController
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Generates a new Element for the given slot.
Generates a new Element for the given slot.
Value parameters
- slot
-
The slot to generate the Element for. Must be in the range of 0 to elementCount.
Attributes
- Returns
-
The generated Element.
Selects the given Element.
Selects the given Element.
Value parameters
- element
-
Element to select.
Attributes
Inherited methods
Adds an observer to the list of observers.
Adds an observer to the list of observers.
Value parameters
- observer
-
The observer to add.
Attributes
- Inherited from:
- Observable
Creates a snapshot of the current state.
Gets all selectable Element.
Gets all selectable Element.
Attributes
- Returns
-
a list of Elements.
- Definition Classes
- Inherited from:
- ElementController
Gets the currently selected Element.
Gets the currently selected Element.
Attributes
- Returns
-
an Element if any is selected, None otherwise.
- Definition Classes
- Inherited from:
- ElementController
Attributes
- Inherited from:
- ElementController
Invokes the update method of all observers.
Deselects the currently selected Element.
Reverts the state to the most recent snapshot.
Concrete fields
How many Elements are selectable at once.
How many Elements are selectable at once.
Attributes
The currently selectable Elements.
The currently selectable Elements.
Attributes
The maximum length (in tiles) of an element.
The maximum length (in tiles) of an element.
Attributes
Inherited fields
The currently selected Element.
Recorded snapshots with the most recent snapshot at the top.
Recorded snapshots with the most recent snapshot at the top.
Attributes
- Inherited from:
- Snapshotable