blob: 4e0589bee7dfba617865abe657f5af3e53bf2c91 (
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
|
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 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; }
}
}
|