Package basicObjects.Factories

Examples of basicObjects.Factories.PlayerFactory


    AbstractPlayer currentPlayer;

    public GameObject(String p1, String p2, String boardType) {

        currentPieces = PieceFactory.getInstanceOfPieces();
        playerFactory = new PlayerFactory();
        players = playerFactory.createPlayers(p1, p2); //TODO default for the moment should be adjusted for user input
        currentBoard = singletonBoardFactory.getInstanceOfBoard(boardType);
        currentGame = new GameState();
        currentBoard.register(currentGame);
        currentGame.setSubject(currentBoard);
View Full Code Here

TOP

Related Classes of basicObjects.Factories.PlayerFactory

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.