Class Duelist

java.lang.Object
moe.maika.ygofm.gamedata.Duelist

public class Duelist extends Object
A representation of a Forbidden Memories duelist.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    The names of all the duelists in Forbidden Memories.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of cards in this duelist's hand.
    int
    Returns the ID of this duelist.
    Returns the name of this duelist.
    Returns the drop pool of the given type for this duelist.
    boolean
    Returns true if this duelist will prioritize playing field spells when the current field is not their preferred field.
    boolean
    Returns true if this duelist is a high mage or low mage.
    boolean
    Returns true if this duelist is a high mage.
    boolean
    Returns true if this duelist is a low mage.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getHandSize

      public int getHandSize()
      Returns the number of cards in this duelist's hand.
      Returns:
      the number of cards in this duelist's hand
    • getId

      public int getId()
      Returns the ID of this duelist.
      Returns:
      the ID of this duelist
    • isEitherMage

      public boolean isEitherMage()
      Returns true if this duelist is a high mage or low mage.
      Returns:
      true if this duelist is a mage
    • isLowMage

      public boolean isLowMage()
      Returns true if this duelist is a low mage.
      Returns:
      true if this duelist is a low mage
    • isHighMage

      public boolean isHighMage()
      Returns true if this duelist is a high mage.
      Returns:
      true if this duelist is a high mage
    • hasMageAggressiveFieldAi

      public boolean hasMageAggressiveFieldAi()
      Returns true if this duelist will prioritize playing field spells when the current field is not their preferred field.
      Returns:
      true if this duelist aggressively plays field spells
    • getName

      public Duelist.Name getName()
      Returns the name of this duelist.
      Returns:
      the name of this duelist
    • getPool

      public Pool getPool(Pool.Type type)
      Returns the drop pool of the given type for this duelist.
      Parameters:
      type - the type of pool
      Returns:
      the pool of the given type
    • toString

      public String toString()
      Overrides:
      toString in class Object