blob: 0cda403ac14037154a9b4b55af2fa897be5f22f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.fourisland.fourpuzzle.gamestate.mapview.event;
import com.fourisland.fourpuzzle.Direction;
import com.fourisland.fourpuzzle.Layer;
import com.fourisland.fourpuzzle.gamestate.mapview.Map;
import java.awt.Graphics;
import java.awt.Point;
import java.util.List;
/**
*
* @author hatkirby
*/
public interface Event {
public String getLabel();
public Point getLocation();
public void setLocation(Point location);
public void setLocation(int x, int y);
public void render(Graphics g);
public int getRenderX();
public int getRenderY();
public int getMovingX();
public int getMovingY();
public Direction getDirection();
public void setDirection(Direction direction);
public boolean isMoving();
public boolean startMoving(Direction direction);
public Layer getLayer();
public boolean isOccupyingSpace(int x, int y);
public List<Direction> getLegalMoves();
public void setAnimationStep(int animStep);
public int getAnimationStep();
public void setParentMap(Map parentMap);
public Map getParentMap();
public void setMoveSpeed(MoveSpeed moveSpeed);
public MoveSpeed getMoveSpeed();
}
|