com.github.czyzby.autumn.mvc.component.ui.action.ScreenTransitionAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-autumn-mvc Show documentation
Show all versions of gdx-autumn-mvc Show documentation
MVC framework based on LibGDX using Autumn for components management and LML as view templates.
package com.github.czyzby.autumn.mvc.component.ui.action;
import com.github.czyzby.autumn.mvc.component.ui.InterfaceService;
import com.github.czyzby.lml.parser.action.ActorConsumer;
/** An action that represents screen transition. Changes current view on invocation.
*
* @author MJ */
public class ScreenTransitionAction implements ActorConsumer {
private final InterfaceService interfaceService;
private final Class> viewControllerClass;
public ScreenTransitionAction(final InterfaceService interfaceService, final Class> viewControllerClass) {
this.interfaceService = interfaceService;
this.viewControllerClass = viewControllerClass;
}
@Override
public Void consume(final Object actor) {
interfaceService.show(viewControllerClass);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy