Search in sources :

Example 11 with MacroParty

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

the class MapObjStage method bindEvents.

protected void bindEvents() {
    GuiEventManager.bind(CREATE_PARTY, param -> {
        MacroParty party = (MacroParty) param.get();
        if (party == null) {
            return;
        }
        PartyActor partyActor = PartyActorFactory.getParty(party);
        addActor(partyActor);
        if (party.isMine()) {
            setMainParty(party);
            setMainPartyActor(partyActor);
            MapScreen.getInstance().getGuiStage().setMainPartyMarker(PartyActorFactory.getParty(party));
        }
        parties.add(partyActor);
        wanderAi.update();
    });
    GuiEventManager.bind(CREATE_PLACE, param -> {
        Place place = (Place) param.get();
        PlaceActor placeActor = PlaceActorFactory.getPlace(place);
        addActor(placeActor);
        places.add(placeActor);
    });
    GuiEventManager.bind(REMOVE_MAP_OBJ, param -> {
        MapActor actor = (MapActor) param.get();
        actor.remove();
        wanderAi.update();
    });
}
Also used : MacroParty(eidolons.game.module.adventure.entity.MacroParty) Place(eidolons.game.module.adventure.map.Place)

Example 12 with MacroParty

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

the class MapActionPanel method updateAct.

@Override
public void updateAct(float delta) {
    clear();
    final MacroParty source = (MacroParty) getUserObject();
    final List<ActionValueContainer> sources = getActions(source);
    initContainer(sources, "UI/EMPTY_LIST_ITEM.jpg");
}
Also used : ActionValueContainer(eidolons.libgdx.gui.panels.dc.actionpanel.ActionValueContainer) MacroParty(eidolons.game.module.adventure.entity.MacroParty)

Aggregations

MacroParty (eidolons.game.module.adventure.entity.MacroParty)12 Place (eidolons.game.module.adventure.map.Place)5 Route (eidolons.game.module.adventure.map.Route)3 Area (eidolons.game.module.adventure.map.Area)2 Region (eidolons.game.module.adventure.map.Region)2 Party (eidolons.client.cc.logic.party.Party)1 MacroRef (eidolons.game.module.adventure.MacroRef)1 MacroObj (eidolons.game.module.adventure.entity.MacroObj)1 Faction (eidolons.game.module.adventure.faction.Faction)1 TurnRule (eidolons.game.module.adventure.rules.TurnRule)1 Town (eidolons.game.module.adventure.town.Town)1 ActionValueContainer (eidolons.libgdx.gui.panels.dc.actionpanel.ActionValueContainer)1 Coordinates (main.game.bf.Coordinates)1