Merge branch 'master' into 'familiars'
# Conflicts: # squirrelbattle/display/display_manager.py # squirrelbattle/display/logsdisplay.py # squirrelbattle/display/mapdisplay.py # squirrelbattle/display/menudisplay.py # squirrelbattle/menus.py
This commit is contained in:
@ -172,9 +172,19 @@ class Display:
|
||||
|
||||
if last_y >= window_y and last_x >= window_x:
|
||||
# Refresh the pad only if coordinates are valid
|
||||
pad.refresh(top_y, top_x, window_y, window_x, last_y, last_x)
|
||||
pad.noutrefresh(top_y, top_x, window_y, window_x, last_y, last_x)
|
||||
|
||||
def display(self) -> None:
|
||||
"""
|
||||
Draw the content of the display and refresh pads.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def update(self, game: Game) -> None:
|
||||
"""
|
||||
The game state was updated.
|
||||
Indicate what to do with the new state.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def handle_click(self, y: int, x: int, game: Game) -> None:
|
||||
|
Reference in New Issue
Block a user