summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/event/Event.java
blob: 936394b438c23846d1ad0010f81973ee97a3b74d (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
55
56
57
/*
 * 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();
    
    public void setFrequency(MoveFrequency freq);
    public MoveFrequency getFrequency();
}