Examples of loadCards()


Examples of mage.client.dialog.PickPileDialog.loadCards()

    }

    public void pickPile(String message, CardsView pile1, CardsView pile2) {
        hideAll();
        PickPileDialog pickPileDialog = new PickPileDialog();
        pickPileDialog.loadCards(message, pile1, pile2, bigCard, Config.dimensions, gameId);
        session.sendPlayerBoolean(gameId, pickPileDialog.isPickedPile1());
        pickPileDialog.cleanUp();
        pickPileDialog.removeDialog();
    }
View Full Code Here

Examples of mage.client.dialog.ShowCardsDialog.loadCards()

    this.abilityPicker.show(choices, MageFrame.getDesktop().getMousePosition());
  }

  public void revealCards(String name, CardsView cards) {
    ShowCardsDialog showCards = new ShowCardsDialog();
    showCards.loadCards(name, cards, bigCard, Config.dimensions, gameId, false);
  }

  private void showCards(String title, CardsView cards, boolean required) {
    ShowCardsDialog showCards = new ShowCardsDialog();
    showCards.loadCards(title, cards, bigCard, Config.dimensions, gameId, required);
View Full Code Here

Examples of mage.client.dialog.ShowCardsDialog.loadCards()

    showCards.loadCards(name, cards, bigCard, Config.dimensions, gameId, false);
  }

  private void showCards(String title, CardsView cards, boolean required) {
    ShowCardsDialog showCards = new ShowCardsDialog();
    showCards.loadCards(title, cards, bigCard, Config.dimensions, gameId, required);
  }

  public void getAmount(int min, int max, String message) {
    MageFrame.getPickNumberDialog().showDialog(min, max, message);
    if (MageFrame.getPickNumberDialog().isCancel())
View Full Code Here

Examples of mage.client.dialog.ShowCardsDialog.loadCards()

    }

    private ShowCardsDialog showCards(String title, CardsView cards, boolean required, Map<String, Serializable> options) {
        hideAll();
        ShowCardsDialog showCards = new ShowCardsDialog();
        showCards.loadCards(title, cards, bigCard, Config.dimensionsEnlarged, gameId, required, options);
        return showCards;
    }

    public void getAmount(int min, int max, String message) {
        pickNumber.showDialog(min, max, message);
View Full Code Here

Examples of mage.game.Game.loadCards()

        if (deck.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck.getCards().size());
        }
        game.addPlayer(computerA, deck);
        game.loadCards(deck.getCards(), computerA.getId());

        Player computerB = createRandomPlayer("ComputerB");
        Deck deck2 = generateRandomDeck();
        if (deck2.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck2.getCards().size());
View Full Code Here

Examples of mage.game.Game.loadCards()

        Deck deck2 = generateRandomDeck();
        if (deck2.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck2.getCards().size());
        }
        game.addPlayer(computerB, deck2);
        game.loadCards(deck2.getCards(), computerB.getId());

        boolean testMode = true;

        long t1 = System.nanoTime();
        GameOptions options = new GameOptions();
View Full Code Here

Examples of mage.game.Game.loadCards()

        if (deck.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck.getCards().size());
        }
        game.addPlayer(computerA, deck);
        game.loadCards(deck.getCards(), computerA.getId());

        Player computerB = createPlayer("ComputerB", "Computer - minimax hybrid");
//        Player playerB = createPlayer("ComputerB", "Computer - mad");
//        Deck deck2 = Deck.load(Sets.loadDeck("RB Aggro.dck"));
        Deck deck2 = generateRandomDeck();
View Full Code Here

Examples of mage.game.Game.loadCards()

        Deck deck2 = generateRandomDeck();
        if (deck2.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck2.getCards().size());
        }
        game.addPlayer(computerB, deck2);
        game.loadCards(deck2.getCards(), computerB.getId());

//        parseScenario("scenario1.txt");
//        game.cheat(playerA.getId(), commandsA);
//        game.cheat(playerA.getId(), libraryCardsA, handCardsA, battlefieldCardsA, graveyardCardsA);
//        game.cheat(playerB.getId(), commandsB);
View Full Code Here

Examples of mage.game.Game.loadCards()

        Deck deck = Deck.load(DeckImporterUtil.importDeck("RB Aggro.dck"), false, false);
        logger.debug("Done!");
        if (deck.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck.getCards().size());
        }       
        game.loadCards(deck.getCards(), playerA.getId());
        game.addPlayer(playerA, deck);

        playerB = createNewPlayer("PlayerB");
        playerB.setTestMode(true);
        Deck deck2 = Deck.load(DeckImporterUtil.importDeck("RB Aggro.dck"), false, false);
View Full Code Here

Examples of mage.game.Game.loadCards()

        playerB.setTestMode(true);
        Deck deck2 = Deck.load(DeckImporterUtil.importDeck("RB Aggro.dck"), false, false);
        if (deck2.getCards().size() < 40) {
            throw new IllegalArgumentException("Couldn't load deck, deck size=" + deck2.getCards().size());
        }       
        game.loadCards(deck2.getCards(), playerB.getId());
        game.addPlayer(playerB, deck2);
        activePlayer = playerA;
        currentGame = game;

        stopOnTurn = 2;
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.