Map

class turnable.map.Map

Contains the map grid and logic. As is, generates a 2d grid of (Map.BASE_MAP_SIZE + self.level.

get_player_room()

Return room in player position.

get_start_pos()

Returns starting room. Starting room will always be an room.EmptyRoom.

next_level() Tuple[int, int]

Increments level and generates new grid.

reset() Tuple[int, int]

Returns self.level to 1 and regenerates grid.