Create FModel for loading preferences and other information

This commit is contained in:
drdev
2014-03-05 22:55:06 +00:00
parent d13e4dbdc5
commit 44da03a8f9
12 changed files with 793 additions and 84 deletions

View File

@@ -149,17 +149,14 @@ public class FModel {
this.decks = new CardCollections();
this.quest = new QuestController();
// Preload AI profiles
AiProfileUtil.loadAllProfiles();
AiProfileUtil.loadAllProfiles(NewConstants.AI_PROFILE_DIR);
}
public final QuestController getQuest() {
return quest;
}
private static boolean KeywordsLoaded = false;

View File

@@ -45,6 +45,7 @@ public final class NewConstants {
public static final String BAZAAR_FILE = _QUEST_DIR + "bazaar/index.xml";
public static final String CARD_DATA_DIR = _RES_ROOT + "cardsfolder/";
public static final String DECK_CUBE_DIR = _RES_ROOT + "cube";
public static final String AI_PROFILE_DIR = _RES_ROOT + "ai";
public static final String QUEST_WORLD_DIR = _QUEST_DIR + "worlds/";
public static final String QUEST_PRECON_DIR = _QUEST_DIR + "precons/";