summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-12 16:36:07 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-12 16:36:07 -0500
commitbbf294dbf6b552751e5d9f3fb66188bd1bee724b (patch)
tree1e29d91a6e8a3b9d26ec874169de85928d4ec56f /src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java
parent3cd96daaf22236e4eb15c6422f772abf08351023 (diff)
downloadfourpuzzle-bbf294dbf6b552751e5d9f3fb66188bd1bee724b.tar.gz
fourpuzzle-bbf294dbf6b552751e5d9f3fb66188bd1bee724b.tar.bz2
fourpuzzle-bbf294dbf6b552751e5d9f3fb66188bd1bee724b.zip
Engine: Wrote Message System
MessageWindow now has a static method run by SpecialEvent that triggers the message box. This method blocks until the message is complete and renders via Display's new feature. The message box also now features the "next" arrow and the letters gradually appear.

Display has also been re-worked to have a list of a new interface called Renderable, which is any object that can be rendered. Such objects (such as MessageWindow) can register to Display, which will render them onto the game frame after the GameState has been rendered.

Closes #5.
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java')
-rwxr-xr-xsrc/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java index 7ca08ff..2b54dc9 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java
@@ -17,6 +17,7 @@ import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.MovingViewpoint;
17import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.Viewpoint; 17import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.Viewpoint;
18import com.fourisland.fourpuzzle.transition.InTransition; 18import com.fourisland.fourpuzzle.transition.InTransition;
19import com.fourisland.fourpuzzle.transition.OutTransition; 19import com.fourisland.fourpuzzle.transition.OutTransition;
20import com.fourisland.fourpuzzle.window.MessageWindow;
20import java.util.concurrent.CountDownLatch; 21import java.util.concurrent.CountDownLatch;
21 22
22/** 23/**
@@ -50,10 +51,11 @@ public class SpecialEvent {
50 * been read. 51 * been read.
51 * 52 *
52 * @param message The message to display 53 * @param message The message to display
54 * @throws InterruptedException
53 */ 55 */
54 public void DisplayMessage(String message) 56 public void DisplayMessage(String message) throws InterruptedException
55 { 57 {
56 mapView.displayMessage(message); 58 MessageWindow.displayMessage(message);
57 } 59 }
58 60
59 /** 61 /**