Package controller

Examples of controller.PlayersController


        logger.debug("creating model and proxy model");
        IModel model = new GameModelHistory(parameters.getFieldSize(), parameters.getWinLineLen());
        ModelProxy proxy = new ModelProxy(model);

        logger.debug("creating controllers");
        PlayersController controller = createPlayersController(usrCommutator, parameters.getFirstPlayer());
        controller.disablePlayerSwitch();
        botGameController = new GameController(proxy, null, controller);

        logger.debug("creating new bot");
        Bot bot = new RandomBot(new PrintStream(pipedOutputStream), proxy);
        logger.debug("bot manager created");
View Full Code Here


    public static GameController InitGame(Parameters parameters) throws IOException {
        logger.info("initialization with parameters " + parameters);
        GameModelHistory model = new GameModelHistory(parameters.getFieldSize(), parameters.getWinLineLen());

        final PlayersController playersController =
                createPlayersController(createStreamCommutator(parameters), parameters.getFirstPlayer());

        return new GameController(model, new FieldView(), playersController);
    }
View Full Code Here

        return new GameController(model, new FieldView(), playersController);
    }

    public static PlayersController createPlayersController(StreamCommutator commutator, int firstPlayer) {
        logger.debug("configuring player controller");
        return new PlayersController(createActionProvider(),
                                     commutator,
                                     firstPlayer);
    }
View Full Code Here

TOP

Related Classes of controller.PlayersController

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.