@Beta public class WeightedLetterNamegen extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
COMMON_USA_FEMALE_NAMES |
static String[] |
COMMON_USA_LAST_NAMES |
static String[] |
COMMON_USA_MALE_NAMES |
static String[] |
LOVECRAFT_MYTHOS_NAMES |
static String[] |
STAR_WARS_STYLE_NAMES |
static String[] |
VIKING_STYLE_NAMES |
Constructor and Description |
---|
WeightedLetterNamegen(String[] names)
Creates the generator by seeding the provided list of names.
|
WeightedLetterNamegen(String[] names,
int consonantLimit)
Creates the generator by seeding the provided list of names.
|
WeightedLetterNamegen(String[] names,
int consonantLimit,
RNG rng)
Creates the generator by seeding the provided list of names.
|
public static final String[] VIKING_STYLE_NAMES
public static final String[] STAR_WARS_STYLE_NAMES
public static final String[] COMMON_USA_MALE_NAMES
public static final String[] COMMON_USA_FEMALE_NAMES
public static final String[] COMMON_USA_LAST_NAMES
public static final String[] LOVECRAFT_MYTHOS_NAMES
public WeightedLetterNamegen(String[] names)
names
- an array of Strings that are typical names to be emulatedpublic WeightedLetterNamegen(String[] names, int consonantLimit)
names
- an array of Strings that are typical names to be emulatedconsonantLimit
- the maximum allowed consonants in a rowpublic WeightedLetterNamegen(String[] names, int consonantLimit, RNG rng)
names
- an array of Strings that are typical names to be emulatedconsonantLimit
- the maximum allowed consonants in a rowrng
- the source of randomness to be usedCopyright © 2012–2016. All rights reserved.