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