public static class FantasyPoliticalMapper.Faction
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.HashSet<java.lang.String> |
blockedBiomes
A HashSet of String keys, where each key is the name of a biome this Faction will never occupy.
|
FakeLanguageGen |
language |
java.lang.String |
name |
java.util.HashSet<java.lang.String> |
preferredBiomes
A HashSet of String keys, where each key is the name of a biome this Faction wants to occupy.
|
int[] |
preferredHeat
An int array of heat codes that this Faction prefers; typically a 6-code scale is used where 0, 1, and 2 are
cold and getting progressively warmer, while 3, 4, and 5 are warm to warmest.
|
int[] |
preferredHeight
An int array of height codes that this Faction prefers; 0, 1, 2, and 3 are all oceans, while 4 is shoreline
or low-lying land and higher numbers (up to 8, inclusive) are used for increasing elevations.
|
int[] |
preferredMoisture
An int array of moisture codes that this Faction prefers; typically a 6-code scale is used where 0, 1, and 2
are dry and getting progressively more precipitation, while 3, 4, and 5 are wet to wettest.
|
java.lang.String |
shortName |
Constructor and Description |
---|
Faction()
Zero-arg constructor that sets the language to a random FakeLanguageGen (using
FakeLanguageGen.randomLanguage(long) ), then generates a name/shortName with that FakeLanguageGen, and
makes the only blocked biome "Ocean". |
Faction(FakeLanguageGen language)
Constructor that sets the language to the specified FakeLanguageGen, then generates a name/shortName with
that FakeLanguageGen, and makes the only blocked biome "Ocean".
|
Faction(FakeLanguageGen language,
java.lang.String name)
Constructor that sets the language to the specified FakeLanguageGen, sets the name and shortName to the
specified name, and makes the only blocked biome "Ocean".
|
Faction(FakeLanguageGen language,
java.lang.String name,
java.lang.String shortName)
Constructor that sets the language to the specified FakeLanguageGen, sets the name to the specified name and
the shortName to the specified shortName, and makes the only blocked biome "Ocean".
|
Faction(FakeLanguageGen language,
java.lang.String name,
java.lang.String shortName,
java.lang.String[] preferredBiomes)
Constructor that sets the language to the specified FakeLanguageGen, sets the name to the specified name and
the shortName to the specified shortName, sets the preferredBiomes to be a Set containing the given Strings
in preferredBiomes, and makes the only blocked biome "Ocean".
|
Faction(FakeLanguageGen language,
java.lang.String name,
java.lang.String shortName,
java.lang.String[] preferredBiomes,
java.lang.String[] blockedBiomes)
Constructor that sets the language to the specified FakeLanguageGen, sets the name to the specified name and
the shortName to the specified shortName, sets the preferredBiomes to be a Set containing the given Strings
in preferredBiomes, and sets the blocked biomes to be a Set containing exactly the given Strings in
blockedBiomes.
|
Faction(FakeLanguageGen language,
java.lang.String name,
java.lang.String shortName,
java.lang.String[] preferredBiomes,
java.lang.String[] blockedBiomes,
int[] preferredHeight)
Constructor that sets the language to the specified FakeLanguageGen, sets the name to the specified name and
the shortName to the specified shortName, sets the preferredBiomes to be a Set containing the given Strings
in preferredBiomes, sets the blocked biomes to be a Set containing exactly the given Strings in
blockedBiomes, and sets the preferred height codes to the ints in preferredHeight (with 4 being sea level and
8 being the highest peaks).
|
Faction(FakeLanguageGen language,
java.lang.String name,
java.lang.String shortName,
java.lang.String[] preferredBiomes,
java.lang.String[] blockedBiomes,
int[] preferredHeight,
int[] preferredHeat)
Constructor that sets the language to the specified FakeLanguageGen, sets the name to the specified name and
the shortName to the specified shortName, sets the preferredBiomes to be a Set containing the given Strings
in preferredBiomes, sets the blocked biomes to be a Set containing exactly the given Strings in
blockedBiomes, sets the preferred height codes to the ints in preferredHeight (with 4 being sea level and 8
being the highest peaks), and sets the preferred heat codes to the ints in preferredHeat (with the exact
values depending on the BiomeMapper, but usually 0-5 range from coldest to hottest).
|
Faction(FakeLanguageGen language,
java.lang.String name,
java.lang.String shortName,
java.lang.String[] preferredBiomes,
java.lang.String[] blockedBiomes,
int[] preferredHeight,
int[] preferredHeat,
int[] preferredMoisture)
Constructor that sets the language to the specified FakeLanguageGen, sets the name to the specified name and
the shortName to the specified shortName, sets the preferredBiomes to be a Set containing the given Strings
in preferredBiomes, sets the blocked biomes to be a Set containing exactly the given Strings in
blockedBiomes, sets the preferred height codes to the ints in preferredHeight (with 4 being sea level and 8
being the highest peaks), sets the preferred heat codes to the ints in preferredHeat (with the exact values
depending on the BiomeMapper, but usually 0-5 range from coldest to hottest), and sets the preferred moisture
codes to the ints in preferredMoisture (withe the exact values depending on the BiomeMapper, but usually 0-5
range from driest to wettest).
|
public java.lang.String name
public java.lang.String shortName
public FakeLanguageGen language
public java.util.HashSet<java.lang.String> preferredBiomes
public java.util.HashSet<java.lang.String> blockedBiomes
public int[] preferredHeight
public int[] preferredHeat
public int[] preferredMoisture
public Faction()
FakeLanguageGen.randomLanguage(long)
), then generates a name/shortName with that FakeLanguageGen, and
makes the only blocked biome "Ocean".public Faction(FakeLanguageGen language)
language
- the FakeLanguageGen to use for generating the name of the Faction and potentially place namespublic Faction(FakeLanguageGen language, java.lang.String name)
language
- the FakeLanguageGen to use for potentially generating place namesname
- the name of the Faction, such as "The United States of America"; will also be the shortNamepublic Faction(FakeLanguageGen language, java.lang.String name, java.lang.String shortName)
language
- the FakeLanguageGen to use for potentially generating place namesname
- the formal name of the Faction, such as "The United States of America"shortName
- the short name of the Faction, such as "America"public Faction(FakeLanguageGen language, java.lang.String name, java.lang.String shortName, java.lang.String[] preferredBiomes)
WorldMapGenerator.BiomeMapper.getBiomeNameTable()
.language
- the FakeLanguageGen to use for potentially generating place namesname
- the formal name of the Faction, such as "The United States of America"shortName
- the short name of the Faction, such as "America"preferredBiomes
- a String array of biome names that this Faction prefers, typically taken from a BiomeMapper's WorldMapGenerator.BiomeMapper.getBiomeNameTable()
valuepublic Faction(FakeLanguageGen language, java.lang.String name, java.lang.String shortName, java.lang.String[] preferredBiomes, java.lang.String[] blockedBiomes)
WorldMapGenerator.BiomeMapper.getBiomeNameTable()
.language
- the FakeLanguageGen to use for potentially generating place namesname
- the formal name of the Faction, such as "The United States of America"shortName
- the short name of the Faction, such as "America"preferredBiomes
- a String array of biome names that this Faction prefers, typically taken from a BiomeMapper's WorldMapGenerator.BiomeMapper.getBiomeNameTable()
valueblockedBiomes
- a String array of biome names that this Faction will never claim; if empty, this Faction may claim oceanspublic Faction(FakeLanguageGen language, java.lang.String name, java.lang.String shortName, java.lang.String[] preferredBiomes, java.lang.String[] blockedBiomes, int[] preferredHeight)
WorldMapGenerator.BiomeMapper.getBiomeNameTable()
.language
- the FakeLanguageGen to use for potentially generating place namesname
- the formal name of the Faction, such as "The United States of America"shortName
- the short name of the Faction, such as "America"preferredBiomes
- a String array of biome names that this Faction prefers, typically taken from a BiomeMapper's WorldMapGenerator.BiomeMapper.getBiomeNameTable()
valueblockedBiomes
- a String array of biome names that this Faction will never claim; if empty, this Faction may claim oceanspreferredHeight
- an int array of height codes this Faction prefers to claim; 4 is sea level and 8 is highestpublic Faction(FakeLanguageGen language, java.lang.String name, java.lang.String shortName, java.lang.String[] preferredBiomes, java.lang.String[] blockedBiomes, int[] preferredHeight, int[] preferredHeat)
WorldMapGenerator.BiomeMapper.getBiomeNameTable()
.language
- the FakeLanguageGen to use for potentially generating place namesname
- the formal name of the Faction, such as "The United States of America"shortName
- the short name of the Faction, such as "America"preferredBiomes
- a String array of biome names that this Faction prefers, typically taken from a BiomeMapper's WorldMapGenerator.BiomeMapper.getBiomeNameTable()
valueblockedBiomes
- a String array of biome names that this Faction will never claim; if empty, this Faction may claim oceanspreferredHeight
- an int array of height codes this Faction prefers to claim; 4 is sea level and 8 is highestpreferredHeat
- an int array of heat codes this Faction prefers to claim; typically 0 is coldest and 5 is hottestpublic Faction(FakeLanguageGen language, java.lang.String name, java.lang.String shortName, java.lang.String[] preferredBiomes, java.lang.String[] blockedBiomes, int[] preferredHeight, int[] preferredHeat, int[] preferredMoisture)
WorldMapGenerator.BiomeMapper.getBiomeNameTable()
.language
- the FakeLanguageGen to use for potentially generating place namesname
- the formal name of the Faction, such as "The United States of America"shortName
- the short name of the Faction, such as "America"preferredBiomes
- a String array of biome names that this Faction prefers, typically taken from a BiomeMapper's WorldMapGenerator.BiomeMapper.getBiomeNameTable()
valueblockedBiomes
- a String array of biome names that this Faction will never claim; if empty, this Faction may claim oceanspreferredHeight
- an int array of height codes this Faction prefers to claim; 4 is sea level and 8 is highestpreferredHeat
- an int array of heat codes this Faction prefers to claim; typically 0 is coldest and 5 is hottestpreferredMoisture
- an int array of moisture codes this Faction prefers to claim; typically 0 is driest and 5 is wettestCopyright © Eben Howard 2012–2022. All rights reserved.