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

How to use
FrameStyle
in
mage.cards

Best Java code snippets using mage.cards.FrameStyle (Showing top 6 results out of 315)

origin: magefree/mage

public FrameStyle getFrameStyle() {
  return FrameStyle.valueOf(this.frameStyle);
}
origin: magefree/mage

private float getTypeLineYFrac() {
  if (cardView.isToken() && cardView.getCardNumber() == null) {
    return TYPE_LINE_Y_FRAC_TOKEN;
  } else if (cardView.getFrameStyle().isFullArt()) {
    return TYPE_LINE_Y_FRAC_FULL_ART;
  } else {
    return TYPE_LINE_Y_FRAC;
  }
}
origin: magefree/mage

sb.append((char) (this.view.isCanAttack() ? 1 : 0));
sb.append((char) (this.view.isFaceDown() ? 1 : 0));
sb.append((char) this.view.getFrameStyle().ordinal());
if (this.view instanceof PermanentView) {
  sb.append((char) (((PermanentView) this.view).hasSummoningSickness() ? 1 : 0));
origin: magefree/mage

this.frameStyle = card.getFrameStyle().toString();
this.frameColor = card.getFrameColor(null).toString();
this.variousArt = card.getUsesVariousArt();
origin: magefree/mage

/**
 * Get the region to slice out of a source art image for the card
 *
 * @return
 */
private Rectangle2D getArtRect() {
  Rectangle2D rect;
  if (useInventionFrame()) {
    rect = new Rectangle2D.Float(0, 0, 1, 1);
  } else if (isZendikarFullArtLand()) {
    rect = new Rectangle2D.Float(.079f, .11f, .84f, .84f);
  } else if (isUnstableFullArtLand()) {
    rect = new Rectangle2D.Float(.0f, .0f, 1.0f, 1.0f);
  } else if (cardView.getFrameStyle().isFullArt() || (cardView.isToken())) {
    rect = new Rectangle2D.Float(.079f, .11f, .84f, .63f);
  } else {
    rect = ArtRect.NORMAL.rect;
  }
  return rect;
}
origin: magefree/mage

public Card getCard() {
  return CardImpl.createCard(className, new CardSetInfo(name, setCode, cardNumber, rarity, new CardGraphicInfo(FrameStyle.valueOf(frameStyle), variousArt)));
}
mage.cardsFrameStyle

Most used methods

  • isFullArt
  • ordinal
  • toString
  • valueOf

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JComboBox (javax.swing)
  • 14 Best Plugins for Eclipse
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