PathTile

class PathTile(coord: Coordinate, dist: int = 0)

Bases: Tile

A tile with distance information for pathfinding.

Has a location on a 2D grid, represented by a Coordinate.

Parameters:
  • coord – The tile’s location

  • dist – Distance from the starting tile

classmethod fromRawInt(x, y, dist: int = 0) PathTile

Create a PathTile from raw integers.

Parameters:
  • xx coordinate of the tile

  • yy coordinate of the tile

Returns:

A new tile