blob: 519a56ebb9569f8102b5ec43b73e606b4e787407 (
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
|
package ch.asynk.tankontank.game;
import com.badlogic.gdx.math.GridPoint2;
import com.badlogic.gdx.math.GridPoint3;
public interface Pawn
{
// Gfx related
public float getHeight();
public float getWidth();
public void moveBy(float x, float y);
public void setPosition(float x, float y);
public void setRotation(float angle);
public void setZIndex(int zIndex);
// Board related
public GridPoint3 getBoardPosition();
public void moveTo(GridPoint2 hex);
public void moveTo(int col, int row, int angle);
public void resetMoves();
public void moveDone();
}
|