Search in sources :

Example 21 with XLinkedMap

use of main.data.XLinkedMap in project Eidolons by IDemiurge.

the class DC_RequirementsManager method generateClassRankRequirements.

public Requirements generateClassRankRequirements(Entity type) {
    Requirements reqs = getRequirements(type, 0);
    Map<String, Condition> reqMap = new XLinkedMap<>();
    Requirements rankedReqs = new Requirements(reqMap);
    for (String string : reqs.getReqMap().keySet()) {
        Condition req = reqs.getReqMap().get(string);
        String tip = new MapMaster<String, Condition>().getKeyForValue(reqs.getReqMap(), req);
        modifyRankReq(type, reqs, tip, reqMap, req, type.getIntParam(PARAMS.RANK));
    }
    rankedReqs = new Requirements(reqMap);
    return rankedReqs;
}
Also used : ClassTreeCondition(eidolons.ability.conditions.req.ClassTreeCondition) SkillPointCondition(eidolons.ability.conditions.req.SkillPointCondition) ValueGroupCondition(eidolons.ability.conditions.req.ValueGroupCondition) MultiClassCondition(eidolons.ability.conditions.req.MultiClassCondition) XLinkedMap(main.data.XLinkedMap)

Aggregations

XLinkedMap (main.data.XLinkedMap)21 ObjType (main.entity.type.ObjType)11 PARAMETER (main.content.values.parameters.PARAMETER)4 Node (org.w3c.dom.Node)4 List (java.util.List)3 PROPERTY (main.content.values.properties.PROPERTY)3 Ref (main.entity.Ref)3 G_Panel (main.swing.generic.components.G_Panel)3 HC_PagedListPanel (eidolons.client.cc.gui.pages.HC_PagedListPanel)2 Wave (eidolons.game.battlecraft.logic.battle.arena.Wave)2 File (java.io.File)2 OBJ_TYPE (main.content.OBJ_TYPE)2 Coordinates (main.game.bf.Coordinates)2 MusicList (main.music.entity.MusicList)2 MusicListPanel (main.music.gui.MusicListPanel)2 Document (org.w3c.dom.Document)2 ClassTreeCondition (eidolons.ability.conditions.req.ClassTreeCondition)1 MultiClassCondition (eidolons.ability.conditions.req.MultiClassCondition)1 SkillPointCondition (eidolons.ability.conditions.req.SkillPointCondition)1 ValueGroupCondition (eidolons.ability.conditions.req.ValueGroupCondition)1