PEP8 formatter changes

This commit is contained in:
Eryn Wells 2023-02-10 21:25:00 -08:00
parent 727a0737c6
commit f05dfdef55
5 changed files with 20 additions and 1 deletions

View file

@ -14,6 +14,7 @@ from .geometry import Direction, Point
if TYPE_CHECKING:
from .engine import Engine
class EventHandler(tcod.event.EventDispatch[Action]):
'''Abstract event handler class'''
@ -49,6 +50,7 @@ class EventHandler(tcod.event.EventDispatch[Action]):
def ev_quit(self, event: tcod.event.Quit) -> Optional[Action]:
return ExitAction()
class MainGameEventHandler(EventHandler):
'''
Handler of `tcod` events for the main game.
@ -95,6 +97,7 @@ class MainGameEventHandler(EventHandler):
mouse_point = None
self.engine.current_mouse_point = mouse_point
class GameOverEventHandler(EventHandler):
'''When the game is over (the hero dies, the player quits, etc), this event handler takes over.'''