Added classifier param to the constructor
This commit is contained in:
parent
8c3bdc3726
commit
215dd876f7
@ -2,7 +2,7 @@ from src.entities.Interactable import 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.
|
||||
|
||||
@ -11,7 +11,7 @@ class Pickupable(Interactable):
|
||||
:param pos: Position tuple of (x,y)
|
||||
:param Statistics: Outcome of the interaction
|
||||
"""
|
||||
super().__init__(texture, size, pos, Statistics)
|
||||
super().__init__(texture, size, pos, Statistics, classifier)
|
||||
self.is_pickupable = True
|
||||
|
||||
def on_interaction(self, Player):
|
||||
|
Loading…
Reference in New Issue
Block a user