diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/transition/TransitionCallbackThread.java')
-rw-r--r-- | src/com/fourisland/fourpuzzle/transition/TransitionCallbackThread.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/com/fourisland/fourpuzzle/transition/TransitionCallbackThread.java b/src/com/fourisland/fourpuzzle/transition/TransitionCallbackThread.java deleted file mode 100644 index 50eacc2..0000000 --- a/src/com/fourisland/fourpuzzle/transition/TransitionCallbackThread.java +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | /* | ||
2 | * To change this template, choose Tools | Templates | ||
3 | * and open the template in the editor. | ||
4 | */ | ||
5 | |||
6 | package com.fourisland.fourpuzzle.transition; | ||
7 | |||
8 | import com.fourisland.fourpuzzle.Display; | ||
9 | |||
10 | /** | ||
11 | * | ||
12 | * @author hatkirby | ||
13 | */ | ||
14 | public class TransitionCallbackThread implements Runnable { | ||
15 | |||
16 | private Runnable callback; | ||
17 | public TransitionCallbackThread(Runnable callback) | ||
18 | { | ||
19 | this.callback = callback; | ||
20 | } | ||
21 | |||
22 | public void run() | ||
23 | { | ||
24 | while (Display.getTransition().isRunning()) | ||
25 | { | ||
26 | try { | ||
27 | Thread.sleep(300); | ||
28 | } catch (InterruptedException ex) { | ||
29 | Thread.currentThread().interrupt(); | ||
30 | } | ||
31 | } | ||
32 | |||
33 | //Display.setEnabled(false); | ||
34 | |||
35 | callback.run(); | ||
36 | } | ||
37 | |||
38 | } | ||