Verified Commit dcd49848 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add method of director to be called on screen touch

parent 16fdd7d4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -61,6 +61,12 @@ class Director:
        self._ensure_minimum_presentation_time()
        self.nothing_requested()

    def screen_touched(self) -> None:
        # TODO Extend this to take x: int, y: int parameters
        # TODO Maybe also add a screen_touch_released method etc.
        if self._next_scene_on_card_placed is not self.play.Balance:
            self.balance_requested()    

    def _ensure_minimum_presentation_time(self) -> None:
        """
        Ensure that the presentation of a "card placed" scene lasts for at least a certain time.