Added classifier param to the constructor

This commit is contained in:
Marcin Kostrzewski 2020-05-16 09:50:10 +02:00
parent 8c3bdc3726
commit 215dd876f7

View File

@ -2,7 +2,7 @@ from src.entities.Interactable import Interactable
class Pickupable(Interactable): class Pickupable(Interactable):
def __init__(self, texture, size, pos, Statistics): def __init__(self, texture, size, pos, Statistics, classifier=None):
""" """
Create a pickupable object. Pickupable object disappear when interacted with. Create a pickupable object. Pickupable object disappear when interacted with.
@ -11,7 +11,7 @@ class Pickupable(Interactable):
:param pos: Position tuple of (x,y) :param pos: Position tuple of (x,y)
:param Statistics: Outcome of the interaction :param Statistics: Outcome of the interaction
""" """
super().__init__(texture, size, pos, Statistics) super().__init__(texture, size, pos, Statistics, classifier)
self.is_pickupable = True self.is_pickupable = True
def on_interaction(self, Player): def on_interaction(self, Player):