diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2009-01-30 15:03:35 -0500 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2009-01-30 15:03:35 -0500 |
| commit | 000384f5921bad138b77870fb6381fea5ac4d38b (patch) | |
| tree | ecabd4bd7900c812c3f55b3d02474e4d35226971 /src/com/fourisland/fourpuzzle/gamestate/mapview/viewpoint/FixedViewpoint.java | |
| parent | 0526f49e9b06d77f979d3e3ae67ce4f8b827a362 (diff) | |
| download | fourpuzzle-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/viewpoint/FixedViewpoint.java')
| -rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/viewpoint/FixedViewpoint.java | 33 |
1 files changed, 33 insertions, 0 deletions
| diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/viewpoint/FixedViewpoint.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/viewpoint/FixedViewpoint.java new file mode 100644 index 0000000..20a6dd0 --- /dev/null +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/viewpoint/FixedViewpoint.java | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | * To change this template, choose Tools | Templates | ||
| 3 | * and open the template in the editor. | ||
| 4 | */ | ||
| 5 | |||
| 6 | package com.fourisland.fourpuzzle.gamestate.mapview.viewpoint; | ||
| 7 | |||
| 8 | /** | ||
| 9 | * | ||
| 10 | * @author hatkirby | ||
| 11 | */ | ||
| 12 | public class FixedViewpoint implements Viewpoint { | ||
| 13 | |||
| 14 | private int x; | ||
| 15 | private int y; | ||
| 16 | |||
| 17 | public FixedViewpoint(int x, int y) | ||
| 18 | { | ||
| 19 | this.x = x; | ||
| 20 | this.y = y; | ||
| 21 | } | ||
| 22 | |||
| 23 | public int getX() | ||
| 24 | { | ||
| 25 | return x; | ||
| 26 | } | ||
| 27 | |||
| 28 | public int getY() | ||
| 29 | { | ||
| 30 | return y; | ||
| 31 | } | ||
| 32 | |||
| 33 | } | ||
