Search in sources :

Example 1 with OUTLINE_HINT

use of main.content.enums.rules.VisionEnums.OUTLINE_HINT in project Eidolons by IDemiurge.

the class HintMaster method getHintsString.

public String getHintsString(BattleFieldObject unit) {
    OUTLINE_IMAGE img = master.getOutlineMaster().getImageDark(unit);
    Map<OUTLINE_IMAGE, String> map = cache.get(unit);
    if (map == null) {
        map = new HashMap<>();
        cache.put(unit, map);
    }
    String hintString = map.get(img);
    if (hintString != null)
        return hintString;
    hintString = "";
    List<OUTLINE_HINT> hints = getHints(unit, img);
    for (OUTLINE_HINT hint : hints) {
        hintString += StringMaster.getWellFormattedString(hint.toString()) + " ";
    }
    map.put(img, hintString);
    return hintString;
}
Also used : OUTLINE_HINT(main.content.enums.rules.VisionEnums.OUTLINE_HINT) OUTLINE_IMAGE(main.content.enums.rules.VisionEnums.OUTLINE_IMAGE)

Aggregations

OUTLINE_HINT (main.content.enums.rules.VisionEnums.OUTLINE_HINT)1 OUTLINE_IMAGE (main.content.enums.rules.VisionEnums.OUTLINE_IMAGE)1