Skip to content
Snippets Groups Projects
Commit b882e83d authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Docstrings, removed prints

parent 4fcb40b3
No related branches found
No related tags found
1 merge request!3Resolve "Interaction with objects"
Pipeline #41363 passed
...@@ -69,29 +69,19 @@ class CuttingBoard(Counter): ...@@ -69,29 +69,19 @@ class CuttingBoard(Counter):
self.occupied_by.progress() self.occupied_by.progress()
def start_progress(self): def start_progress(self):
"""Starts the cutting process."""
self.progressing = True self.progressing = True
def pause_progress(self): def pause_progress(self):
"""Pauses the cutting process"""
self.progressing = False self.progressing = False
def drop_off(self, item):
if self.occupied_by is None:
self.occupied_by = item
def can_drop_off(self, item):
return self.occupied_by is None
def pick_up(self):
return_to_player = self.occupied_by
self.occupied_by = None
return return_to_player
def interact_start(self): def interact_start(self):
print("START") """Handles player interaction, starting to hold key down."""
self.start_progress() self.start_progress()
def interact_stop(self): def interact_stop(self):
print("STOP") """Handles player interaction, stopping to hold key down."""
self.pause_progress() self.pause_progress()
def __repr__(self): def __repr__(self):
......
...@@ -15,7 +15,6 @@ class ProgressibleItem(HoldableItem): ...@@ -15,7 +15,6 @@ class ProgressibleItem(HoldableItem):
def progress(self): def progress(self):
"""Progresses the item process as long as it is not finished.""" """Progresses the item process as long as it is not finished."""
print("PROGRESSING ITEM")
if self.progressed_steps >= self.steps_needed: if self.progressed_steps >= self.steps_needed:
self.finished = True self.finished = True
self.progressed_steps = 0 self.progressed_steps = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment