@Override public void evaluateByData(int delta, ActionData data, StateFlowData stateTransition) { co.activatePower(model.getPlayer(data.p1), data.p2); }
@Override public void prepareActionMenu(UserInteractionData data) { co.addActivatableLevelsToList(data.actor, lv -> data.addInfo(lv + "", true)); }
@Override public void checkData(ActionData data) { AssertUtil.assertThat(model.isValidPlayerId(data.p1), ""); AssertUtil.assertThat(co.isValidPowerlevel(data.p2), ""); }
@Override public boolean condition(UserInteractionData data) { return co.canActivatePower(data.actor, CommanderLogic.POWER_LEVEL_COP); }