Search in sources :

Example 71 with PARAMETER

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;
}
Also used : PARAMETER(main.content.values.parameters.PARAMETER)

Example 72 with PARAMETER

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;
}
Also used : PARAMETER(main.content.values.parameters.PARAMETER)

Example 73 with PARAMETER

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;
}
Also used : PARAMETER(main.content.values.parameters.PARAMETER)

Example 74 with PARAMETER

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;
}
Also used : ObjType(main.entity.type.ObjType) XLinkedMap(main.data.XLinkedMap) VALUE(main.content.VALUE) PARAMETER(main.content.values.parameters.PARAMETER)

Example 75 with PARAMETER

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;
}
Also used : ObjType(main.entity.type.ObjType) PARAMETER(main.content.values.parameters.PARAMETER)

Aggregations

PARAMETER (main.content.values.parameters.PARAMETER)136 PROPERTY (main.content.values.properties.PROPERTY)22 ObjType (main.entity.type.ObjType)13 ArrayList (java.util.ArrayList)12 Formula (main.system.math.Formula)12 Ref (main.entity.Ref)9 VALUE (main.content.VALUE)7 Obj (main.entity.obj.Obj)7 PARAMS (eidolons.content.PARAMS)6 ModifyValueEffect (eidolons.ability.effects.common.ModifyValueEffect)5 Cost (main.elements.costs.Cost)5 DC_ActiveObj (eidolons.entity.active.DC_ActiveObj)4 G_Panel (main.swing.generic.components.G_Panel)4 Node (org.w3c.dom.Node)4 AddBuffEffect (eidolons.ability.effects.attachment.AddBuffEffect)3 HashMap (java.util.HashMap)3 DAMAGE_TYPE (main.content.enums.GenericEnums.DAMAGE_TYPE)3 Costs (main.elements.costs.Costs)3 Entity (main.entity.Entity)3 GraphicComponent (main.swing.generic.components.misc.GraphicComponent)3