Width.
Height.
X index.
Unique tile ID.
Y index.
The map.
List of neighboring tiles [top, left, bottom, right].
Objects currently in this tile.
List of Walls [top, left, bottom, right].
X coordinate in pixels.
Y coordinate in pixels.
Adds or removes a wall.
0: top, 1: left, 2: bottom, 3: right.
Whether to remove the wall.
Whether to update the neighbor as well.
Return the coordinates of the corners of the tile and whether they're part of some wall.
List of corners with {x, y, w}.
Draw the tile walls.
The context.
Is there any walls between the tile and a point at x,y?
X coordinate.
Y coordinate.
List of walls encountered.
Find any object that matches the condition and return a path of coordinates to it.
Match condition.
Max path length.
Path to object or null.
Class for tiles of a GameMap. Contains position, wall list, neighbor list, object list.