summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-23 09:20:19 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-23 09:20:19 -0500
commit284c53489b89a6e39027aeab27c258c8926f77f0 (patch)
tree51d0cd69236b0a43ce2b36149f62f18281dd86c6 /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
parent8b8e44782659c65b9899f81a1ad5e09477c37354 (diff)
downloadfourpuzzle-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-xsrc/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java11
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 }