Add fog of war effect

This commit is contained in:
drdev
2015-03-12 05:20:48 +00:00
parent af6cd2c896
commit 52cb888706
3 changed files with 19 additions and 3 deletions

View File

@@ -272,6 +272,8 @@ public enum ConquestPlane {
}
public static class Region {
public static final int OPPONENTS_PER_REGION = 15;
private final String name;
private final String artCardName;
private final ColorSet colorSet;
@@ -325,7 +327,7 @@ public enum ConquestPlane {
//each region should have 15 opponents include one boss
private void generateOpponents() {
int opponentsBeforeBoss = 15; //TODO: Reduce by 1 when boss added below
int opponentsBeforeBoss = OPPONENTS_PER_REGION; //TODO: Reduce by 1 when boss added below
HashSet<PaperCard> cards = new HashSet<PaperCard>(commanders);
if (cards.size() < opponentsBeforeBoss) {
//if not enough commanders, add normal creatures as non-commander opponents

View File

@@ -18,6 +18,7 @@ public class ConquestPlaneData {
private int wins, losses;
private int winStreakBest = 0;
private int winStreakCurrent = 0;
private int progress = 0;
public ConquestPlaneData(ConquestPlane plane0) {
plane = plane0;
@@ -77,6 +78,10 @@ public class ConquestPlaneData {
return winStreakCurrent;
}
public int getProgress() {
return progress;
}
public int getUnlockedCount() {
int count = 0;
HashSet<PaperCard> collection = FModel.getConquest().getModel().getCollection();