Examples of GameConfig


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

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

        _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

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

        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

Examples of es.mahulo.battleship.model.GameConfig

   
    logger.debug("user found: " + user);

    Game game = new Game();

    GameConfig gameConfig = gameConfigDao.find(1L); //TODO DEFINE A TABLE DEFAULT CONFIGURATION
   
    List<Player> players = new ArrayList<Player>();
   
    Player player = new Player();
    player.setUser(user);
View Full Code Here

Examples of es.mahulo.battleship.model.GameConfig

    shipConfig5.setNumber(2);
    shipConfig5.setSize(1);
    shipConfigs.add(shipConfig5);
   
   
    gameConfig = new GameConfig();
    gameConfig.setDimensionX(10);
    gameConfig.setDimensionY(10);
    gameConfig.setShipConfigs(shipConfigs);
   
   
View Full Code Here

Examples of es.mahulo.battleship.model.GameConfig

    shipConfig5.setSize(1);
    shipConfigs.add(shipConfig5);
   
   
   
    gameConfig = new GameConfig();
    gameConfig.setId(1L);
    gameConfig.setDimensionX(10);
    gameConfig.setDimensionY(10);
    gameConfig.setShipConfigs(shipConfigs);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.