diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-02-14 08:55:12 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-02-14 08:55:12 -0500 |
commit | 165d7e5591b44dce6bf1e090d51e85c4ad5ad2f3 (patch) | |
tree | 5321ec45aa5a447afb94a6df7a8dd41eb08d96e6 /src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | |
parent | 6b69a3558d5a7a5ea364a3054ca3494639a62961 (diff) | |
download | fourpuzzle-165d7e5591b44dce6bf1e090d51e85c4ad5ad2f3.tar.gz fourpuzzle-165d7e5591b44dce6bf1e090d51e85c4ad5ad2f3.tar.bz2 fourpuzzle-165d7e5591b44dce6bf1e090d51e85c4ad5ad2f3.zip |
Engine: Added basic FaceSet support
Refs #5
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java index 40e1536..94d2b16 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | |||
@@ -31,6 +31,9 @@ public class SpecialEvent { | |||
31 | { | 31 | { |
32 | SpecialEvent.mapView = mapView; | 32 | SpecialEvent.mapView = mapView; |
33 | } | 33 | } |
34 | |||
35 | private String faceSet = ""; | ||
36 | private int face = 0; | ||
34 | 37 | ||
35 | /** | 38 | /** |
36 | * Display a message on the screen. | 39 | * Display a message on the screen. |
@@ -51,7 +54,12 @@ public class SpecialEvent { | |||
51 | */ | 54 | */ |
52 | public void DisplayMessage(String message) throws InterruptedException | 55 | public void DisplayMessage(String message) throws InterruptedException |
53 | { | 56 | { |
54 | MessageWindow.displayMessage(message); | 57 | if (faceSet.equals("")) |
58 | { | ||
59 | MessageWindow.displayMessage(message); | ||
60 | } else { | ||
61 | MessageWindow.displayMessage(message, faceSet, face); | ||
62 | } | ||
55 | } | 63 | } |
56 | 64 | ||
57 | /** | 65 | /** |
@@ -66,7 +74,8 @@ public class SpecialEvent { | |||
66 | */ | 74 | */ |
67 | public void SetFace(String faceSet, int face) | 75 | public void SetFace(String faceSet, int face) |
68 | { | 76 | { |
69 | throw new UnsupportedOperationException("Not yet implemented"); | 77 | this.faceSet = faceSet; |
78 | this.face = face; | ||
70 | } | 79 | } |
71 | 80 | ||
72 | /** | 81 | /** |
@@ -76,7 +85,8 @@ public class SpecialEvent { | |||
76 | */ | 85 | */ |
77 | public void EraseFace() | 86 | public void EraseFace() |
78 | { | 87 | { |
79 | throw new UnsupportedOperationException("Not yet implemented"); | 88 | faceSet = ""; |
89 | face = 0; | ||
80 | } | 90 | } |
81 | 91 | ||
82 | /** | 92 | /** |