use of main.content.values.parameters.PARAMETER in project Eidolons by IDemiurge.
the class ContentManager method getParamNames.
public static List<String> getParamNames(String entity, boolean dynamic) {
List<String> paramList = (dynamic) ? sparamListsMap.get(entity) : sparamListsMapAV.get(entity);
if (paramList != null) {
return paramList;
}
paramList = new ArrayList<>();
for (PARAMETER param : getParamsForType(entity, dynamic)) {
paramList.add(param.getName());
}
if (!dynamic) {
sparamListsMapAV.put(entity, paramList);
} else {
sparamListsMap.put(entity, paramList);
}
return paramList;
}
use of main.content.values.parameters.PARAMETER in project Eidolons by IDemiurge.
the class ContentManager method getRegenParam.
public static PARAMETER getRegenParam(PARAMETER param) {
PARAMETER regenParam = regenCache.get(param);
if (regenParam != null) {
return regenParam;
}
regenParam = getPARAM(param.getName() + StringMaster.REGEN, true);
regenCache.put(param, regenParam);
return regenParam;
}
use of main.content.values.parameters.PARAMETER in project Eidolons by IDemiurge.
the class ContentManager method getPARAM.
public static PARAMETER getPARAM(String valueName) {
if (StringMaster.isEmpty(valueName)) {
return null;
}
if (LOWER_CASE_CACHED)
valueName = valueName.toLowerCase();
PARAMETER param = paramCache.get(valueName);
if (param == G_PARAMS.EMPTY_PARAMETER) {
return null;
}
if (param != null) {
return param;
}
param = getPARAM(valueName, true);
if (param == null) {
param = getPARAM(valueName, false);
}
if (param == null) {
LogMaster.log(LogMaster.CORE_DEBUG, "PARAM NOT FOUND: " + valueName + "!");
param = G_PARAMS.EMPTY_PARAMETER;
}
paramCache.put(valueName, param);
if (param == G_PARAMS.EMPTY_PARAMETER) {
return null;
}
return param;
}
use of main.content.values.parameters.PARAMETER in project Eidolons by IDemiurge.
the class VersionMaster method getVersionDifferenceMap.
public static Map<VALUE, String> getVersionDifferenceMap(VERSION_PERIOD period, int n, ArcaneEntity type) {
Map<VALUE, String> map = new XLinkedMap<>();
ObjType oldType = getOlderVersion(type, period, n);
for (PARAMETER p : oldType.getParamMap().keySet()) {
int diff = type.getIntParam(p) - oldType.getIntParam(p);
map.put(p, diff + "");
}
return map;
}
use of main.content.values.parameters.PARAMETER in project Eidolons by IDemiurge.
the class VersionMaster method compareVersions.
public static String compareVersions(ArcaneEntity e, VALUE v, VERSION_PERIOD period) {
ObjType type = getPreviousVersion(e, period);
type.getValue(v);
if (v instanceof PARAMETER) {
PARAMETER parameter = (PARAMETER) v;
}
return null;
}
Aggregations