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

import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.utils.Disposable;

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

public interface Pawn extends Drawable, Disposable
{
    public Vector3 getLastPosition();

    public void moveDone();

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

    public AnimationSequence getResetMovesAnimation();

    public enum Orientation
    {
        KEEP(0),
        NORTH_WEST(30),
        WEST(90),
        SOUTH_WEST(150),
        NORTH_EAST (-30),
        EAST(-90),
        SOUTH_EAST(-150);

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