CanMove<>(structure, cell, direction, amount) MaxMoves<>(structure, cell, direction, lastCell) Move<>(structure, cell, direction, amount) TryMove<>(structure, cell, direction, newCell, amount)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Static class: RT.Coordinates.GridUtilsSummaryContains some extension methods. Static methodsbool | CanMove<TCell, TDirection>(this Structure<TCell> structure, TCell cell, TDirection direction, int amount = 1) |
Determines whether it is possible within structure to move the specified amount of steps in the specified direction. | Square.Direction | |
Returns a new Square.Direction which is the specified multiple of 45° clockwise from the current
direction. | Hex.Direction | |
Returns a new Hex.Direction which is the specified multiple of 60° clockwise from the current
direction. | Structure<CombinedCell<TCell>> | |
Returns a new structure in which the specified set of cells is combined (merged) into a single cell. | Structure<CombinedCell<TCell>> | | IEnumerable<TCell> | |
Given the output from Structure<TCell>.FindPath(TCell, TCell), reconstructs a path from the
origin cell to the specified destination cell. | IEnumerable<Link<Vertex>> | |
Generates a set of edges from a collection of vertices in which the vertices are in the correct order (either
clockwise or counter-clockwise). | int | MaxMoves<TCell, TDirection>(this Structure<TCell> structure, TCell cell, TDirection direction, out TCell lastCell) |
Returns the maximum number of steps it is possible to move in the specified direction
within structure. | TCell | Move<TCell, TDirection>(this Structure<TCell> structure, TCell cell, TDirection direction, int amount = 1) |
Moves the specified amount of steps in the specified direction within
structure and returns the cell landed on. | object | |
Converts a string representation of a cell into the original cell. | string | |
Returns an SVG path string (usable in the d attribute of a <path> element) that draws all
of the specified edges. | bool | TryMove<TCell, TDirection>(this Structure<TCell> structure, TCell cell, TDirection direction, out TCell newCell, int amount = 1) |
Determines whether it is possible within structure to move the specified amount of steps in the specified direction and sets newCell to
the cell landed on. |
|