Examples of drawCards()


Examples of cero.games.base.ZoneFile.drawCards()

  }

  private void makePlayerDraw(Player p, int quantity) {
    ZoneFile stock = ((UnoGame) getGame()).getStock();
    ZoneHand hand = ((UnoPlayer) p).getHand();
    stock.drawCards(hand, quantity);
  }

  @Override
  public String getActionName() {
    return "Play a card";
View Full Code Here

Examples of mage.players.Player.drawCards()

  @Override
  public void beginStep(Game game, UUID activePlayerId) {
    Player activePlayer = game.getPlayer(activePlayerId);
    //20091005 - 504.1/703.4c
    activePlayer.drawCards(1, game);
//    game.saveState();
    super.beginStep(game, activePlayerId);
  }

  @Override
View Full Code Here

Examples of mage.players.Player.drawCards()

    //20091005 - 103.3
    for (UUID playerId: state.getPlayerList(startingPlayerId)) {
      Player player = getPlayer(playerId);
      player.setLife(this.getLife(), this);
      player.drawCards(7, this);
    }

    //20091005 - 103.4
    for (UUID playerId: state.getPlayerList(startingPlayerId)) {
      Player player = getPlayer(playerId);
View Full Code Here

Examples of mage.players.Player.drawCards()

    Player player = getPlayer(playerId);
    int numCards = player.getHand().size();
    player.getLibrary().addAll(player.getHand().getCards(this), this);
    player.getHand().clear();
    player.shuffleLibrary(this);
    player.drawCards(numCards - 1, this);
    fireInformEvent(player.getName() + " mulligans down to " + Integer.toString(numCards - 1) + " cards");
  }

  @Override
  public synchronized void quit(UUID playerId) {
View Full Code Here

Examples of mage.players.Player.drawCards()

    Player sourcePlayer = game.getPlayer(source.getControllerId());
    for (UUID playerId: sourcePlayer.getInRange()) {
      Player player = game.getPlayer(playerId);
      if (player != null)
        player.drawCards(amount, game);
    }
    return true;
  }

  @Override
View Full Code Here

Examples of mage.players.Player.drawCards()

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getFirstTarget());
    if (player != null) {
      player.drawCards(amount, game);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.drawCards()

  }

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    player.drawCards(1, game);
    return true;
  }

  @Override
  public String getText(Ability source) {
View Full Code Here

Examples of mage.players.Player.drawCards()

  @Override
  public boolean apply(Game game, Ability source) {
    int amount = source.getManaCosts().getVariableCosts().get(0).getAmount();
    Player player = game.getPlayer(source.getControllerId());
    if (player != null) {
      player.drawCards(amount, game);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.drawCards()

        @Override
        public boolean apply(Game game, Ability source) {
            Permanent target = game.getPermanent(source.getFirstTarget());
            Player player = game.getPlayer(source.getControllerId());
    if (player != null && target != null) {
      player.drawCards(target.getPower().getValue(), game);
      return true;
    }
    return false;
        }
View Full Code Here

Examples of mage.players.Player.drawCards()

  }

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    player.drawCards(2, game);
    if (player.getHand().size() > 0) {
      TargetCard target = new TargetCard(Zone.HAND, filter);
      target.setRequired(true);
      player.choose(player.getHand(), target, game);
      Card card = player.getHand().get(target.getFirstTarget(), game);
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.