Module rgg
Package de.grogra.mtg

Class MTGBranch

java.lang.Object
de.grogra.mtg.MTGBranch

public class MTGBranch extends Object
  • Constructor Details

    • MTGBranch

      public MTGBranch(int nodeIndex, int plant, int scale)
  • Method Details

    • setAlpha

      public void setAlpha(double a)
    • getAlpha

      public double getAlpha()
    • setCategory

      public void setCategory(int cat)
    • getCategory

      public int getCategory()
    • getScale

      public int getScale()
    • baseOfBranch

      public int baseOfBranch()
    • endOfBranch

      public int endOfBranch()
    • addElement

      public void addElement(MTGBranchElement element)
    • getElement

      public MTGBranchElement getElement(int elementIndex)
    • getElementIndex

      public int getElementIndex(MTGBranchElement element)
    • getElementCount

      public int getElementCount()
    • getSupportNodeIndex

      public int getSupportNodeIndex()
    • getPlant

      public int getPlant()
      Get plant which this branch belongs to.
      Returns:
      Plant index (1-based) which this branch belongs to.
    • lessThan

      public static boolean lessThan(MTGBranch a, MTGBranch b)
      Compares if branch a is less than branch b.
      Parameters:
      a -
      b -
      Returns:
      true if a is less than b, else false.
    • greaterThan

      public static boolean greaterThan(MTGBranch a, MTGBranch b)
    • equal

      public static boolean equal(MTGBranch a, MTGBranch b)
      Compares if branch a is equal to branch b
      Parameters:
      a -
      b -
      Returns:
      true if a is equal to b, else false.