summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-01-30 15:03:35 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-01-30 15:03:35 -0500
commit000384f5921bad138b77870fb6381fea5ac4d38b (patch)
treeecabd4bd7900c812c3f55b3d02474e4d35226971 /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
parent0526f49e9b06d77f979d3e3ae67ce4f8b827a362 (diff)
downloadfourpuzzle-000384f5921bad138b77870fb6381fea5ac4d38b.tar.gz
fourpuzzle-000384f5921bad138b77870fb6381fea5ac4d38b.tar.bz2
fourpuzzle-000384f5921bad138b77870fb6381fea5ac4d38b.zip
Implemented viewpoint-related Event actions
Implemented FixViewpoint(), PanViewpoint() and ResetViewpoint()
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java')
-rw-r--r--src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java index 45eadc9..c4194d9 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
@@ -16,6 +16,7 @@ import com.fourisland.fourpuzzle.gamestate.mapview.event.EventCallTime;
16import com.fourisland.fourpuzzle.gamestate.mapview.event.EventHandler; 16import com.fourisland.fourpuzzle.gamestate.mapview.event.EventHandler;
17import com.fourisland.fourpuzzle.gamestate.mapview.event.EventList; 17import com.fourisland.fourpuzzle.gamestate.mapview.event.EventList;
18import com.fourisland.fourpuzzle.gamestate.mapview.event.LayerEvent; 18import com.fourisland.fourpuzzle.gamestate.mapview.event.LayerEvent;
19import com.fourisland.fourpuzzle.gamestate.mapview.event.SpecialEvent;
19import com.fourisland.fourpuzzle.gamestate.mapview.event.specialmove.MoveEventThread; 20import com.fourisland.fourpuzzle.gamestate.mapview.event.specialmove.MoveEventThread;
20import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.AutomaticViewpoint; 21import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.AutomaticViewpoint;
21import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.Viewpoint; 22import com.fourisland.fourpuzzle.gamestate.mapview.viewpoint.Viewpoint;
@@ -43,6 +44,7 @@ public class MapViewGameState implements GameState {
43 setCurrentMap(map); 44 setCurrentMap(map);
44 Game.getSaveFile().getHero().setLocation(x, y); 45 Game.getSaveFile().getHero().setLocation(x, y);
45 currentViewpoint = new AutomaticViewpoint(currentMap); 46 currentViewpoint = new AutomaticViewpoint(currentMap);
47 SpecialEvent.setMapView(this);
46 } 48 }
47 49
48 public void initalize() 50 public void initalize()
@@ -212,5 +214,15 @@ public class MapViewGameState implements GameState {
212 { 214 {
213 return currentMap; 215 return currentMap;
214 } 216 }
217
218 public Viewpoint getViewpoint()
219 {
220 return currentViewpoint;
221 }
222
223 public void setViewpoint(Viewpoint viewpoint)
224 {
225 currentViewpoint = viewpoint;
226 }
215 227
216} 228}