From 284c53489b89a6e39027aeab27c258c8926f77f0 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 23 Feb 2009 09:20:19 -0500 Subject: Engine: Added Event Thread cancellation --- .../fourpuzzle/gamestate/mapview/MapViewGameState.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java') diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java index 68e611b..ccb1829 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java @@ -141,6 +141,17 @@ public class MapViewGameState implements GameState { } } } + } + } + + if (EventHandler.isRunningEvent()) + { + if ((key.getKey() == KeyEvent.VK_F11) && (PuzzleApplication.INSTANCE.getContext().getResourceMap().getBoolean("debugMode"))) + { + for (LayerEvent ev : currentMap.getEvents()) + { + ev.getCallback().cancel(); + } } } } -- cgit 1.4.1