Tile¶
- class Tile(coord: Coordinate)¶
Bases:
objectA generic tile.
Has a location on a 2D grid, represented by a
Coordinate.- Parameters:
coord – The location of the tile, as a
Coordinate
- classmethod fromRawInt(x: int, y: int) Tile¶
Create a PathTile from raw integers.
- Parameters:
x – x coordinate of the tile
y – y coordinate of the tile
- Returns:
A new tile
- set_coords(x: int, y: int) None¶
- set_coords(coords: tuple[int, int]) None
- set_coords(coords: Coordinate) None
Set the tile’s coordinates.