public class RiverNode extends PathNode
| Constructor and Description |
|---|
RiverNode(Garden garden,
javax.vecmath.Point3i location,
int crossSectionalArea) |
RiverNode(Garden garden,
RiverNode parent,
javax.vecmath.Point3i location) |
RiverNode(Garden garden,
RiverNode parent,
javax.vecmath.Point3i location,
RiverNode child) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Dimension dimension,
Dimension dimensionSnapshot,
java.util.Set<RiverNode> processedNodes) |
RiverNode |
getOrigin() |
int |
getSlope(int x,
int y) |
protected boolean |
sprout()
Try to sprout the seed.
|
buildFirstPass, buildSecondPass, clone, doAlongLine, doAlongLine, doAlongLine, doAlongLine, doAlongLine, doAlongLine, drawLine, drawLine, drawLine, drawLine, drawLine, drawLine, equals, fill, getGarden, getLocation, getParent, hashCode, isFinished, isSprouted, neutralise, scanLine, tick, transformpublic RiverNode(Garden garden, javax.vecmath.Point3i location, int crossSectionalArea)
protected boolean sprout()
Seedfalse, the seed will be considered to
have died, and be removed from the garden automatically.public RiverNode getOrigin()
public void apply(Dimension dimension, Dimension dimensionSnapshot, java.util.Set<RiverNode> processedNodes)
public int getSlope(int x,
int y)