Search in sources :

Example 1 with MapObjComp

use of eidolons.game.module.adventure.gui.map.obj.MapObjComp in project Eidolons by IDemiurge.

the class MapComp method highlight.

public void highlight(Collection<Obj> targets) {
    for (Obj o : targets) {
        MapObjComp component = getComponent(o);
        component.setHighlighted(true);
        component.refresh();
    }
}
Also used : Obj(main.entity.obj.Obj) MapObjComp(eidolons.game.module.adventure.gui.map.obj.MapObjComp)

Example 2 with MapObjComp

use of eidolons.game.module.adventure.gui.map.obj.MapObjComp in project Eidolons by IDemiurge.

the class MapComp method highlightsOff.

public void highlightsOff() {
    for (Obj o : placeComps.keySet()) {
        MapObjComp component = placeComps.get(o);
        component.setHighlighted(false);
    }
    for (Obj o : routeComps.keySet()) {
        MapObjComp component = routeComps.get(o);
        component.setHighlighted(false);
    }
}
Also used : Obj(main.entity.obj.Obj) MapObjComp(eidolons.game.module.adventure.gui.map.obj.MapObjComp)

Aggregations

MapObjComp (eidolons.game.module.adventure.gui.map.obj.MapObjComp)2 Obj (main.entity.obj.Obj)2