Command

blockudoku.commands.Command
trait Command(snapshotables: List[Snapshotable[_]])

A destructive (but undoable) operation to be executed by a blockudoku.commands.CommandInvoker.

Value parameters

snapshotables

A list of all the objects that need to be snapshot before the command is executed. Is generally provided by the factory.

Attributes

See also
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def handleExecute(): Unit

The actual implementation of the command.

The actual implementation of the command.

Attributes

Concrete methods

def execute(): Unit

Snapshots all necessary objects and then executes the command. Should not be used directly, use CommandInvoker.execute instead.

Snapshots all necessary objects and then executes the command. Should not be used directly, use CommandInvoker.execute instead.

Attributes

def undo(): Unit

Reverts all objects to their previous state. Should not be used directly, use CommandInvoker.undo instead.

Reverts all objects to their previous state. Should not be used directly, use CommandInvoker.undo instead.

Attributes