Package com.threerings.parlor.game.data

Examples of com.threerings.parlor.game.data.GameConfig


            // invite another player, do so now
            String invitee = System.getProperty("invitee");
            if (invitee != null) {
                // create a game config object
                try {
                    GameConfig config = _config.getGameConfig();
                    _ctx.getParlorDirector().invite(
                        new Name(invitee), config, this);
                } catch (Exception e) {
                    log.warning("Error instantiating game config.", e);
                }
View Full Code Here


        _matchList = new JPanel(mgl);
            _matchList.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        panel.add(new JScrollPane(_matchList));

        // create and initialize the configurator interface
        GameConfig gconfig = null;
        try {
            gconfig = config.getGameConfig();

            _tableFigger = gconfig.createTableConfigurator();
            if (_tableFigger == null) {
                log.warning("Game config has not been set up to work with " +
                    "tables: it needs to return non-null from " +
                    "createTableConfigurator().");
                // let's just wait until we throw an NPE below
            }

            _figger = gconfig.createConfigurator();
            _tableFigger.init(_ctx, _figger);
            if (_figger != null) {
                _figger.init(_ctx);
                _figger.setGameConfig(gconfig);
                panel.add(((SwingGameConfigurator) _figger).getPanel(),
View Full Code Here

        createGame(client);
    }

    public void createGame (Client client)
    {
        GameConfig config = null;
        try {
            // create the game config object
            config = (GameConfig)Class.forName(_info.gameConfigClass).newInstance();

            // get the simulator service and use it to request that our game be created
View Full Code Here

TOP

Related Classes of com.threerings.parlor.game.data.GameConfig

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.