ElementController
Manages game state related to Elements.
Attributes
- See also
- Graph
-
- Supertypes
- Known subtypes
-
class ElementControllerImpl
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Abstract 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
Concrete methods
Creates a snapshot of the current state.
Creates a snapshot of the current state.
Attributes
Gets all selectable Element.
Gets all selectable Element.
Attributes
- Returns
-
a list of Elements.
- Definition Classes
Gets the currently selected Element.
Gets the currently selected Element.
Attributes
- Returns
-
an Element if any is selected, None otherwise.
- Definition Classes
Deselects the currently selected Element.
Deselects the currently selected Element.
Attributes
Reverts the state to the most recent snapshot.
Reverts the state to the most recent snapshot.
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
Invokes the update method of all observers.
Abstract 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
Concrete fields
The currently selected Element.
The currently selected Element.
Attributes
Inherited fields
Recorded snapshots with the most recent snapshot at the top.
Recorded snapshots with the most recent snapshot at the top.
Attributes
- Inherited from:
- Snapshotable