@@ -0,0 +1,1802 @@
+package scorched.android;%0Aimport android.graphics.Color;%0Aimport scorched.android.Background;%0A%0A/**%0A * Represents a game foreground.%0A *%0A *%0A */%0Apublic enum Foreground %7B%0A    olive(Color.argb(0xff, 0x4a, 0x63, 0x42), new Background%5B%5D %7B%7D),%0A    brown(Color.argb(0xff, 0x55, 0x43, 0x24), new Background%5B%5D%0A        %7B Background.cloud_fortress_s %7D),%0A    light_grey(Color.argb(0xff,0x6d,0x6d,0x6d), new Background%5B%5D%0A        %7B Background.berkeley_hills_s%7D),%0A    dark_cyan(Color.argb(0xff,0x34,0x58,0x54), new Background%5B%5D %7B%7D),%0A    light_green(Color.argb(0xff,0x57,0xae,0x61), new Background%5B%5D %7B%7D),%0A    bright_green(Color.argb(0xff, 0x5f, 0xcf, 0x4d), new Background%5B%5D%0A        %7B Background.snowy_mountains_s,%0A          Background.bridge_at_sunset_s %7D);%0A%0A    /*================= Static =================*/%0A    public static Foreground getRandomForeground(Background curBg) %7B%0A        Foreground fg%5B%5D = Foreground.values();%0A        int i;%0A%0A        while (true) %7B%0A            i = Util.mRandom.nextInt(fg.length);%0A            if (fg%5Bi%5D.isCompatible(curBg))%0A                break;%0A        %7D%0A        return fg%5Bi%5D;%0A    %7D%0A%0A    /*================= Data =================*/%0A    private final int mColor;%0A    private final Background mForbiddenBg%5B%5D;%0A%0A    /*================= Access =================*/%0A    public int getColor() %7B%0A        return mColor;%0A    %7D%0A%0A    /** Returns true only if this Foreground is compatible with the%0A     *  given background. */%0A    private boolean isCompatible(Background bg) %7B%0A        for (Background b : mForbiddenBg) %7B%0A            if (b == bg)%0A                return false;%0A        %7D%0A        return true;%0A    %7D%0A%0A    /*================= Lifecycle =================*/%0A    private Foreground(int color, Background%5B%5D forbiddenBg) %7B%0A        mColor = color;%0A        mForbiddenBg = forbiddenBg;%0A    %7D%0A%7D%0A

Add Foreground.java file