Add individual icon drawing; refactor.

This commit is contained in:
Sergey Vartanov 2021-04-24 01:56:23 +03:00
parent 81ab4e14c7
commit 813ad6b806
16 changed files with 181 additions and 72 deletions

View file

@ -249,8 +249,9 @@ class Constructor:
Röntgen node and way constructor.
"""
def __init__(
self, check_level, mode: str, seed: str, map_: Map,
flinger: Flinger, scheme: Scheme, icon_extractor: IconExtractor):
self, map_: Map, flinger: Flinger, scheme: Scheme,
icon_extractor: IconExtractor, check_level=lambda x: True,
mode: str = "normal", seed: str = ""):
self.check_level = check_level
self.mode: str = mode
@ -273,6 +274,14 @@ class Constructor:
self.buildings.append(building)
self.levels.add(building.get_levels())
def construct(self) -> None:
"""
Construct nodes, ways, and relations.
"""
self.construct_ways()
self.construct_relations()
self.construct_nodes()
def construct_ways(self) -> None:
"""
Construct Röntgen ways.