sep-pm-platformer/project/level/elements/InteractableElement.py

12 lines
416 B
Python
Raw Normal View History

2023-03-26 17:19:30 +02:00
from level.elements.StaticLevelElement import StaticLevelElement
2023-03-26 15:14:06 +02:00
from sprite.Spritesheet import Spritesheet
2023-03-26 15:14:06 +02:00
class InteractableElement(StaticLevelElement):
2023-03-26 17:19:30 +02:00
def __init__(self, spritesheet: Spritesheet, block_id: str):
2023-03-26 15:14:06 +02:00
super().__init__(spritesheet)
self.block_id = block_id
2023-03-26 17:19:30 +02:00
self.element = []
def connect_element(self, element: StaticLevelElement):
self.element.append(element)