HexPath class
This is a path from one hex to another. It contains the total cost of the path, and the list of hexes that make up the path. See Hex.cheapestPathTo for more details.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
segments(
{int segmentSize = 2}) → Iterable< Iterable< Hex> > -
Returns moving window of segments of defined size. With path a,b,c,d,e and segmentSize 3, this method returns: [
a,b,c,b,c,d,c,d,e]. If the segments size is bigger then the path length, the method returns the whole path as a one segment. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited