You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
543 B
36 lines
543 B
10 years ago
|
package mightypork.rogue.screens;
|
||
|
|
||
|
|
||
|
import mightypork.util.control.eventbus.events.Event;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class CrossfadeRequest implements Event<CrossfadeRequest.Listener> {
|
||
|
|
||
|
private String screen;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @param screen screen key to show. Null = exit the app.
|
||
|
*/
|
||
|
public CrossfadeRequest(String screen) {
|
||
|
super();
|
||
|
this.screen = screen;
|
||
|
}
|
||
|
|
||
|
public interface Listener {
|
||
|
|
||
|
void goToScreen(String screen);
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public void handleBy(Listener handler)
|
||
|
{
|
||
|
handler.goToScreen(screen);
|
||
|
}
|
||
|
|
||
|
}
|