summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Army.java
blob: 4bfe10e0087aad5af860c72f0a3efaab0efd00d9 (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
34
35
36
37
38
39
40
41
42
package ch.asynk.rustanddust.game;

import ch.asynk.rustanddust.engine.Faction;
import ch.asynk.rustanddust.game.Hex;
import ch.asynk.rustanddust.game.Factory;

public enum Army implements Faction
{
    NONE("None", null, -1),
    GE("German", Factory.FLAG_GE, Hex.OBJECTIVE_GE),
    US("US", Factory.FLAG_US, Hex.OBJECTIVE_US),
    USSR("Soviet", null, -1),
    EN("English", null, -1);

    public final String s;
    public final String flag;
    public final int overlay;

    Army(String s, String f, int o) {
        this.s = s;
        this.flag = f;
        this.overlay = o;
    }

    @Override
    public int overlay()
    {
        return overlay;
    }

    @Override
    public String toString()
    {
        return s;
    }

    @Override
    public boolean isEnemy(Faction other)
    {
        return (this != other);
    }
}