2024-03-14 13:53:26 +01:00
|
|
|
import prefs
|
|
|
|
class Interactable:
|
|
|
|
def __init__(self, cell, sprite):
|
|
|
|
self.cell = cell
|
|
|
|
self.sprite = sprite
|
|
|
|
def interact(self):
|
|
|
|
"""Ta metoda powinna być przysłonięta przez klasę dziedziczącą."""
|
|
|
|
raise NotImplementedError
|
|
|
|
|
2024-03-14 14:33:51 +01:00
|
|
|
def update(self, surface):
|
2024-03-14 13:53:26 +01:00
|
|
|
surface.blit(self.sprite, (self.cell.X * prefs.CELL_SIZE,
|
|
|
|
self.cell.Y * prefs.CELL_SIZE))
|