import pygame.locals as pgl
-class NajaEvent(object):
+def finish_event(handled=True, skip_invalidate=False):
+ if not skip_invalidate:
+ InvalidateTheWorld.post()
+ return handled
+
+class NajaEvent(object):
TYPE = "UNKNOWN"
@classmethod
class SelectEvent(NajaEvent):
TYPE = "SELECT"
-
-
-class PlayerMoved(NajaEvent):
- # This is used to signal to widgets that care that the player has moved.
- TYPE = "PLAYER_MOVED"