PEP8 formatter changes
This commit is contained in:
parent
727a0737c6
commit
f05dfdef55
5 changed files with 20 additions and 1 deletions
|
@ -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.'''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue