See: Description
Interface | Description |
---|---|
RandomnessSource |
This interface defines the interactions required of a random number
generator.
|
StatefulRandomness |
A simple interface for RandomnessSources that have the additional property of a state that can be re-set.
|
Class | Description |
---|---|
AStarSearch |
Performs A* search.
|
Bresenham |
Provides a means to generate Bresenham lines in 2D and 3D.
|
ChaosRNG |
An RNG that cannot be seeded and should be fairly hard to predict what it will return next.
|
CombinationGenerator<T> |
Combination generator for generating all combinations of a given size from
the specified set of elements.
|
Coord |
A 2D coordinate.
|
Coord3D |
Generic three dimensional coordinate class.
|
CoordDouble |
Coord using double values for x and y instead of int.
|
CoordPacker |
Provides static methods to encode Coords as single primitive ints in various ways, hence the namesake, but also
provides advanced methods to encode 2D arrays of various sorts produced by SquidLib in extremely memory-efficient
representations, and decode those representations to various types of 2D array on-demand.
|
CrossHash |
Simple hashing functions that we can rely on staying the same cross-platform.
|
DDALine |
A fixed-point line-drawing algorithm that should have good performance; may be useful for LOS.
|
DeckRNG |
An RNG variant that has 16 possible grades of value it can produce and shuffles them like a deck of cards.
|
DharmaRNG |
An alteration to a RandomnessSource that attempts to produce values that are perceived as fair to an imperfect user.
|
Dice |
Class for emulating various traditional RPG-style dice rolls.
|
EditRNG |
A subclass of StatefulRNG (and thus RNG) that allows customizing many parts of the random number generation.
|
Elias |
Contains methods to draw antialiased lines based on floating point
coordinates.
|
GapShuffler<T> |
Meant to take a fixed-size set of items and produce a shuffled stream of them such that an element is never chosen in
quick succession; that is, there should always be a gap between the same item's occurrences.
|
LightRNG |
This is a SplittableRandom-style generator, meant to have a tiny state
that permits storing many different generators with low overhead.
|
LongPeriodRNG |
An RNG that has a drastically longer period than the other generators in SquidLib, other than MersenneTwister,
without sacrificing speed or HTML target compatibility.
|
MathExtras |
Mathematical operations not provided by
java.lang.Math . |
MersenneTwister |
Customized extension of Random to allow for common roguelike operations.
|
NeuralParticle |
Creates a field of particles that tend to form a neuron image type
distribution.
|
OrthoLine |
A simple line-drawing algorithm that only takes orthogonal steps; may be useful for LOS in games that use Manhattan
distances for measurements.
|
PerlinNoise |
This is Ken Perlin's third revision of his noise function.
|
PermutationGenerator<T> |
Permutation generator for generating all permutations for all sets up to
20 elements in size.
|
PermutedRNG |
This is a RandomnessSource in the PCG-Random family.
|
PlannedAStar |
(SLOW) Modified version of AStarSearch that does some pre-planning and uses that to speed up pathfinding later on.
|
PoissonDisk |
This provides a Uniform Poisson Disk Sampling technique that can be used to generate random points that have a
uniform minimum distance between each other.
|
ProbabilityTable<T> |
A generic method of holding a probability table to determine weighted random
outcomes.
|
RandomBias |
A class that wraps an RNG and allows different String keys to be associated with biases toward low or high results
when a method is called that gets a number from the wrapped RNG.
|
Region |
Represents an area or series of areas as one logical unit, and allows iterating over or altering that unit.
|
RegionMap<V> |
An unordered map of regions (specifically, packed data from CoordPacker or something that uses it, like FOVCache or
ZOI, as short arrays) to values of a generic type.
|
RegionMap.Entries<V> | |
RegionMap.Entry<V> | |
RegionMap.Keys | |
RegionMap.Values<V> | |
RNG |
A wrapper class for working with random number generators in a more friendly
way.
|
RNG.CustomRandom |
A subclass of java.util.Random that uses a RandomnessSource supplied by the user instead of the default.
|
ShortSet |
An unordered set that uses short keys.
|
ShortSet.ShortSetIterator | |
ShortVLA |
A resizable, ordered or unordered short variable-length array.
|
SobolQRNG |
Implementation of a Sobol sequence as a Quasi-Random Number Generator.
|
SquidID |
A UUID-like identifier; not compatible with Java's standard UUID but will work on GWT.
|
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().
|
WobblyLine |
A drunkard's-walk-like algorithm for line drawing "wobbly" paths.
|
XoRoRNG |
A port of Blackman and Vigna's xoroshiro 128+ generator; should be very fast and produce high-quality output.
|
XorRNG |
A port of Sebastiano Vigna's XorShift 128+ generator.
|
Enum | Description |
---|---|
AStarSearch.SearchType |
The type of heuristic to use.
|
Copyright © 2012–2016. All rights reserved.