Package | Description |
---|---|
squidpony |
Utilities that don't fit elsewhere in SquidLib; mostly text manipulation, compression, and helper code.
|
squidpony.squidgrid |
Tools for working with data on a grid, including LOS and FOV; overlaps with geometry code in squidpony.squidmath .
|
squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
Modifier and Type | Field and Description |
---|---|
IStatefulRNG |
FakeLanguageGen.SentenceForm.rng |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
FakeLanguageGen.word(IStatefulRNG rng,
boolean capitalize,
int approxSyllables,
long... reseeds)
Generate a word from this FakeLanguageGen using the specified StatefulRNG with an approximate number of
syllables, potentially setting the state of rng mid-way through the word to another seed from
reseeds
more than once if the word is long enough. |
Constructor and Description |
---|
SentenceForm(FakeLanguageGen language,
IStatefulRNG rng,
int minWords,
int maxWords,
java.lang.String[] midPunctuation,
java.lang.String[] endPunctuation,
double midPunctuationFrequency,
int maxChars)
Builds a SentenceForm with all fields specified; each value is referenced directly except for
rng ,
which will not change or be directly referenced (a new GWTRNG will be used with the same state value). |
WeightedLetterNamegen(java.lang.String[] names,
int consonantLimit,
IStatefulRNG rng)
Creates the generator by seeding the provided list of names.
|
Modifier and Type | Field and Description |
---|---|
IStatefulRNG |
Spill.rng
The IStatefulRNG used to decide which one of multiple equally-short paths to take.
|
Constructor and Description |
---|
MultiSpill(IStatefulRNG random)
Construct a Spill without a level to actually scan.
|
Spill(char[][] level,
Measurement measurement,
IStatefulRNG random)
Constructor meant to take a char[][] returned by DungeonBoneGen.generate(), or any other
char[][] where '#' means a wall and anything else is a walkable tile.
|
Spill(IStatefulRNG random)
Construct a Spill without a level to actually scan.
|
Modifier and Type | Field and Description |
---|---|
IStatefulRNG |
DungeonGenerator.rng |
IStatefulRNG |
DungeonUtility.rng
The random number generator that will be used for all methods in this class with a random component.
|
IStatefulRNG |
ModularMapGenerator.rng |
IStatefulRNG |
WildMap.rng |
Constructor and Description |
---|
DungeonUtility(IStatefulRNG rng) |
MixedWildMap(WildMap northeast,
WildMap southeast,
WildMap southwest,
WildMap northwest,
IStatefulRNG rng) |
WildMap(int width,
int height,
int biome,
IStatefulRNG rng) |
WildMap(int width,
int height,
int biome,
IStatefulRNG rng,
java.util.ArrayList<java.lang.String> contentTypes) |
WildMap(int width,
int height,
int biome,
IStatefulRNG rng,
java.util.ArrayList<java.lang.String> floorTypes,
java.util.ArrayList<java.lang.String> contentTypes) |
Modifier and Type | Class and Description |
---|---|
class |
DeckRNG
An RNG variant that has 16 possible grades of value it can produce and shuffles them like a deck of cards.
|
class |
DistributedRNG
An implementation of
IRNG that allows specifying a distribution for all random numbers it produces via a
IDistribution.SimpleDistribution value. |
class |
EditRNG
A subclass of StatefulRNG (and thus RNG) that allows customizing many parts of the random number generation.
|
class |
GWTRNG
An IRNG implementation that is meant to provide random numbers very quickly when targeting GWT but also to produce
the same numbers when used on desktop, Android, or other platforms, and that can have its state read as a
StatefulRandomness.
|
class |
MoonwalkRNG
An IRNG implementation that allows the extra functionality of a StatefulRandomness and a SkippingRandomness, as well
as allowing reverse-lookup of the state that produced a long using the static
MoonwalkRNG.inverseNextLong(long) method,
and distance checks between two generated numbers with the static MoonwalkRNG.distance(long, long) method. |
class |
SilkRNG
An IStatefulRNG implementation that is meant to provide random numbers very quickly when targeting GWT but also to
produce the same numbers when used on desktop, Android, or other platforms, and that can have its state read as a
StatefulRandomness; it is thus like
GWTRNG but should perform better on recent desktop JVMs. |
class |
StatefulRNG
A slight variant on RNG that always uses a stateful RandomessSource and so can have its state
set or retrieved using setState() or getState().
|
Copyright © Eben Howard 2012–2022. All rights reserved.