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;
}
Aggregations