java.lang.Object
de.grogra.mtg.MTGBranch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(MTGBranchElement element) int
int
static boolean
Compares if branch a is equal to branch bdouble
getAlpha()
int
getElement
(int elementIndex) int
int
getElementIndex
(MTGBranchElement element) int
getPlant()
Get plant which this branch belongs to.int
getScale()
int
static boolean
greaterThan
(MTGBranch a, MTGBranch b) static boolean
Compares if branch a is less than branch b.void
setAlpha
(double a) void
setCategory
(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.
-