Package org.ggp.base.server.threads

Examples of org.ggp.base.server.threads.PlayRequestThread


        for (int i = 0; i < hosts.size(); i++) {
            List<Move> legalMoves = stateMachine.getLegalMoves(currentState, stateMachine.getRoles().get(i));
            if (playerPlaysRandomly[i]) {
              threads.add(new RandomPlayRequestThread(match, legalMoves));
            } else {
                threads.add(new PlayRequestThread(this, match, previousMoves, legalMoves, stateMachine.getRoles().get(i), hosts.get(i), ports.get(i), getPlayerNameFromMatchForRequest(i), playerGetsUnlimitedTime[i]));
            }
        }
        for (PlayRequestThread thread : threads) {
            thread.start();
        }
View Full Code Here

TOP

Related Classes of org.ggp.base.server.threads.PlayRequestThread

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.