line Of Sight
Converts provided coordinates into line-of-sight data.
Return
A set of HexCoordinates that represents all visible coordinates in the line-of-sight from the start to the end point.
Parameters
The starting point of the line-of-sight.
The ending point of the line-of-sight.
The vision radius (default is the class's instance radius).
A function that checks whether the line-of-sight is blocked.
Converts provided coordinates into line-of-sight data.
Return
true if the line-of-sight is not blocked, false otherwise.
Parameters
The starting point of the line-of-sight.
The ending point of the line-of-sight.
The vision radius (default is the class's instance radius).
A function that checks whether the line-of-sight is blocked.
A callback function that is called for each visible coordinate.
Converts provided coordinates into line-of-sight data.
Return
true if the line-of-sight is not blocked, false otherwise.
Parameters
The starting point of the line-of-sight (q).
The starting point of the line-of-sight (r).
The ending point of the line-of-sight (q).
The ending point of the line-of-sight (r).
The vision radius (default is the class's instance radius).
A function that checks whether the line-of-sight is blocked.
A callback function that is called for each visible coordinate.