|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdd.hurricane.LanduseManager
Constructor Summary | |
LanduseManager()
|
Method Summary | |
static int |
convert(GameRoot root,
java.util.Random rng,
java.util.Collection sites,
java.lang.String luFrom,
java.lang.String luTo,
double prob)
Converts LU (on the landuse layer of the map, in the locations specified by sites) from LU "luFrom" to LU "luTo") with the specified probability. |
static int |
convert(GameRoot root,
java.util.Random rng,
java.lang.String luFrom,
java.lang.String luTo,
double prob)
Converts LU everywhere on the map from LU "luFrom" to LU "luTo" with the specified probability |
static boolean |
isFull(Map map,
MapCell cell,
java.lang.String lu)
Indicates whether a cell has room in its luArray for a new landuse. |
static void |
rebuild(GameRoot root,
java.util.Random rng,
java.lang.String oldLayer,
double prob)
Converts "destroyed" LU everywhere on the map back to whatever value that LU had on the "oldLayer" layer with specified probability. |
static void |
rebuild(GameRoot root,
java.lang.String oldLayer)
Converts "destroyed" LU everywhere on the map back to whatever value that LU had on the "oldLayer" layer. |
static void |
rebuild(GameRoot root,
java.lang.String oldLayer,
java.util.Collection sites)
Converts "destroyed" LU in the specified sites back to whatever value that LU had on the "oldLayer" layer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LanduseManager()
Method Detail |
public static void rebuild(GameRoot root, java.lang.String oldLayer)
oldLayer
- the name of the Layer to find the restored state on.public static void rebuild(GameRoot root, java.lang.String oldLayer, java.util.Collection sites)
oldLayer
- the name of the Layer to find the restored state on.sites
- a Collection of MapCells.public static void rebuild(GameRoot root, java.util.Random rng, java.lang.String oldLayer, double prob)
oldLayer
- the name of the Layer to find the restored state on.public static int convert(GameRoot root, java.util.Random rng, java.lang.String luFrom, java.lang.String luTo, double prob)
prob
- probability of LU conversion
public static int convert(GameRoot root, java.util.Random rng, java.util.Collection sites, java.lang.String luFrom, java.lang.String luTo, double prob)
sites
- a Collection of MapCells.prob
- probability of LU conversion.
public static boolean isFull(Map map, MapCell cell, java.lang.String lu)
map
- the mapcell
- map location to be checkedlu
- landuse to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |