Declaration
public static TCell Move<TCell, TDirection>(
this Structure<TCell> structure,
TCell cell,
TDirection direction,
int amount = 1
)Summary
Moves the specified
amount of steps in the specified
direction within
structure and returns the cell landed on.
Generic type parameters
| TCell | This type parameter is not documented. |
| TDirection | This type parameter is not documented. |
Parameters
| this Structure<TCell> | structure |
The structure within which to move. |
| TCell | cell |
Starting cell. |
| TDirection | direction |
Direction to attempt to move in. |
| int | amount |
Number of steps to move. |
Exceptions
- System.InvalidOperationException
It is not possible to move the specified number of steps.