Waterway Module

class Waterway.Waterway(x, y, width, height, config)[source]

Bases: Rect.Rect

Waterway in dungeon.

Randomly pop water tile in dungeon. Water to pop divided into pond and tributary.

get_tile(x, y)[source]

Get a tile from Waterway.

Parameters:
  • x – potision x.
  • y – potision y.
Return type:

Tile class.

Returns:

Return tile. if it does not exist, return None.

get_tiles()[source]

Get tile collection from Waterway.

Return type:List.
Returns:Return tile of list. if it does not exist, return empty list.

Previous topic

Util Module

Next topic

dungeon_generator Module

This Page