More enum work.

This commit is contained in:
2024-08-17 16:20:21 -04:00
parent 23bf491d4b
commit 08ac0b8d8d
3 changed files with 14 additions and 2 deletions
+12
View File
@@ -3042,5 +3042,17 @@ public class mbEnums {
SPHERE,
CONE;
}
public enum ExcludeType {
NONE,
CASTER,
GROUP,
GUILD,
NATION,
PLAYERS,
ALLBUTGROUP,
ALLBUTPETS;
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ public class PowerEntry {
public int range;
public mbEnums.AreaType areaType;
public int areaRange;
public String excludeType;
public mbEnums.ExcludeType excludeType;
public mbEnums.CostType costType;
public float cost;
public float difficulty;
+1 -1
View File
@@ -90,7 +90,7 @@ public class PowersParser {
powerEntry.range = Integer.parseInt(iterator.next());
powerEntry.areaType = mbEnums.AreaType.valueOf(iterator.next());
powerEntry.areaRange = Integer.parseInt(iterator.next());
powerEntry.excludeType = iterator.next();
powerEntry.excludeType = mbEnums.ExcludeType.valueOf(iterator.next());
powerEntry.costType = mbEnums.CostType.valueOf(iterator.next());
powerEntry.cost = Float.parseFloat(iterator.next());
powerEntry.difficulty = Float.parseFloat(iterator.next());