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

import com.badlogic.gdx.math.Vector3;

import ch.asynk.tankontank.engine.gfx.Node;
import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence;

public interface Pawn extends Node
{
    public Vector3 getLastPosition();

    public void moveBy(float x, float y);

    public void pushMove(float x, float y, int z, Pawn.Orientation o);

    public AnimationSequence getResetMovesAnimation();

    public void moveDone();

    public enum Orientation
    {
        KEEP(0),
        WEST(180),
        NORTH_WEST(120),
        NORTH_EAST (60),
        EAST(0),
        SOUTH_EAST(-60),
        SOUTH_WEST(-120);

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