CommandCaller class
It creates two lists of methods, one for the board and one for the move, and if the method name is in the list of methods, call the method.
Constructors
- CommandCaller(Shape _shape)
- Basic constructor, specify the shape of the board.
Properties
Methods
-
color(
String name, List arg) → bool - If the name of the function is in the _coloring map, call the function and return the result
-
move(
String name, List< int> arg) → bool - If the name of the move is in the _directions map, call the function associated with that name
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited