diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java')
-rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java new file mode 100644 index 0000000..1aa74c1 --- /dev/null +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java | |||
@@ -0,0 +1,35 @@ | |||
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.event; | ||
7 | |||
8 | import com.fourisland.fourpuzzle.Direction; | ||
9 | import com.fourisland.fourpuzzle.Layer; | ||
10 | import java.awt.Graphics; | ||
11 | import java.awt.Point; | ||
12 | |||
13 | /** | ||
14 | * | ||
15 | * @author hatkirby | ||
16 | */ | ||
17 | public interface Event { | ||
18 | |||
19 | public String getLabel(); | ||
20 | |||
21 | public Point getLocation(); | ||
22 | |||
23 | public void setLocation(Point location); | ||
24 | public void setLocation(int x, int y); | ||
25 | |||
26 | public void render(Graphics g) throws Exception; | ||
27 | |||
28 | public Direction getDirection() throws Exception; | ||
29 | public void setDirection(Direction direction) throws Exception; | ||
30 | |||
31 | public boolean isMoving(); | ||
32 | public void startMoving(Direction direction) throws Exception; | ||
33 | |||
34 | public Layer getLayer() throws Exception; | ||
35 | } | ||