Contents:
Bases: object
object
A world connects grids but can have multiple grids.
grids (Dict[int, Grid]) –
Initialize a new world.
grids (Dict[int, Grid]) – grids in this world
Get neighbors of the given node.
node (GridNode) – node to get neighbors from
diagonal_movement (int) – if diagonal movement is allowed (see enum in diagonal_movement)
neighbors of the given node
List[GridNode]
Calculate the cost between two nodes.
node_a (GridNode) – first node
node_b (GridNode) – second node
weighted (bool) – wether to use weights or not
cost between the two nodes
float
Cleanup all grids in this world.