Examples of Size2Token


Examples of com.barrybecker4.game.twoplayer.common.persistence.tokens.Size2Token

        int numRows = 15; // default unless specified
        int numCols = 12; // default unless specified
        while (e.hasMoreElements()) {
            InfoToken token = (InfoToken) e.nextElement();
            if (token instanceof Size2Token) {
                Size2Token sizeToken = (Size2Token)token;
                GameContext.log(2, "info token columns =" + sizeToken.getNumColumns() +" rows=" + sizeToken.getNumRows());
                numRows = sizeToken.getNumRows();
                numCols = sizeToken.getNumColumns();
            }
            else if (token instanceof Player2NameToken) {
                Player2NameToken nameToken = (Player2NameToken) token;
                gc.getPlayers().getPlayer2().setName(nameToken.getName());
            }
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.common.persistence.tokens.Size2Token

        else if( tokenName.equals( "FF" ) )
            token = new FileFormatToken();
        else if( tokenName.equals( "GM" ) || tokenName.equals( "GAME" ) )
            token = new GameTypeToken();
        else if( tokenName.equals( "SZ2" ) || tokenName.equals( "SIZE" ) )
            token = new Size2Token();
        else if( tokenName.equals( "PLAYER1" ) )
            token = new Player1NameToken();
        else if( tokenName.equals( "PLAYER2" ) )
            token = new Player2NameToken();
        else if( tokenName.equals( "DT" ) || tokenName.equals( "DATE" ) )
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.common.persistence.tokens.Size2Token

        int numRows = 15; // default unless specified
        int numCols = 12; // default unless specified
        while (e.hasMoreElements()) {
            InfoToken token = (InfoToken) e.nextElement();
            if (token instanceof Size2Token) {
                Size2Token sizeToken = (Size2Token)token;
                numRows = sizeToken.getNumRows();
                numCols = sizeToken.getNumColumns();
            }
            else if (token instanceof Player2NameToken) {
                Player2NameToken nameToken = (Player2NameToken) token;
                gc.getPlayers().getPlayer2().setName(nameToken.getName());
            }
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.