summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/Army.java
blob: aaa4073e82ef3c9471ad0e21ef41af7b91129e0a (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
package ch.asynk.rustanddust.game;

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

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

    private String s;
    private String f;

    Army(String s, String f) {
        this.s = s;
        this.f = f;
    }

    public String flag()
    {
        return f;
    }

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

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