Tabnine Logo
Player.isEmptyDraw
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmptyDraw
method
in
mage.players.Player

Best Java code snippets using mage.players.Player.isEmptyDraw (Showing top 3 results out of 315)

origin: magefree/mage

@Override
public boolean applies(GameEvent event, Ability source, Game game) {
  if (event.getPlayerId().equals(source.getControllerId())) {
    Player player = game.getPlayer(event.getPlayerId());
    if (player != null && !player.hasLost() && player.isEmptyDraw()) {
      return true;
    }
  }
  return false;
}
origin: magefree/mage

  game.fireInformEvent(player.getLogName() + " draws " + CardUtil.numberToText(numDrawn, "a") + " card" + (numDrawn > 1 ? "s" : ""));
if (player.isEmptyDraw()) {
  event = GameEvent.getEvent(GameEvent.EventType.EMPTY_DRAW, player.getId(), player.getId());
  if (!game.replaceEvent(event)) {
origin: magefree/mage

if (!player.hasLost()
    && ((player.getLife() <= 0 && player.canLoseByZeroOrLessLife())
    || player.isEmptyDraw()
    || player.getCounters().getCount(CounterType.POISON) >= 10)) {
  player.lost(this);
mage.playersPlayerisEmptyDraw

Popular methods of Player

  • getId
  • getHand
  • getName
  • getLife
  • getLibrary
  • hasLeft
  • hasWon
  • getCounters
  • hasLost
  • copy
  • damage
  • declareAttacker
  • damage,
  • declareAttacker,
  • getGraveyard,
  • getPlayersUnderYourControl,
  • activateAbility,
  • canLose,
  • choose,
  • declareBlocker,
  • gainLife,
  • getAttachments

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Permission (java.security)
    Legacy security code; do not use.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JTable (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now