Package de.ailis.xadrian.data

Examples of de.ailis.xadrian.data.Game


     */
    public static void main(final String[] args) throws Exception
    {
        SwingUtils.prepareGUI();

        Game game = GameFactory.getInstance().getGame("x3tc");
        final SectorSelector component = new SectorSelector(game);
        SwingUtils.testComponent(component);
    }
View Full Code Here


     */
    public static void main(final String[] args) throws Exception
    {
        SwingUtils.prepareGUI();

        Game game = GameFactory.getInstance().getGame("x3tc");
        final SectorComboBox component = new SectorComboBox(game);
        SwingUtils.testComponent(component);
    }
View Full Code Here

     * @param args
     *            Command line arguments
     */
    public static void main(final String args[])
    {
        Game game = GameFactory.getInstance().getGame("x3tc");
        System.out.println(new AddFactoryDialog(game).open());
    }
View Full Code Here

    {
        // 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();
            if (dialog.open() != Result.OK) return;
            game = dialog.getGame();
            if (dialog.isRemember()) config.setDefaultGame(game.getId());
        }
        createComplexTab(new ComplexEditor(new Complex(game)));
    }
View Full Code Here

        c.weightx = 1;
        c.gridx = 1;
        c.insets.left = 5;
        c.fill = GridBagConstraints.HORIZONTAL;
        this.x3tcPlayerSectorComboBox = new JComboBox();
        final Game x3tc = GameFactory.getInstance().getGame("x3tc");
        for (int i = 0; i < 5; i++)
        {
            this.x3tcPlayerSectorComboBox.addItem(I18N.getString(x3tc,
                "sector.sec-20-2-" + i));
        }
View Full Code Here

        c.weightx = 1;
        c.gridx = 1;
        c.insets.left = 5;
        c.fill = GridBagConstraints.HORIZONTAL;
        this.x3apPlayerSectorComboBox = new JComboBox();
        final Game x3ap = GameFactory.getInstance().getGame("x3ap");
        for (int i = 0; i < 6; i++)
        {
            this.x3apPlayerSectorComboBox.addItem(I18N.getString(x3ap,
                "sector.sec-12-4-" + i));
        }
View Full Code Here

     * @param args
     *            Command line arguments
     */
    public static void main(String[] args)
    {
        Game game = GameFactory.getInstance().getGame("x3tc");
        new ChangeSunsDialog(game).open();
    }
View Full Code Here

     */
    public static void main(final String[] args) throws Exception
    {
        SwingUtils.prepareGUI();

        Game game = GameFactory.getInstance().getGame("x3tc");
        final AsteroidsInfoPane component = new AsteroidsInfoPane();
        component.setSector(game.getSectorFactory().getSector("sec-2-11"));
        SwingUtils.testComponent(component);
    }
View Full Code Here

     */
    public static void main(String[] args) throws Exception
    {
        SwingUtils.prepareTheme();

        Game game = GameFactory.getInstance().getGame("x3tc");
        final SelectSectorDialog dialog = new SelectSectorDialog(game);
        dialog.open();
        System.out.println(dialog.getSelected());
        System.exit(0);       
    }
View Full Code Here

     */
    public static void main(final String args[]) throws Exception
    {
        SwingUtils.prepareGUI();

        Game game = GameFactory.getInstance().getGame("x3tc");
        final Factory mineType =
            game.getFactoryFactory().getFactory("siliconMineL-teladi");
        final SetYieldsDialog dialog = new SetYieldsDialog(mineType);
        final List<Integer> yields = new ArrayList<Integer>();
        yields.add(10);
        yields.add(25);
        yields.add(25);
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.data.Game

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.