Package de.ailis.xadrian.data.factories

Examples of de.ailis.xadrian.data.factories.GameFactory


    public void createComplexTab()
    {
        // Try to read game from the configuration
        final Config config = Config.getInstance();
        final String defaultGameId = config.getDefaultGame();
        final GameFactory gameFactory = GameFactory.getInstance();
        Game game = defaultGameId == null ||
            !gameFactory.hasGame(defaultGameId) ? null
            : gameFactory.getGame(defaultGameId);

        // If no default game is set then ask for it
        if (game == null)
        {
            final SelectGameDialog dialog = SelectGameDialog.getInstance();
View Full Code Here


            config.isProdStatsPerMinute()));
        this.x3tcPlayerSectorComboBox.setSelectedIndex(config.getX3TCPlayerSector());
        this.x3apPlayerSectorComboBox.setSelectedIndex(config.getX3APPlayerSector());

        final String defaultGameId = config.getDefaultGame();
        final GameFactory gameFactory = GameFactory.getInstance();
        if (defaultGameId == null || !gameFactory.hasGame(defaultGameId))
            this.gamesComboBox.setSelectedIndex(0);
        else
            this.gamesComboBox.setSelectedItem(GameFactory.getInstance()
                .getGame(defaultGameId));
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.data.factories.GameFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.