summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine/Tile.java
blob: 7c43bd4de6af7f535756f57eec8d404af094a19b (plain)
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
package ch.asynk.tankontank.engine;

import java.util.List;

import ch.asynk.tankontank.engine.gfx.BasicDrawable;

public interface Tile extends BasicDrawable
{
    public int push(Pawn pawn);

    public int remove(Pawn pawn);

    public Pawn getTopPawn();

    public boolean mustBeDrawn();

    public boolean occupied();

    public boolean hasOverlayEnabled();

    public void enableOverlay(int i, boolean enable);

    public List<Tile> adjacents();

    public enum Side
    {
        WEST(1),
        NORTH_WEST(2),
        NORTH_EAST (4),
        EAST(8),
        SOUTH_EAST(16),
        SOUTH_WEST(32);

        public final int v;
        Side(int v) { this.v = v; }
    }
}