Added version information to the Quest Data. This info can be used in the future to detect and update older versions of the quest state.

This commit is contained in:
jendave
2011-08-06 17:33:10 +00:00
parent 714031b7eb
commit 6bee788e68

View File

@@ -65,8 +65,6 @@ public class QuestData {
//used by shouldAddAdditionalCards() //used by shouldAddAdditionalCards()
private Random random = new Random(); private Random random = new Random();
//feel free to change this to something funnier
private transient String[] rankArray; private transient String[] rankArray;
public static final String FANTASY = "Fantasy"; public static final String FANTASY = "Fantasy";
@@ -77,6 +75,9 @@ public class QuestData {
public final QuestPetManager petManager = new QuestPetManager(); public final QuestPetManager petManager = new QuestPetManager();
//This field stores the version number of the QuestData format
private static int VERSION_NUMBER = 0;
public QuestData() { public QuestData() {
preferences = new QuestPreferences(); preferences = new QuestPreferences();