java.lang.Object
de.grogra.mtg.MTGBranch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(MTGBranchElement element) intintstatic booleanCompares if branch a is equal to branch bdoublegetAlpha()intgetElement(int elementIndex) intintgetElementIndex(MTGBranchElement element) intgetPlant()Get plant which this branch belongs to.intgetScale()intstatic booleangreaterThan(MTGBranch a, MTGBranch b) static booleanCompares if branch a is less than branch b.voidsetAlpha(double a) voidsetCategory(int cat)
-
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
-
getElement
-
getElementIndex
-
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
Compares if branch a is less than branch b.- Parameters:
a-b-- Returns:
- true if a is less than b, else false.
-
greaterThan
-
equal
Compares if branch a is equal to branch b- Parameters:
a-b-- Returns:
- true if a is equal to b, else false.
-