Search in sources :

Example 1 with MacroAction

use of eidolons.game.module.adventure.entity.MacroAction in project Eidolons by IDemiurge.

the class MapActionPanel method getActions.

private List<ActionValueContainer> getActions(MacroParty source) {
    // cache
    List<MacroAction> actions = MacroActionManager.getMacroActions(MACRO_ACTION_GROUPS.PARTY, source);
    List<ActionValueContainer> list = new ArrayList<>();
    for (MacroAction sub : actions) {
        boolean valid = true;
        TextureRegion texture = TextureCache.getOrCreateR(sub.getImagePath());
        list.add(new ActionValueContainer(valid, texture, () -> {
            sub.invokeClicked();
        }));
    }
    return list;
}
Also used : MacroAction(eidolons.game.module.adventure.entity.MacroAction) TextureRegion(com.badlogic.gdx.graphics.g2d.TextureRegion) ActionValueContainer(eidolons.libgdx.gui.panels.dc.actionpanel.ActionValueContainer) ArrayList(java.util.ArrayList)

Aggregations

TextureRegion (com.badlogic.gdx.graphics.g2d.TextureRegion)1 MacroAction (eidolons.game.module.adventure.entity.MacroAction)1 ActionValueContainer (eidolons.libgdx.gui.panels.dc.actionpanel.ActionValueContainer)1 ArrayList (java.util.ArrayList)1