diff --git a/dungeonbattle/entities/items.py b/dungeonbattle/entities/items.py new file mode 100644 index 0000000..e88a36e --- /dev/null +++ b/dungeonbattle/entities/items.py @@ -0,0 +1,15 @@ +from ..interfaces import Entity + +class Item(Entity): + held:bool + + def __init__(self, *args, **kwargs): + super().__init__(self, *args, **kwargs) + self.held = False + + def drop(self, x:int, y:int): + self.held = False + self.move(x, y) + + def hold(self): + self.held = True diff --git a/dungeonbattle/entities/monsters.py b/dungeonbattle/entities/monsters.py index c9cdf1c..6f855af 100644 --- a/dungeonbattle/entities/monsters.py +++ b/dungeonbattle/entities/monsters.py @@ -1,5 +1,9 @@ from ..interfaces import FightingEntity -class Squirrel(FightingEntity): +class Monster(FightingEntity): + def behaviour(self, map): + pass + +class Squirrel(Monster): maxhealth = 10 strength = 3