Add a bunch of doc strings and header comments to files

This commit is contained in:
Eryn Wells 2023-02-15 08:25:40 -08:00
parent 633580e27a
commit 4050ac5c6f
7 changed files with 25 additions and 3 deletions

View file

@ -12,13 +12,16 @@ class MapGenerator:
@property
def up_stairs(self) -> List[Point]:
'''The location of any routes to a higher floor of the dungeon.'''
raise NotImplementedError()
@property
def down_stairs(self) -> List[Point]:
'''The location of any routes to a lower floor of the dungeon.'''
raise NotImplementedError()
def generate(self, tiles: np.ndarray):
'''Generate a map and place it in `tiles`'''
raise NotImplementedError()

View file

@ -1,3 +1,5 @@
# Eryn Wells <eryn@erynwells.me>
'''
Defines an abstract CorridorGenerator and several concrete subclasses. These classes generate corridors between rooms.
'''