projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove commented out change_action.ogg playing (from rebase).
[naja.git]
/
naja
/
events.py
diff --git
a/naja/events.py
b/naja/events.py
index 11adab0f7528cbd68e88adf32275d4ab39ff8be9..1d7609f5937cc61d81b89de4a0c805e7398f72b0 100644
(file)
--- a/
naja/events.py
+++ b/
naja/events.py
@@
-6,8
+6,13
@@
import pygame.event as pge
import pygame.locals as pgl
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
TYPE = "UNKNOWN"
@classmethod
@@
-41,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"