NotQuiteParadise2

nqp.topography package

Submodules

nqp.topography.pathfinding module

class PriorityQueue[source]

Bases: object

PriorityQueue implementation using heapq

__init__()[source]
get()[source]
put(item, priority: float)[source]
search_terrain(terrain, start, end)[source]

Perform basic a* search on a Terrain

  • return path from start to end

  • start will not be included in the list

  • end will be the last item in the returned list

  • empty list will be returned if there is no path

nqp.topography.terrain module

nqp.topography.tile module

class Tile(tile_type, tile_config)[source]

Bases: object

Single Tile as part of a Terrain

__init__(tile_type, tile_config)[source]
draw(game, surf, dest)[source]
property group
property src_x
property src_y

Module contents