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

public class Attack
{
    Pawn assaulter;
    Pawn target;
    int distance;
    boolean isClear;
    boolean isFlank;

    public String toString()
    {
        return "engage : " + assaulter + " " + target + " distance:" + distance + " clear:" + isClear + " flank:" + isFlank;
    }

    public void reset()
    {
        assaulter = null;
        target = null;
        distance = 0;;
        isClear = false;
        isFlank = false;
    }
}