Added documentation for some classes again

This commit is contained in:
eichhornchen
2020-11-18 12:27:59 +01:00
parent 4c4a140a45
commit 6f9317fbc2
6 changed files with 40 additions and 62 deletions

View File

@ -5,6 +5,9 @@ from ..interfaces import FightingEntity, Map
class Monster(FightingEntity):
"""
The class for all monsters in the dungeon
"""
def __init__(self) -> None:
super().__init__()
@ -38,6 +41,9 @@ class Monster(FightingEntity):
class Beaver(Monster):
"""
A beaver monster
"""
def __init__(self) -> None:
super().__init__()
name = "beaver"
@ -46,6 +52,9 @@ class Beaver(Monster):
class Hedgehog(Monster):
"""
A really mean hedgehog monster
"""
def __init__(self) -> None:
super().__init__()
name = "hedgehog"
@ -54,6 +63,9 @@ class Hedgehog(Monster):
class Rabbit(Monster):
"""
A rabbit monster
"""
def __init__(self) -> None:
super().__init__()
name = "rabbit"
@ -62,6 +74,9 @@ class Rabbit(Monster):
class TeddyBear(Monster):
"""
A cute teddybear monster
"""
def __init__(self) -> None:
super().__init__()
name = "teddy_bear"