1package com.fs.starfarer.api.impl.campaign.shared;
3import java.util.ArrayList;
6import com.fs.starfarer.api.impl.campaign.ids.Factions;
10 private List<String> participatingFactions =
new ArrayList<String>();
12 private int level = 0;
13 private int successesThisLevel = 0;
28 if (successesThisLevel >= threshold) {
30 successesThisLevel = 0;
32 if (level > 10) level = 10;
36 if (level == 0)
return 2;
37 if (level == 1)
return 2;
38 if (level == 2)
return 2;
40 if (level == 3)
return 3;
41 if (level == 4)
return 3;
42 if (level == 5)
return 3;
43 if (level == 6)
return 3;
45 if (level == 7)
return 4;
46 if (level == 8)
return 5;
47 if (level == 9)
return 6;
62 this.successesThisLevel = successesThisLevel;
66 return participatingFactions;
70 participatingFactions.add(factionId);
74 participatingFactions.remove(factionId);
78 return participatingFactions.contains(factionId);
List< String > getParticipatingFactions()
void removeParticipatingFaction(String factionId)
int getThresholdForLevel(int level)
void setSuccessesThisLevel(int successesThisLevel)
boolean isParticipating(String factionId)
void addParticipatingFaction(String factionId)