diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-02-23 09:20:19 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-02-23 09:20:19 -0500 |
commit | 284c53489b89a6e39027aeab27c258c8926f77f0 (patch) | |
tree | 51d0cd69236b0a43ce2b36149f62f18281dd86c6 /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | |
parent | 8b8e44782659c65b9899f81a1ad5e09477c37354 (diff) | |
download | fourpuzzle-284c53489b89a6e39027aeab27c258c8926f77f0.tar.gz fourpuzzle-284c53489b89a6e39027aeab27c258c8926f77f0.tar.bz2 fourpuzzle-284c53489b89a6e39027aeab27c258c8926f77f0.zip |
Engine: Added Event Thread cancellation
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | 11 |
1 files changed, 11 insertions, 0 deletions
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 { | |||
141 | } | 141 | } |
142 | } | 142 | } |
143 | } | 143 | } |
144 | } | ||
145 | } | ||
146 | |||
147 | if (EventHandler.isRunningEvent()) | ||
148 | { | ||
149 | if ((key.getKey() == KeyEvent.VK_F11) && (PuzzleApplication.INSTANCE.getContext().getResourceMap().getBoolean("debugMode"))) | ||
150 | { | ||
151 | for (LayerEvent ev : currentMap.getEvents()) | ||
152 | { | ||
153 | ev.getCallback().cancel(); | ||
154 | } | ||
144 | } | 155 | } |
145 | } | 156 | } |
146 | } | 157 | } |