diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/Display.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/Display.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/fourisland/fourpuzzle/Display.java b/src/com/fourisland/fourpuzzle/Display.java index c8d17d9..b7569aa 100755 --- a/src/com/fourisland/fourpuzzle/Display.java +++ b/src/com/fourisland/fourpuzzle/Display.java | |||
@@ -42,8 +42,7 @@ import org.jdesktop.application.ResourceMap; | |||
42 | */ | 42 | */ |
43 | public class Display { | 43 | public class Display { |
44 | 44 | ||
45 | public static int tileAnimationFrame = 0; | 45 | private static int tileAnimationFrame = 0; |
46 | |||
47 | private static List<Renderable> renderables = new CopyOnWriteArrayList<Renderable>(); | 46 | private static List<Renderable> renderables = new CopyOnWriteArrayList<Renderable>(); |
48 | 47 | ||
49 | public static void render(Component gameFrame) | 48 | public static void render(Component gameFrame) |
@@ -229,10 +228,10 @@ public class Display { | |||
229 | return; | 228 | return; |
230 | } catch (RuntimeException ex) | 229 | } catch (RuntimeException ex) |
231 | { | 230 | { |
232 | PuzzleApplication.INSTANCE.reportError(ex); | 231 | PuzzleApplication.reportError(ex); |
233 | } catch (Error ex) | 232 | } catch (Error ex) |
234 | { | 233 | { |
235 | PuzzleApplication.INSTANCE.reportError(ex); | 234 | PuzzleApplication.reportError(ex); |
236 | } | 235 | } |
237 | } | 236 | } |
238 | }; | 237 | }; |
@@ -331,4 +330,9 @@ public class Display { | |||
331 | return cachePoint; | 330 | return cachePoint; |
332 | } | 331 | } |
333 | 332 | ||
333 | public int getTileAnimationFrame() | ||
334 | { | ||
335 | return tileAnimationFrame; | ||
336 | } | ||
337 | |||
334 | } | 338 | } |