use of eidolons.libgdx.screens.ScreenData in project Eidolons by IDemiurge.
the class ScenarioLauncher method launch.
public static void launch(String typeName) {
DC_Engine.jarInit();
DemoLauncher.main(null);
DC_Engine.mainMenuInit();
// Eidolons.mainGame.getMetaMaster().preStart();
master = new ScenarioMetaMaster(typeName);
if (!Eidolons.initScenario(master)) {
return;
}
ScreenData data = new ScreenData(ScreenType.BATTLE, master.getMissionName());
// new SceneFactory("Test")
GuiEventManager.trigger(GuiEventType.SWITCH_SCREEN, data);
DC_Engine.gameStartInit();
Eidolons.mainGame.getMetaMaster().getGame().dungeonInit();
Eidolons.mainGame.getMetaMaster().getGame().battleInit();
Eidolons.mainGame.getMetaMaster().getGame().start(true);
// DungeonScreen.getInstance().hideLoader();
}
use of eidolons.libgdx.screens.ScreenData in project Eidolons by IDemiurge.
the class MainMenuHandler method handle.
public Boolean handle(MAIN_MENU_ITEM item) {
switch(item) {
case CRAWL:
case STANDOFF:
case SKIRMISH:
CoreEngine.setMacro(false);
GuiEventManager.trigger(GuiEventType.SHOW_SELECTION_PANEL, DataManager.getTypesGroup(DC_TYPE.SCENARIOS, StringMaster.getWellFormattedString(item.toString())));
return null;
case ADVENTURE:
CoreEngine.setMacro(true);
GuiEventManager.trigger(GuiEventType.SWITCH_SCREEN, new ScreenData(ScreenType.MAP, "Mistfall"));
return null;
case OPTIONS:
OptionsMaster.init();
menu.openOptionsMenu();
return false;
case MANUAL:
// null closes!
GuiEventManager.trigger(GuiEventType.SHOW_MANUAL_PANEL, "");
return null;
case ABOUT:
break;
case EXIT:
Gdx.app.exit();
break;
}
return true;
}
use of eidolons.libgdx.screens.ScreenData in project Eidolons by IDemiurge.
the class IntroTestLauncher method engineInit.
@Override
protected void engineInit() {
ScreenData data = new ScreenData(ScreenType.BATTLE, "Loading...", factory);
screenSwitcher(new EventCallbackParam(data));
}
Aggregations