Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int MaxMoves<TCell, TDirection>(this Structure<TCell>, TCell, TDirection, out TCell)

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
  • Must derive from: RT.Coordinates.IHasDirection<TCell, TDirection>.
This type parameter is not documented.
TDirectionThis type parameter is not documented.

Parameters

this Structure<TCell>structure The structure within which to move.
TCellcell Starting cell.
TDirectiondirection Direction to attempt to move in.
out TCelllastCell Receives the final cell landed on.

Exceptions

  • System.InvalidOperationException
    The structure contains a cycle that causes the movement to loop back on itself.