ControllerMediator

blockudoku.controllers.ControllerMediator
trait ControllerMediator extends Snapshotable[_]

The central interface for making destructive changes to the game state. Communicates to more specified controllers.

Attributes

Graph
Supertypes
trait Snapshotable[_]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def selectElement(element: Element): Unit

Selects the given element.

Selects the given element.

Value parameters

element

Element to select.

Attributes

def setElement(element: Element, pos: Int): Unit

Attempts to place the given element at the given position.

Attempts to place the given element at the given position.

Value parameters

element

Element to place.

pos

Index of the tile to place the element at.

Attributes

Inherited and Abstract methods

def createSnapshot(): Unit

Creates a snapshot of the current state.

Creates a snapshot of the current state.

Attributes

Inherited from:
Snapshotable
def revertSnapshot(): Unit

Reverts the state to the most recent snapshot.

Reverts the state to the most recent snapshot.

Attributes

Inherited from:
Snapshotable

Inherited fields

val snapshots: Stack[TSnapshot]

Recorded snapshots with the most recent snapshot at the top.

Recorded snapshots with the most recent snapshot at the top.

Attributes

Inherited from:
Snapshotable