Class Pool

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

public class Pool extends Object
Implementation of drop pools.
  • Method Details

    • getDrop

      public Card getDrop(int rand)
      Returns the card dropped by the AI when using this pool for the given RNG value.
      Parameters:
      rand - the value returned by FM's rand() function (before modulo)
      Returns:
      the card dropped, or the card added to the AI's deck if called on the Deck pool
    • getDrop

      public Card getDrop(RNG seed)
      Returns the card dropped by the AI when using this pool for the given RNG seed.
      Parameters:
      seed - the RNG seed
      Returns:
      the card dropped, or the card added to the AI's deck if called on the Deck pool
    • getEntry

      public Pool.Entry getEntry(int cardId)
      Returns the Pool.Entry for the given card ID.
      Parameters:
      cardId -
      Returns:
      the entry for the given card ID, or null if the card is not in the pool
    • getEntry

      public Pool.Entry getEntry(Card card)
      Returns the Pool.Entry for the given card.
      Parameters:
      card -
      Returns:
      the entry for the given card, or null if the card is not in the pool
    • getAllEntries

      public Set<Pool.Entry> getAllEntries()
      Returns all entries in this pool.
      Returns:
      all entries in this pool
    • getAllEntries

      public Set<Pool.Entry> getAllEntries(Predicate<Pool.Entry> filter)
      Returns all entries in this pool that match the given filter.
      Parameters:
      filter -
      Returns:
      all entries in this pool that match the given filter