RowCol

Represents a discrete location within the map grid.

Constructors

this
this(coord_t row, coord_t col)

Construct a row column pair

Members

Functions

opBinary
RowCol opBinary(RowCol rhs)

Add or subtract one coordinate from another

Properties

adjacent
Diagonals adjacent [@property setter]

Return a range containing the coords adjacent to this coord.

east
int east [@property setter]

Get a coordinate to the right of this coordinate

north
int north [@property setter]

Get a coordinate above this coordinate

south
int south [@property setter]

Get a coordinate below this coordinate

toString
string toString [@property getter]

Get a string representation of the coordinate, useful for debugging

west
int west [@property setter]

Get a coordinate to the left of this coordinate

Variables

col
coord_t col;
Undocumented in source.
row
coord_t row;
Undocumented in source.

Meta