summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java')
-rw-r--r--src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java35
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
6package com.fourisland.fourpuzzle.gamestate.mapview.event;
7
8import com.fourisland.fourpuzzle.Direction;
9import com.fourisland.fourpuzzle.Layer;
10import java.awt.Graphics;
11import java.awt.Point;
12
13/**
14 *
15 * @author hatkirby
16 */
17public 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}