de.grogra.mtg
public class MTGBranch extends java.lang.Object
| Constructor and Description |
|---|
MTGBranch(int nodeIndex,
int plant,
int scale) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(MTGBranchElement element) |
int |
baseOfBranch() |
int |
endOfBranch() |
static boolean |
equal(MTGBranch a,
MTGBranch b)
Compares if branch a is equal to branch b
|
double |
getAlpha() |
int |
getCategory() |
MTGBranchElement |
getElement(int elementIndex) |
int |
getElementCount() |
int |
getElementIndex(MTGBranchElement element) |
int |
getPlant()
Get plant which this branch belongs to.
|
int |
getScale() |
int |
getSupportNodeIndex() |
static boolean |
greaterThan(MTGBranch a,
MTGBranch b) |
static boolean |
lessThan(MTGBranch a,
MTGBranch b)
Compares if branch a is less than branch b.
|
void |
setAlpha(double a) |
void |
setCategory(int cat) |
public void addElement(MTGBranchElement element)
public int baseOfBranch()
public int endOfBranch()
public static boolean equal(MTGBranch a, MTGBranch b)
a - b - public double getAlpha()
public int getCategory()
public MTGBranchElement getElement(int elementIndex)
public int getElementCount()
public int getElementIndex(MTGBranchElement element)
public int getPlant()
public int getScale()
public int getSupportNodeIndex()
public static boolean lessThan(MTGBranch a, MTGBranch b)
a - b - public void setAlpha(double a)
public void setCategory(int cat)