Uses of Interface
squidpony.squidmath.IStatefulRNG
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.
|
-
Uses of IStatefulRNG in squidpony
Fields in squidpony declared as IStatefulRNG Modifier and Type Field Description IStatefulRNG
FakeLanguageGen.SentenceForm. rng
Methods in squidpony with parameters of type IStatefulRNG Modifier and Type Method Description 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 fromreseeds
more than once if the word is long enough.Constructors in squidpony with parameters of type IStatefulRNG Constructor Description SentenceForm(FakeLanguageGen language, IStatefulRNG rng, int minWords, int maxWords, String[] midPunctuation, String[] endPunctuation, double midPunctuationFrequency, int maxChars)
Builds a SentenceForm with all fields specified; each value is referenced directly except forrng
, which will not change or be directly referenced (a new GWTRNG will be used with the same state value).WeightedLetterNamegen(String[] names, int consonantLimit, IStatefulRNG rng)
Creates the generator by seeding the provided list of names. -
Uses of IStatefulRNG in squidpony.squidgrid
Fields in squidpony.squidgrid declared as IStatefulRNG Modifier and Type Field Description IStatefulRNG
Spill. rng
The IStatefulRNG used to decide which one of multiple equally-short paths to take.Constructors in squidpony.squidgrid with parameters of type IStatefulRNG Constructor 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. -
Uses of IStatefulRNG in squidpony.squidgrid.mapping
Fields in squidpony.squidgrid.mapping declared as IStatefulRNG Modifier and Type Field 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
Constructors in squidpony.squidgrid.mapping with parameters of type IStatefulRNG Constructor 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, ArrayList<String> contentTypes)
WildMap(int width, int height, int biome, IStatefulRNG rng, ArrayList<String> floorTypes, ArrayList<String> contentTypes)
-
Uses of IStatefulRNG in squidpony.squidmath
Classes in squidpony.squidmath that implement IStatefulRNG Modifier and Type Class 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 ofIRNG
that allows specifying a distribution for all random numbers it produces via aIDistribution.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 staticMoonwalkRNG.inverseNextLong(long)
method, and distance checks between two generated numbers with the staticMoonwalkRNG.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 likeGWTRNG
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().