Package csa.jportal.ai

Examples of csa.jportal.ai.AIPlayer


        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


    public boolean handleStack()
    {
        initEnvironment();
        int debugLevel=3;
        AIPlayer aiPlayer = E.player.getAIPlayer();

        String baseKey=E.match.getPlayerBaseKey(E.player);
        String cardKey = baseKey + "CARD_VECTOR";
        Vector cardsPlayed = (Vector) aiPlayer.getObjectData(cardKey);
        if (cardsPlayed == null) cardsPlayed = new Vector();
        CardList cardsPlayedList = new CardList();

        for (int t = 0; t <cardsPlayed.size(); t++)
        {
View Full Code Here

    public void doSelectUntappedCreature(Communication c)
    {
        int debugLevel = 3;
        E.D.addLog("EAI: Enter com select target untapped creature!",debugLevel);
        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);

        Card card = c.E.mInitiatorCard;
        E.D.addLog("Script combo loaded ->",debugLevel);
View Full Code Here

    public void doSelectTappedCreature(Communication c)
    {
        int debugLevel = 3;
        E.D.addLog("EAI: Enter com select tapped creature!",debugLevel);
        Card card = c.E.mInitiatorCard;
        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        //#import "scripts\Allround\AIHelperScript.java"

        E.D.addLog("Script combo loaded ->",debugLevel);
View Full Code Here

    public void doSelectAttackingCreature(Communication c)
    {
        int debugLevel = 3;
        E.D.addLog("EAI: Enter com select attacking target creature!",debugLevel);
        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        //#import "scripts\Allround\AIHelperScript.java"

        Card card = c.E.mInitiatorCard;
        CardList opponentList = AIHelper.getPossibleCardList(E.player, E.match, CardAsking.createAttackingCreatureOpponentCreature(E.player, E.opponent));
View Full Code Here

    public void doSelectCreature(Communication c)
    {
        int debugLevel=3;
        E.D.addLog("EAI: Enter com select target creature!",debugLevel);

        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        Card card = c.E.mInitiatorCard;

        //#import "scripts\Allround\AIHelperScript.java"
View Full Code Here

    public void doSelectCreatureFromGrave(Communication c)
    {
        int debugLevel = 3;
        E.D.addLog("EAI: Enter com select creature from graveyard!",debugLevel);

        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        //#import "scripts\Allround\AIHelperScript.java"

        Card card = c.E.mInitiatorCard;
        CardList playerList = AIHelper.getPossibleCardList(E.player, E.match, CardAsking.createCreaturePlayerGraveyard(E.player, E.opponent));
View Full Code Here

    public void doSelectCreatureFromHand(Communication c)
    {
        int debugLevel = 3;
        E.D.addLog("EAI: Enter com select creature from hand!",debugLevel);

        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        //#import "scripts\Allround\AIHelperScript.java"

        Card card = c.E.mInitiatorCard;
        CardList playerList = AIHelper.getPossibleCardList(E.player, E.match, CardAsking.createCreaturePlayerHand(E.player, E.opponent));
View Full Code Here

    public void doSelectLandFromHand(Communication c)
    {
        int debugLevel = 3;
        E.D.addLog("EAI: Enter com select land from hand!",debugLevel);

        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        //#import "scripts\Allround\AIHelperScript.java"

        Card card = c.E.mInitiatorCard;
        CardList playerList = AIHelper.getPossibleCardList(E.player, E.match, CardAsking.createLandPlayerHand(E.player, E.opponent));
View Full Code Here

    public void doSelectOpponentCreature(Communication c)
    {
        int debugLevel=3;
        E.D.addLog("EAI: Enter com select E.opponent creature!",debugLevel);

        AIPlayer aiPlayer = E.player.getAIPlayer();
        String baseKey=E.match.getPlayerBaseKey(E.player);
        Card card = c.E.mInitiatorCard;

        //#import "scripts\Allround\AIHelperScript.java"
View Full Code Here

TOP

Related Classes of csa.jportal.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.