@Nonnull List<Object> getControllersWithScreenController(@Nonnull final Screen screen) { List<Object> withScreenController = new LinkedList<Object>(controllers); withScreenController.add(screen.getScreenController()); return withScreenController; }
public void pickUp(String uiState) { // FIXME very bad ScreenController sc = screen.getScreenController(); if (sc instanceof PlayerScreenController) { ((PlayerScreenController) sc).pickUpCreature(creatureId, uiState); } }
public void zoomTo(String uiState) { // FIXME very bad ScreenController sc = screen.getScreenController(); if (sc instanceof PlayerScreenController) { ((PlayerScreenController) sc).zoomToCreature(creatureId, uiState); } }
/** * A helper method to call the special values replace method ${} syntax * * @param value the value to perform the replace on * @return the value with stuff replaced */ @Nonnull public String specialValuesReplace(@Nullable final String value) { return SpecialValuesReplace.replace( value, getResourceBundles(), currentScreen == null ? null : currentScreen.getScreenController(), globalProperties, locale); }
public void translateSpecialValues(@Nonnull final Nifty nifty, @Nullable final Screen screen) { attributes.translateSpecialValues( nifty.getResourceBundles(), screen == null ? null : screen.getScreenController(), nifty.getGlobalProperties(), nifty.getLocale()); }