Search in sources :

Example 1 with MacroPartyManager

use of eidolons.game.battlecraft.logic.meta.macro.MacroPartyManager in project Eidolons by IDemiurge.

the class MacroManager method newGame.

public static void newGame(String scenario) {
    load = false;
    metaMaster = new ScenarioMetaMaster(scenario) {

        @Override
        protected PartyManager createPartyManager() {
            return new MacroPartyManager(this);
        }
    };
    if (!CoreEngine.isMapEditor()) {
        metaMaster.init();
        if (metaMaster.getPartyManager().getParty() == null)
            return;
    }
    game = new MacroGame();
    if (!CoreEngine.isMapEditor()) {
        MacroEngine.init();
        game.start(true);
    }
    GuiEventManager.bind(MAP_READY, p -> {
        initComponents();
    });
    GuiEventManager.trigger(SCREEN_LOADED);
}
Also used : ScenarioMetaMaster(eidolons.game.battlecraft.logic.meta.scenario.ScenarioMetaMaster) MacroPartyManager(eidolons.game.battlecraft.logic.meta.macro.MacroPartyManager) PartyManager(eidolons.game.battlecraft.logic.meta.universal.PartyManager) MacroPartyManager(eidolons.game.battlecraft.logic.meta.macro.MacroPartyManager)

Aggregations

MacroPartyManager (eidolons.game.battlecraft.logic.meta.macro.MacroPartyManager)1 ScenarioMetaMaster (eidolons.game.battlecraft.logic.meta.scenario.ScenarioMetaMaster)1 PartyManager (eidolons.game.battlecraft.logic.meta.universal.PartyManager)1