forked from MagicBane/Server
More enum work.
This commit is contained in:
@@ -3042,5 +3042,17 @@ public class mbEnums {
|
||||
SPHERE,
|
||||
CONE;
|
||||
}
|
||||
|
||||
public enum ExcludeType {
|
||||
NONE,
|
||||
CASTER,
|
||||
GROUP,
|
||||
GUILD,
|
||||
NATION,
|
||||
PLAYERS,
|
||||
ALLBUTGROUP,
|
||||
ALLBUTPETS;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user