projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better card action handling.
[naja.git]
/
naja
/
events.py
diff --git
a/naja/events.py
b/naja/events.py
index 158672611d3b57e9735a716dc1b6f8f11fb5a8e3..1d7609f5937cc61d81b89de4a0c805e7398f72b0 100644
(file)
--- a/
naja/events.py
+++ b/
naja/events.py
@@
-6,9
+6,7
@@
import pygame.event as pge
import pygame.locals as pgl
import pygame.locals as pgl
-def finish_event(handled=True, events=(), skip_invalidate=False):
- for event in events:
- event.post()
+def finish_event(handled=True, skip_invalidate=False):
if not skip_invalidate:
InvalidateTheWorld.post()
return handled
if not skip_invalidate:
InvalidateTheWorld.post()
return handled
@@
-48,8
+46,3
@@
class InvalidateTheWorld(NajaEvent):
class SelectEvent(NajaEvent):
TYPE = "SELECT"
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"