Examples of MatchStartOptions


Examples of csa.jportal.match.MatchStartOptions

        String matchName = jComboBox1.getSelectedItem().toString();


        TestMatch match = new TestMatch();

        MatchStartOptions options = new MatchStartOptions();
        CardDeck.mDummyLoadingActive = true;
        // assuming a AI named SimpleAI exists!
        options.setPlayer1(new MatchComputerPlayer(new AIPlayer("SimpleAI")));
        options.setPlayer2(new MatchComputerPlayer(new AIPlayer("SimpleAI")));
        CardDeck.mDummyLoadingActive = false;

        Match.loadMatchUnstated(matchName, null, match, options);

        if (!match.didMatchStart()) return;
View Full Code Here

Examples of csa.jportal.match.MatchStartOptions

           p1 = player2;
           p2 = player1;
           playerSwitch = true;
           cplayer1 = player1.cplayer;
       }
       final MatchStartOptions options = new MatchStartOptions();

       if (hplayer != null)
       {
           // human game
            MatchPlayable hplayer1=null;
            hplayer.setBoosterMode(true, player1.mDeckBase);
            hplayer1 = new MatchHumanPlayer(hplayer);

            options.setPlayer1(hplayer1);
            options.setPlayer2(cplayer1);
       }
       else
       {
           // computer only game!
            options.setPlayer1(cplayer1);
            options.setPlayer2(cplayer2);
       }

        mScheduler.mParent.preStartMatch();

        Runnable caller = new Runnable()
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.