예제 #1
0
 public static void makeGameLowLuck(final GameData data) {
   for (final IEditableProperty property : data.getProperties().getEditableProperties()) {
     if (property.getName().equals(Constants.LOW_LUCK)) {
       ((BooleanProperty) property).setValue(true);
       return;
     }
   }
   throw new IllegalStateException();
 }
예제 #2
0
 public static void setSelectAACasualties(final GameData data, final boolean val) {
   for (final IEditableProperty property : data.getProperties().getEditableProperties()) {
     if (property.getName().equals(Constants.CHOOSE_AA)) {
       ((BooleanProperty) property).setValue(val);
       return;
     }
   }
   throw new IllegalStateException();
 }