GridController
Manage game state related to the Grid.
Attributes
- See also
- Graph
-
- Supertypes
- Known subtypes
-
class GridControllerImpl
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Abstract methods
Attempt to set the given Element at the given position.
Attempt to set the given Element at the given position.
Value parameters
- element
-
Element to set.
- selectedPos
-
Index of the tile to set the Element at.
Attributes
- Returns
-
True if the Element was successfully set, false otherwise.
Concrete methods
Creates a snapshot of the current state.
Creates a snapshot of the current state.
Attributes
Gets the current Grid.
Set the given Tiles empty.
Set the given Tiles empty.
Value parameters
- set
-
Tiles to set empty.
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.
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