Move the action perform logic to Action.perform() on each Action subclass

Rename Object to Entity to avoid name clashes with Python.object
This commit is contained in:
Eryn Wells 2022-05-01 09:29:30 -07:00
parent cde6ea2065
commit 5ce26e310b
4 changed files with 49 additions and 57 deletions

View file

@ -88,4 +88,8 @@ class Map:
# fg=(255, 255, 255), bg=(80, 40, 40), clear=True)
size = self.size
console.tiles_rgb[0:size.width, 0:size.height] = self.tiles["dark"]
console.tiles_rgb[0:size.width, 0:size.height] = self.tiles["dark"]
class RectangularRoom:
def __init__(self, bounds: Rect):
self.bounds = bounds