Error resolving one of the NewConstants
Eclipse is complaining about not being able to resolve NEW_DECKS in the NewDeckIO constructor. I copied that line from the deck editor, and it had the same two imports I have. Can anyone help me figure out why?
- Code: Select all
package forge;
import java.util.ArrayList;
import forge.properties.ForgeProps;
import forge.properties.NewConstants;
public class DraftFormat {
private CardList CardPool;
private ArrayList<String> Sets;
private BoosterGenerator booster;
private String Type;
private String Name;
public DraftFormat() {
booster = new BoosterGenerator();
}
public DraftFormat(String FormatFile) {
ArrayList<String> format = FileUtil.readFile("/res/formatdata/" + FormatFile);
for (int i=0; i<=format.size(); i++) {
String line = format.get(i);
if (line.startsWith("Type:"))
Type = line.substring(5);
else if (line.startsWith("Name:"))
Name = line.substring(5);
else if (line.startsWith("Set:"))
Sets.add(line.substring(4));
else if (line.startsWith("DeckList:")) {
NewDeckIO dio = new NewDeckIO(ForgeProps.getFile(NEW_DECKS));
}
}
}
}