congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ConditionalMana.getRed
Code IndexAdd Tabnine to your IDE (free)

How to use
getRed
method
in
mage.ConditionalMana

Best Java code snippets using mage.ConditionalMana.getRed (Showing top 2 results out of 315)

origin: magefree/mage

public ManaPoolView(ManaPool pool) {
  this.red = pool.getRed();
  this.green = pool.getGreen();
  this.blue = pool.getBlue();
  this.white = pool.getWhite();
  this.black = pool.getBlack();
  this.colorless = pool.getColorless();
  for (ConditionalMana mana : pool.getConditionalMana()) {
    this.red += mana.getRed();
    this.green += mana.getGreen();
    this.blue += mana.getBlue();
    this.white += mana.getWhite();
    this.black += mana.getBlack();
    this.colorless += mana.getColorless();
  }
}
origin: magefree/mage

@Override
public Mana produceMana(boolean netMana, Game game, Ability source) {
  Player controller = game.getPlayer(source.getControllerId());
  if (controller == null) {
    return null;
  }
  ManaPool pool = controller.getManaPool();
  int blackMana = pool.getBlack();
  int whiteMana = pool.getWhite();
  int blueMana = pool.getBlue();
  int greenMana = pool.getGreen();
  int redMana = pool.getRed();
  int colorlessMana = pool.getColorless();
  for (ConditionalMana conditionalMana : pool.getConditionalMana()) {
    blackMana += conditionalMana.getBlack();
    whiteMana += conditionalMana.getWhite();
    blueMana += conditionalMana.getBlue();
    greenMana += conditionalMana.getGreen();
    redMana += conditionalMana.getRed();
    colorlessMana += conditionalMana.getColorless();
  }
  return new Mana(redMana, greenMana, blueMana, whiteMana, blackMana, 0, 0, colorlessMana);
}
mageConditionalManagetRed

Popular methods of ConditionalMana

  • apply
  • getBlack
  • getBlue
  • getColorless
  • getGreen
  • getWhite
  • <init>
  • add
  • clear
  • copy
  • count
  • get
  • count,
  • get,
  • getDescription,
  • getFlag,
  • getManaProducerId,
  • getManaProducerOriginalId,
  • removeAll,
  • set,
  • setManaProducerId

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Reference (javax.naming)
  • JFrame (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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