More enum work.
This commit is contained in:
@@ -3042,5 +3042,17 @@ public class mbEnums {
|
|||||||
SPHERE,
|
SPHERE,
|
||||||
CONE;
|
CONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum ExcludeType {
|
||||||
|
NONE,
|
||||||
|
CASTER,
|
||||||
|
GROUP,
|
||||||
|
GUILD,
|
||||||
|
NATION,
|
||||||
|
PLAYERS,
|
||||||
|
ALLBUTGROUP,
|
||||||
|
ALLBUTPETS;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class PowerEntry {
|
|||||||
public int range;
|
public int range;
|
||||||
public mbEnums.AreaType areaType;
|
public mbEnums.AreaType areaType;
|
||||||
public int areaRange;
|
public int areaRange;
|
||||||
public String excludeType;
|
public mbEnums.ExcludeType excludeType;
|
||||||
public mbEnums.CostType costType;
|
public mbEnums.CostType costType;
|
||||||
public float cost;
|
public float cost;
|
||||||
public float difficulty;
|
public float difficulty;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class PowersParser {
|
|||||||
powerEntry.range = Integer.parseInt(iterator.next());
|
powerEntry.range = Integer.parseInt(iterator.next());
|
||||||
powerEntry.areaType = mbEnums.AreaType.valueOf(iterator.next());
|
powerEntry.areaType = mbEnums.AreaType.valueOf(iterator.next());
|
||||||
powerEntry.areaRange = Integer.parseInt(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.costType = mbEnums.CostType.valueOf(iterator.next());
|
||||||
powerEntry.cost = Float.parseFloat(iterator.next());
|
powerEntry.cost = Float.parseFloat(iterator.next());
|
||||||
powerEntry.difficulty = Float.parseFloat(iterator.next());
|
powerEntry.difficulty = Float.parseFloat(iterator.next());
|
||||||
|
|||||||
Reference in New Issue
Block a user