Maybe mouse clicks may use the game

This commit is contained in:
Yohann D'ANELLO
2020-12-11 17:43:46 +01:00
parent d50f6701f4
commit 089a247b2f
3 changed files with 10 additions and 6 deletions

View File

@ -5,6 +5,7 @@ import curses
from typing import Any, Optional, Union
from squirrelbattle.display.texturepack import TexturePack
from squirrelbattle.game import Game
from squirrelbattle.tests.screen import FakePad
@ -86,7 +87,7 @@ class Display:
def display(self) -> None:
raise NotImplementedError
def handle_click(self, y: int, x: int) -> None:
def handle_click(self, y: int, x: int, game: Game) -> None:
"""
A mouse click was performed on the coordinates (y, x) of the pad.
Maybe it can do something.