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

import java.util.List;

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

    public void remove(Pawn pawn);

    public Pawn getTop();

    public int costFrom(Side side);



    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; }
    }
}