ScoreControllerImpl

blockudoku.controllers.mediatorImpl.ScoreControllerImpl
class ScoreControllerImpl(gridCollector: GridCollector) extends ScoreController

Attributes

Graph
Supertypes
trait Observable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

case class ScoreControllerSnapshot(score: Score)

Attributes

Inherited from:
ScoreController
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def getScore: Int

Attributes

Definition Classes
override def testGridState(): Set[Tile]

Check the current grid state for win conditions and update the score accordingly.

Check the current grid state for win conditions and update the score accordingly.

Attributes

Returns

Set of Tiles that should be removed from the grid.

Definition Classes
def updateScore(score: Score): Unit

Inherited methods

def addObserver(observer: Observer): Unit

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
override def createSnapshot(): Unit

Creates a snapshot of the current state.

Creates a snapshot of the current state.

Attributes

Definition Classes
Inherited from:
ScoreController
def loadScore(newScore: Int): Unit

Attributes

Inherited from:
ScoreController
def notifyObservers(): Unit

Invokes the update method of all observers.

Invokes the update method of all observers.

Attributes

Inherited from:
Observable
override def revertSnapshot(): Unit

Reverts the state to the most recent snapshot.

Reverts the state to the most recent snapshot.

Attributes

Definition Classes
Inherited from:
ScoreController

Concrete fields

var score: Score

Current score.

Current score.

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