CommandFactory

blockudoku.commands.CommandFactory

Factory methods for each supported Command. It is not recommended to create commands directly.

Attributes

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

Members list

Value members

Abstract methods

Creates a Command that selects the given element.

Creates a Command that selects the given element.

Value parameters

element

Element to select.

Attributes

Returns

Command that was created.

def createSetElementCommand(element: Element, pos: Int): Command

Creates a Command that attempts to move the selected element to the given position.

Creates a Command that attempts to move the selected element to the given position.

Value parameters

element

Element to move.

pos

Index of the tile to move the element to.

Attributes

Returns

Command that was created.