Package net.sf.freecol.tools
Class RiverMaker
- java.lang.Object
-
- net.sf.freecol.tools.RiverMaker
-
public class RiverMaker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BASE_HEIGHT
private static int
BASE_WIDTH
private static java.awt.geom.Point2D.Float
CENTER
private static int
DX
private static int
DY
private static float
EDGE_LENGTH
private static int
HALF_HEIGHT
private static int
HALF_WIDTH
private static java.awt.geom.Point2D.Float
NE
private static java.awt.geom.Point2D.Float
NW
private static java.awt.geom.Point2D.Float[]
POINTS
private static java.awt.geom.Point2D.Float
SE
private static java.awt.geom.Point2D.Float
SW
-
Constructor Summary
Constructors Constructor Description RiverMaker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
branchCount(int[] branches)
private static java.lang.String
getName(int[] branches)
static void
main(java.lang.String[] args)
private static int[]
nextBranch(int[] branches)
-
-
-
Field Detail
-
BASE_WIDTH
private static final int BASE_WIDTH
- See Also:
- Constant Field Values
-
BASE_HEIGHT
private static final int BASE_HEIGHT
- See Also:
- Constant Field Values
-
HALF_WIDTH
private static final int HALF_WIDTH
- See Also:
- Constant Field Values
-
HALF_HEIGHT
private static final int HALF_HEIGHT
- See Also:
- Constant Field Values
-
EDGE_LENGTH
private static final float EDGE_LENGTH
-
DY
private static final int DY
- See Also:
- Constant Field Values
-
DX
private static final int DX
- See Also:
- Constant Field Values
-
NE
private static final java.awt.geom.Point2D.Float NE
-
SE
private static final java.awt.geom.Point2D.Float SE
-
SW
private static final java.awt.geom.Point2D.Float SW
-
NW
private static final java.awt.geom.Point2D.Float NW
-
CENTER
private static final java.awt.geom.Point2D.Float CENTER
-
POINTS
private static final java.awt.geom.Point2D.Float[] POINTS
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
nextBranch
private static int[] nextBranch(int[] branches)
-
branchCount
private static int branchCount(int[] branches)
-
getName
private static java.lang.String getName(int[] branches)
-
-