Package model

Examples of model.GameModelHistory


        createPipedStream();

        usrCommutator = createStreamCommutator(container);

        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();
View Full Code Here


public class GameLauncher {
    private static final Logger logger = Logger.getLogger(ClassName.getCurrentClassName());

    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

TOP

Related Classes of model.GameModelHistory

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.