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-07 11:20:45 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-07 11:20:45 -0500
commitc861cdfb060566b9c4452c2002b6214e0a9359a6 (patch)
tree165d9baeafb983bdbdf48841033b4e6c823f9415 /src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java
parentd8cb6073cc7c5df28d7fbea8d86f3d70fe01e7a0 (diff)
downloadfourpuzzle-c861cdfb060566b9c4452c2002b6214e0a9359a6.tar.gz
fourpuzzle-c861cdfb060566b9c4452c2002b6214e0a9359a6.tar.bz2
fourpuzzle-c861cdfb060566b9c4452c2002b6214e0a9359a6.zip
Started Database
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java')
-rw-r--r--src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java index c39082d..c48b312 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java
@@ -166,9 +166,12 @@ public class SpecialEvent {
166 */ 166 */
167 public void StartTransition(OutTransition trans) throws InterruptedException 167 public void StartTransition(OutTransition trans) throws InterruptedException
168 { 168 {
169 startedTransition = true; 169 if (!startedTransition)
170 170 {
171 Display.transition(trans); 171 startedTransition = true;
172
173 Display.transition(trans);
174 }
172 } 175 }
173 176
174 /** 177 /**
@@ -181,10 +184,21 @@ public class SpecialEvent {
181 * @param map The name of the map to move to 184 * @param map The name of the map to move to
182 * @param x The X position on the map to move to 185 * @param x The X position on the map to move to
183 * @param y The Y position on the map to move to 186 * @param y The Y position on the map to move to
187 * @throws InterruptedException
184 */ 188 */
185 public void Teleport(String map, int x, int y) 189 public void Teleport(String map, int x, int y) throws InterruptedException
186 { 190 {
187 throw new UnsupportedOperationException("Not yet implemented"); 191 if (!startedTransition)
192 {
193 Display.transition(Database.getTransition("MapExit"));
194 }
195
196 Game.setGameState(new MapViewGameState(map, x, y));
197
198 if (!startedTransition)
199 {
200 Display.transition(Database.getTransition("MapEnter"));
201 }
188 } 202 }
189 203
190 /** 204 /**
@@ -202,6 +216,8 @@ public class SpecialEvent {
202 if (startedTransition) 216 if (startedTransition)
203 { 217 {
204 Display.transition(trans); 218 Display.transition(trans);
219
220 startedTransition = false;
205 } 221 }
206 } 222 }
207 223