Package com.jcloisterzone.ai

Examples of com.jcloisterzone.ai.AiPlayer


    protected void prepareAiPlayers() {
        for (PlayerSlot slot : slots) {
            if (slot != null && slot.isAi() && slot.isOwn()) {
                try {
                    AiPlayer ai = (AiPlayer) Class.forName(slot.getAiClassName()).newInstance();
                    ai.setGame(game);
                    ai.setServer(getConnection(), getServer());
                    for (Player player : game.getAllPlayers()) {
                        if (player.getSlot().getNumber() == slot.getNumber()) {
                            ai.setPlayer(player);
                            break;
                        }
                    }
                    game.getEventBus().register(ai);
                    logger.info("AI player created - " + slot.getAiClassName());
View Full Code Here

TOP

Related Classes of com.jcloisterzone.ai.AiPlayer

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.