27 private float minRange, range, duration, delay = 1f, width, alphaMult = 1f, inFraction = 0.1f;
38 public CampaignPingSpec(String
id, Color color, JSONObject json)
throws JSONException {
43 sounds =
new ArrayList<String>();
44 JSONArray arr = json.optJSONArray(
"sounds");
46 for (
int i = 0; i < arr.length(); i++) {
47 sounds.add(arr.getString(i));
51 inFraction = (float) json.optDouble(
"inFraction", 0.1f);
52 minRange = (float) json.optDouble(
"minRange", 0f);
53 range = (float) json.getDouble(
"range");
54 width = (float) json.getDouble(
"width");
55 duration = (float) json.getDouble(
"duration");
56 delay = (float) json.optDouble(
"delay", 1f);
57 alphaMult = (float) json.optDouble(
"alphaMult", 1f);
58 num = json.optInt(
"num", 1);
60 invert = json.optBoolean(
"invert",
false);
61 useFactionColor = json.optBoolean(
"useFactionColor",
false);