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();
});
}
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");
}
Aggregations