Declaration
public static int MaxMoves<TCell, TDirection>(
this Structure<TCell> structure,
TCell cell,
TDirection direction,
out TCell lastCell
)
Summary
Returns the maximum number of steps it is possible to move in the specified
direction
within
structure.
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. |
out TCell | lastCell |
Receives the final cell landed on. |
Exceptions
- System.InvalidOperationException
The structure contains a cycle that causes the movement to loop back on itself.