Serialized Form
-
Package squidpony
-
Class squidpony.ColoredStringList extends ArrayList<IColoredString<T>> implements Serializable
- serialVersionUID:
- -5111205714079762803L
-
Class squidpony.FakeLanguageGen extends Object implements Serializable
- serialVersionUID:
- -2396642435461186352L
-
Serialized Fields
-
clean
boolean clean
-
closingConsonants
String[] closingConsonants
-
closingSyllables
String[] closingSyllables
-
midConsonants
String[] midConsonants
-
midVowels
String[] midVowels
-
modifiers
ArrayList<FakeLanguageGen.Modifier> modifiers
-
name
String name
-
openingConsonants
String[] openingConsonants
-
openingVowels
String[] openingVowels
-
sanityChecks
regexodus.Pattern[] sanityChecks
-
summary
String summary
-
syllableEndFrequency
double syllableEndFrequency
-
syllableFrequencies
double[] syllableFrequencies
-
totalSyllableFrequency
double totalSyllableFrequency
-
vowelEndFrequency
double vowelEndFrequency
-
vowelSplitFrequency
double vowelSplitFrequency
-
vowelSplitters
String[] vowelSplitters
-
vowelStartFrequency
double vowelStartFrequency
-
-
Class squidpony.FakeLanguageGen.Alteration extends Object implements Serializable
- serialVersionUID:
- -2138854697837563188L
-
Serialized Fields
-
chance
double chance
-
replacement
String replacement
-
replacer
regexodus.Replacer replacer
-
-
Class squidpony.FakeLanguageGen.Modifier extends Object implements Serializable
- serialVersionUID:
- 1734863678490422371L
-
Serialized Fields
-
alterations
FakeLanguageGen.Alteration[] alterations
-
-
Class squidpony.FakeLanguageGen.SentenceForm extends Object implements Serializable
- serialVersionUID:
- 1246527948419533147L
-
Serialized Fields
-
endPunctuation
String[] endPunctuation
-
language
FakeLanguageGen language
-
maxChars
int maxChars
-
maxWords
int maxWords
-
midPunctuation
String[] midPunctuation
-
midPunctuationFrequency
double midPunctuationFrequency
-
minWords
int minWords
-
rng
IStatefulRNG rng
-
-
Class squidpony.IColorCenter.Skeleton.GranularHasher extends Object implements Serializable
-
Serialized Fields
-
feed
int[] feed
-
-
-
Class squidpony.MarkovChar extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
chars
char[] chars
All chars (case-sensitive and only counting chars that are letters in Unicode) that this encountered during the latest call toMarkovChar.analyze(CharSequence)
. Will be null ifMarkovChar.analyze(CharSequence)
was never called. -
pairs
IntIntOrderedMap pairs
Map of all pairs of chars encountered to the position in the order they were encountered. Pairs are stored using their 16-bitMarkovChar.chars
indices placed into the most-significant bits for the first word and the least-significant bits for the second word. The size of this IntIntOrderedMap is likely to be larger than the char arrayMarkovChar.chars
, but should be equal toprocessed.length
. Will be null ifMarkovChar.analyze(CharSequence)
was never called. -
processed
int[][] processed
Complicated data that mixes probabilities of chars using their indices inMarkovChar.chars
and the indices of char pairs inMarkovChar.pairs
, generated during the latest call toMarkovChar.analyze(CharSequence)
. This is a jagged 2D array. Will be null ifMarkovChar.analyze(CharSequence)
was never called.
-
-
Class squidpony.MarkovObject extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
body
Arrangement<T> body
All unique T items that this encountered during the latest call toMarkovObject.analyze(Iterable)
. Will be null if analyze() was never called. -
processed
ArrayList<IntVLA> processed
Complicated data that mixes probabilities and the indices of items inMarkovObject.body
, generated during the latest call toMarkovObject.analyze(Iterable)
. Will be null if analyze() was never called. -
raw
ArrayList<IntVLA> raw
-
-
Class squidpony.MarkovText extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
pairs
IntIntOrderedMap pairs
Map of all pairs of words encountered to the position in the order they were encountered. Pairs are stored using their 16-bitMarkovText.words
indices placed into the most-significant bits for the first word and the least-significant bits for the second word. The size of this IntIntOrderedMap is likely to be larger than the String arrayMarkovText.words
, but should be equal toprocessed.length
. Will be null ifMarkovText.analyze(CharSequence)
was never called. -
processed
int[][] processed
Complicated data that mixes probabilities of words using their indices inMarkovText.words
and the indices of word pairs inMarkovText.pairs
, generated during the latest call toMarkovText.analyze(CharSequence)
. This is a jagged 2D array. Will be null ifMarkovText.analyze(CharSequence)
was never called. -
words
String[] words
All words (case-sensitive and counting some punctuation as part of words) that this encountered during the latest call toMarkovText.analyze(CharSequence)
. Will be null ifMarkovText.analyze(CharSequence)
was never called.
-
-
Class squidpony.MarkovTextLimited extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
processed
int[][] processed
Complicated data that mixes probabilities and the indices of words inMarkovTextLimited.words
, generated during the latest call toMarkovTextLimited.analyze(CharSequence)
. This is a jagged 2D array. Will be null if analyze() was never called. -
words
String[] words
All words (case-sensitive and counting some punctuation as part of words) that this encountered during the latest call toMarkovTextLimited.analyze(CharSequence)
. Will be null if analyze() was never called.
-
-
Class squidpony.NaturalLanguageCipher extends Object implements Serializable
- serialVersionUID:
- 1287835632461186341L
-
Serialized Fields
-
additionalPrefixChecks
regexodus.Pattern[] additionalPrefixChecks
-
additionalSuffixChecks
regexodus.Pattern[] additionalSuffixChecks
-
adjectivelySuffix
String adjectivelySuffix
-
adjectivestSuffix
String adjectivestSuffix
-
antiverbPrefix
String antiverbPrefix
-
cacheLevel
int cacheLevel
The degree of vocabulary to cache to speed up future searches at the expense of memory usage.- 2 will cache source words to generated words in table, and generated to source in reverse.
- 1 will cache source words to generated words in table, and won't write to reverse.
- 0 won't write to table or reverse.
-
disnounPrefix
String disnounPrefix
-
ennounPrefix
String ennounPrefix
-
language
FakeLanguageGen language
The FakeLanguageGen this will use to construct words; normally one of the static fields in FakeLanguageGen, a FakeLanguageGen produced by using theFakeLanguageGen.mixAll(Object...)
method of two or more of them, or a random FakeLanguageGen produced byFakeLanguageGen.randomLanguage(long)
. Manually constructing FakeLanguageGen objects isn't easy, and if you decide to do that it's recommended you look at SquidLib's source to see how the existing calls to constructors work. -
markupMatcher
regexodus.Matcher markupMatcher
-
nounenSuffix
String nounenSuffix
-
nounicSuffix
String nounicSuffix
-
nounismSuffix
String nounismSuffix
-
nounistSuffix
String nounistSuffix
-
nouniveSuffix
String nouniveSuffix
-
nounySuffix
String nounySuffix
-
pluralSuffix
String pluralSuffix
-
postverbPrefix
String postverbPrefix
-
preverbPrefix
String preverbPrefix
-
proverbPrefix
String proverbPrefix
-
reverbPrefix
String reverbPrefix
-
reverse
HashMap<String,String> reverse
The mapping of lower-case word keys to lower-case word values, where keys are in the source language and values are generated by language. -
rng
RNG rng
-
rs
squidpony.NaturalLanguageCipher.SemiRandom rs
-
shift
long shift
-
table
HashMap<String,String> table
The mapping of lower-case word keys to lower-case word values, where keys are in the source language and values are generated by language. -
verbationSuffix
String verbationSuffix
-
verbedSuffix
String verbedSuffix
-
verberSuffix
String verberSuffix
-
verbingSuffix
String verbingSuffix
-
verbmentSuffix
String verbmentSuffix
-
-
Class squidpony.ObText extends ArrayList<ObText.ObTextEntry> implements Serializable
- serialVersionUID:
- 7L
-
Class squidpony.ObText.ContentMatcher extends regexodus.Matcher implements Serializable
-
Class squidpony.ObText.ObTextEntry extends Object implements Serializable
- serialVersionUID:
- 7L
-
Serialized Fields
-
associated
ArrayList<ObText.ObTextEntry> associated
-
primary
String primary
-
-
Class squidpony.Thesaurus extends Object implements Serializable
- serialVersionUID:
- 3387639905758074640L
-
Serialized Fields
-
alterations
ArrayList<FakeLanguageGen.Alteration> alterations
-
defaultLanguage
FakeLanguageGen defaultLanguage
-
flowerTermShuffler
GapShuffler<String> flowerTermShuffler
-
fruitTermShuffler
GapShuffler<String> fruitTermShuffler
-
mappings
OrderedMap<CharSequence,GapShuffler<String>> mappings
-
nutTermShuffler
GapShuffler<String> nutTermShuffler
-
plantTermShuffler
GapShuffler<String> plantTermShuffler
-
potionTermShuffler
GapShuffler<String> potionTermShuffler
-
rng
SilkRNG rng
-
-
-
Package squidpony.squidai
-
Class squidpony.squidai.BeamAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.BlastAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.BurstAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.CloudAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.ConeAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.CustomDijkstraMap extends Object implements Serializable
- serialVersionUID:
- -2456306898212944440L
-
Serialized Fields
-
adjacency
Adjacency adjacency
The main factor in determining the "Custom" behavior of CustomDijkstraMap; using an Adjacency implementation likeAdjacency.BasicAdjacency
should cause this class to mimicDijkstraMap
, but usingAdjacency.RotationAdjacency
will be very different. -
cachedFearSources
long cachedFearSources
-
cachedFleeMap
double[] cachedFleeMap
-
cachedImpassable
long cachedImpassable
-
cachedLongerPaths
double cachedLongerPaths
-
cachedSize
int cachedSize
-
costMap
int[] costMap
This stores the type of each cell for the purposes of determining its cost to enter; in most cases this type is the char used to represent the cell, but any int can be used if you need more information. An int from costMap is looked up inAdjacency.costRules
to get the actual cost as a double; this collection should almost always start with a reasonable default value for when the int key is not present. It's common to simply assign a char like '#' or '.' to an element in costMap. -
fresh
IntVLA fresh
-
frustration
int frustration
-
goals
IntVLA goals
-
gradientMap
double[] gradientMap
The frequently-changing values that are often the point of using this class; goals will have a value of 0, and any cells that can have a character reach a goal in n steps will have a value of n. Cells that cannot be entered because they are solid will have a very high value equal to the WALL constant in this class, and cells that cannot be entered because they cannot reach a goal will have a different very high value equal to the DARK constant in this class. -
height
int height
Height of the map. Exciting stuff. Don't change this, instead call initialize(). -
heuristics
double[] heuristics
-
initialized
boolean initialized
-
mappedCount
int mappedCount
-
neighbors
int[][][] neighbors
The neighbors map, as produced by adjacency; can be modified by passing neighbors as the first argument toAdjacency.portal(int[][][], int, int, boolean)
if you want to create portals between non-adjacent cells. -
path
IntVLA path
The latest path that was obtained by calling findPath(). It will not contain the value passed as a starting cell; only steps that require movement will be included, and so if the path has not been found or a valid path toward a goal is impossible, this ArrayList will be empty. -
physicalMap
double[] physicalMap
Stores which parts of the map are accessible and which are not. Should not be changed unless the actual physical terrain has changed. You should call initialize() with a new map instead of changing this directly. -
reuse
int[] reuse
-
rng
IRNG rng
The RNG used to decide which one of multiple equally-short paths to take. -
width
int width
Width of the map. Exciting stuff. Don't change this, instead call initialize().
-
-
Class squidpony.squidai.DijkstraMap extends Object implements Serializable
- serialVersionUID:
- -2456306898212944441L
-
Serialized Fields
-
blockingRequirement
int blockingRequirement
-
cachedFearSources
Coord[] cachedFearSources
-
cachedFleeMap
double[][] cachedFleeMap
-
cachedImpassable
HashSet<Coord> cachedImpassable
-
cachedLongerPaths
double cachedLongerPaths
-
cachedSize
int cachedSize
-
costMap
double[][] costMap
This stores the entry cost multipliers for each cell; that is, a value of 1.0 is a normal, unmodified cell, but a value of 0.5 can be entered easily (two cells of its cost can be entered for the cost of one 1.0 cell), and a value of 2.0 can only be entered with difficulty (one cell of its cost can be entered for the cost of two 1.0 cells). Unlike the measurement field, this does affect the length of paths, as well as the numbers assigned to gradientMap during a scan. The values for walls are identical to the value used by gradientMap, that is, this class' WALL static final field. Floors, however, are never given FLOOR as a value, and default to 1.0 . -
cutShort
boolean cutShort
-
dirs
Direction[] dirs
-
fresh
IntVLA fresh
Goals that pathfinding will seek out. The Double value should almost always be 0.0 , the same as the static GOAL constant in this class. -
friends
HashSet<Coord> friends
-
frustration
int frustration
-
goals
IntVLA goals
Goals that pathfinding will seek out. The Double value should almost always be 0.0 , the same as the static GOAL constant in this class. -
gradientMap
double[][] gradientMap
The frequently-changing values that are often the point of using this class; goals will have a value of 0, and any cells that can have a character reach a goal in n steps will have a value of n. Cells that cannot be entered because they are solid will have a very high value equal to the WALL constant in this class, and cells that cannot be entered because they cannot reach a goal will have a different very high value equal to the DARK constant in this class. -
height
int height
Height of the map. Exciting stuff. Don't change this, instead call initialize(). -
impassable2
HashSet<Coord> impassable2
-
initialized
boolean initialized
-
mappedCount
int mappedCount
-
measurement
Measurement measurement
This affects how distance is measured on diagonal directions vs. orthogonal directions. MANHATTAN should form a diamond shape on a featureless map, while CHEBYSHEV and EUCLIDEAN will form a square. EUCLIDEAN does not affect the length of paths, though it will change the DijkstraMap's gradientMap to have many non-integer values, and that in turn will make paths this finds much more realistic and smooth (favoring orthogonal directions unless a diagonal one is a better option). -
path
ArrayList<Coord> path
The latest path that was obtained by calling findPath(). It will not contain the value passed as a starting cell; only steps that require movement will be included, and so if the path has not been found or a valid path toward a goal is impossible, this ArrayList will be empty. -
physicalMap
double[][] physicalMap
Stores which parts of the map are accessible and which are not. Should not be changed unless the actual physical terrain has changed. You should call initialize() with a new map instead of changing this directly. -
rng
IRNG rng
The IRNG used to decide which one of multiple equally-short paths to take. You may want to give this aGWTRNG
if you may target web browsers with GWT, or aRNG
orStatefulRNG
otherwise. -
standardCosts
boolean standardCosts
-
targetMap
Coord[][] targetMap
-
tempSet
HashSet<Coord> tempSet
-
width
int width
Width of the map. Exciting stuff. Don't change this, instead call initialize().
-
-
Class squidpony.squidai.GreasedZOI extends Object implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
completed
boolean completed
-
dijkstra
DijkstraMap dijkstra
-
groups
GreasedRegion[] groups
-
influences
Coord[][] influences
-
radius
Radius radius
-
-
Class squidpony.squidai.LineAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.PointAOE extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.Reach extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
limit
AimLimit limit
An AimLimit enum that may be used to determine limitations to targeting cells; defaults to FREE (no limits other than those from distance), but can also be set to ORTHOGONAL (rook move in chess), DIAGONAL (bishop move in chess), EIGHT_WAY (queen or king move in chess), or null (which usually) -
maxDistance
int maxDistance
The maximum distance in cells that this Reach can target. Distance will be measured using themetric
field. -
metric
Radius metric
Determines how distance will be measured. SQUARE or CUBE correspond to 8-way or Chebyshev movement, DIAMOND or OCTAHEDRON correspond to 4-way or Manhattan movement, and CIRCLE or SPHERE correspond to Euclidean movement. -
minDistance
int minDistance
The minimum distance in cells that this Reach can target. Distance will be measured using themetric
field.
-
-
Class squidpony.squidai.Technique extends Object implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidai.Threat extends Object implements Serializable
- serialVersionUID:
- 1L
-
Class squidpony.squidai.ZOI extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
completed
boolean completed
-
dijkstra
DijkstraMap dijkstra
-
influences
Coord[][] influences
-
map
char[][] map
-
packedGroups
short[][] packedGroups
-
radius
Radius radius
-
-
-
Package squidpony.squidai.graph
-
Class squidpony.squidai.graph.Connection extends Edge<V> implements Serializable
- serialVersionUID:
- 1L
-
Class squidpony.squidai.graph.Connection.DirectedConnection extends Connection<V> implements Serializable
-
Class squidpony.squidai.graph.Connection.UndirectedConnection extends Connection<V> implements Serializable
-
Class squidpony.squidai.graph.CostlyGraph extends DirectedGraph<Coord> implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
height
int height
-
width
int width
-
-
Class squidpony.squidai.graph.DefaultGraph extends UndirectedGraph<Coord> implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
height
int height
-
width
int width
-
-
Class squidpony.squidai.graph.DirectedGraph extends Graph<V> implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
algorithms
DirectedGraphAlgorithms<V> algorithms
-
-
Class squidpony.squidai.graph.Edge extends Object implements Serializable
-
Class squidpony.squidai.graph.Node extends BinaryHeap.Node implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
distance
double distance
Internal; confirmed distance so far to get to this Node from the start. -
estimate
double estimate
Internal; estimated distance to get from this Node to the goal. -
graph
Graph<V> graph
-
i
int i
Internal; a utility field used to store depth in some algorithms. -
idHash
int idHash
-
lastRunID
int lastRunID
Internal; a utility field used to distinguish which algorithm last used this Node. -
neighbors
HashMap<Node<V>,Connection<V>> neighbors
-
object
V object
-
outEdges
ArrayList<Connection<V>> outEdges
-
prev
Node<V> prev
Internal; a reference to the previous Node in a BinaryHeap. -
seen
boolean seen
Internal; tracking bit for whether this Node has been checked during the current algorithm. -
visited
boolean visited
Internal; tracking bit for whether this Node has already been visited during the current algorithm.
-
-
Class squidpony.squidai.graph.UndirectedGraph extends Graph<V> implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
algorithms
UndirectedGraphAlgorithms<V> algorithms
-
-
-
Package squidpony.squidgrid
-
Class squidpony.squidgrid.Adjacency extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
blockingRule
int blockingRule
If you want obstacles present in orthogonal cells to prevent pathfinding along the diagonal between them, this can be used to make single-cell diagonal walls non-viable to move through, or even to prevent diagonal movement if any one obstacle is orthogonally adjacent to both the start and target cell of a diagonal move.
If this is 0, as a special case no orthogonal obstacles will block diagonal moves.
If this is 1, having one orthogonal obstacle adjacent to both the current cell and the cell the pathfinder is trying to diagonally enter will block diagonal moves. This generally blocks movement around corners, the "hard corner" rule used in some games.
If this is 2, having two orthogonal obstacles adjacent to both the current cell and the cell the pathfinder is trying to diagonally enter will block diagonal moves. As an example, if there is a wall to the north and a wall to the east, then the pathfinder won't be able to move northeast even if there is a floor there.
A similar effect can be achieved with a little more control by using thin walls, where the presence of a "thin corner" can block diagonal movement through that corner, or the absence of a blocking wall in a corner space allows movement through it. -
costRules
IntDoubleOrderedMap costRules
Used in place of a double[][] of costs in CustomDijkstraMap; allows you to set the costs to enter tiles (viaAdjacency.addCostRule(char, double)
orAdjacency.addCostRule(char, double, boolean)
if the map has rotations). A cost of 1.0 is normal for most implementations; higher costs make a movement harder to perform and take more time if the game uses that mechanic, while lower costs (which should always be greater than 0.0) make a move easier to perform. Most games can do perfectly well with just 1.0 and 2.0, if they use this at all, plus possibly a very high value for impossible moves (say, 9999.0 for something like a submarine trying to enter suburbia).
You should not alter costRules in most cases except through the Adjacency's addCostRule method; most Adjacency implementations will set a flag if any cost is set through addCostRule that is different from the default, and this flag determines early-stop behavior in pathfinding (it can be checked withAdjacency.hasStandardCost()
, but cannot be set directly).
Adjacency implementations are expected to set a reasonable default value for when missing keys are queried, usingIntDoubleOrderedMap.defaultReturnValue(double)
; there may be a reason for user code to call this as well. -
depths
int depths
Can be changed if the map changes; you should get the neighbors from neighborMaps() again after changing this. -
directions
Direction[] directions
The array of all possible directions this allows, regardless of cost. -
height
int height
Can be changed if the map changes; you should get the neighbors from neighborMaps() again after changing this. -
invertAdjacent
int[] invertAdjacent
-
maxAdjacent
int maxAdjacent
The maximum number of states that can be considered adjacent; when rotations are present and have a cost this is almost always 3 (move forward, turn left, turn right), and in most other cases this is 4 (when using Manhattan distance) or 8 (for other distance metrics). -
measurement
Measurement measurement
This affects how distance is measured on diagonal directions vs. orthogonal directions. MANHATTAN should form a diamond shape on a featureless map, while CHEBYSHEV and EUCLIDEAN will form a square. EUCLIDEAN does not affect the length of paths, though it will change the DijkstraMap's gradientMap to have many non-integer values, and that in turn will make paths this finds much more realistic and smooth (favoring orthogonal directions unless a diagonal one is a better option). -
rotations
int rotations
Can be changed if the map changes; you should get the neighbors from neighborMaps() again after changing this. -
standardCost
boolean standardCost
-
twoStepRule
boolean twoStepRule
Only needed for thin-wall maps; this requires two steps in the same direction to both be valid moves for that direction to be considered, and always moves the pathfinder two steps, typically to cells with even numbers for both x and y (where odd-number-position cells are used for edges or corners between cells, and can still be obstacles or possible to pass through, but not stay on). -
width
int width
Can be changed if the map changes; you should get the neighbors from neighborMaps() again after changing this.
-
-
Class squidpony.squidgrid.Adjacency.BasicAdjacency extends Adjacency implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidgrid.Adjacency.RotationAdjacency extends Adjacency implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
shift
int shift
-
-
Class squidpony.squidgrid.Adjacency.ThinWallAdjacency extends Adjacency.BasicAdjacency implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidgrid.FOV extends Object implements Serializable
- serialVersionUID:
- 3258723684733275798L
-
Serialized Fields
-
light
double[][] light
Data allocated in the previous calls to the public API, if any. Used to save allocations when multiple calls are done on the same instance. -
nearLight
GreasedRegion nearLight
Data allocated in the previous calls to the public API, if any. Used to save allocations when multiple calls are done on the same instance. -
type
int type
-
-
Class squidpony.squidgrid.LOS extends Object implements Serializable
- serialVersionUID:
- 1L
-
Class squidpony.squidgrid.Spill extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
filled
int filled
The amount of cells filled by this Spill, which may be less than the volume passed to start() if the boundaries are reached on all sides and the Spill has no more room to fill. -
fresh
OrderedSet<Coord> fresh
-
height
int height
Height of the map. Exciting stuff. Don't change this, instead call initialize(). -
initialized
boolean initialized
-
measurement
Measurement measurement
This affects how distance is measured on diagonal directions vs. orthogonal directions. MANHATTAN should form a diamond shape on a featureless map, while CHEBYSHEV and EUCLIDEAN will form a square. If you only call Spill.start() once, you should strongly prefer MANHATTAN, even if the rest of the game uses another measurement, because CHEBYSHEV and EUCLIDEAN can produce odd, gap-filled flood-fills. Any case where you have too many gaps can be corrected to varying extent by calling start() more than once with slowly increasing values. Because start() will extend from the existing area of the Spill, holes are likely to be filled after a few calls, but if the last call to start() tries to fill too many more cells than the previous one, it can cause holes on the periphery of the Spill area. -
physicalMap
boolean[][] physicalMap
Stores which parts of the map are accessible (with a value of true) and which are not (with a value of false, including both walls and unreachable sections of the map). Should not be changed unless the actual physical terrain has changed. You should call initialize() with a new map instead of changing this directly. -
rng
IStatefulRNG rng
The IStatefulRNG used to decide which one of multiple equally-short paths to take. Typically, this is aGWTRNG
orStatefulRNG
. -
spillMap
boolean[][] spillMap
The cells that are filled by the Spill when it reaches its volume or limits will be true; others will be false. -
spreadPattern
ArrayList<Coord> spreadPattern
The list of points that the Spill will randomly fill, starting with what is passed to start(), in order of when they are reached. -
width
int width
Width of the map. Exciting stuff. Don't change this, instead call initialize().
-
-
-
Package squidpony.squidgrid.mapping
-
Class squidpony.squidgrid.mapping.FantasyPoliticalMapper extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
atlas
OrderedMap<Character,FantasyPoliticalMapper.Faction> atlas
Maps chars, as found in the returned array from generate(), to Strings that store the full name of nations. -
biomeMapper
WorldMapGenerator.BiomeMapper biomeMapper
-
height
int height
-
name
String name
-
politicalMap
char[][] politicalMap
-
rng
StatefulRNG rng
-
width
int width
-
wmg
WorldMapGenerator wmg
-
zoomedMap
char[][] zoomedMap
-
-
Class squidpony.squidgrid.mapping.FantasyPoliticalMapper.Faction extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
blockedBiomes
HashSet<String> blockedBiomes
A HashSet of String keys, where each key is the name of a biome this Faction will never occupy. May be null if all biomes are available, but unless this is specified in a constructor, the default will be to consider "Ocean" blocked. -
language
FakeLanguageGen language
-
name
String name
-
preferredBiomes
HashSet<String> preferredBiomes
A HashSet of String keys, where each key is the name of a biome this Faction wants to occupy. May be null if no biomes are specifically preferred. -
preferredHeat
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. -
preferredHeight
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. -
preferredMoisture
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. -
shortName
String shortName
-
-
Class squidpony.squidgrid.mapping.MapModule extends Object implements Serializable
- serialVersionUID:
- -1273406898212937188L
-
Serialized Fields
-
bottomDoors
ArrayList<Coord> bottomDoors
-
category
int category
-
environment
int[][] environment
The room/cave/corridor/wall status for each cell of this section of map. -
leftDoors
ArrayList<Coord> leftDoors
-
map
char[][] map
The contents of this section of map. -
max
Coord max
The maximum point on the bounding rectangle of the room, including walls. -
min
Coord min
The minimum point on the bounding rectangle of the room, including walls. -
rightDoors
ArrayList<Coord> rightDoors
-
topDoors
ArrayList<Coord> topDoors
-
validDoors
GreasedRegion validDoors
Stores Coords just outside the contents of the MapModule, where doors are allowed to connect into this. Uses Coord positions that are relative to this MapModule's map field, not whatever this is being placed into.
-
-
Class squidpony.squidgrid.mapping.Rectangle.Impl extends Zone.Skeleton implements Serializable
- serialVersionUID:
- -6197401003733967116L
-
Serialized Fields
-
bottomLeft
Coord bottomLeft
-
height
int height
-
width
int width
-
-
Class squidpony.squidgrid.mapping.SectionMap extends Object implements Serializable
- serialVersionUID:
- -2322572367863327331L
-
Serialized Fields
-
connections
ArrayList<IntVLA> connections
-
map
int[][] map
-
names
Arrangement<String> names
-
regions
ArrayList<GreasedRegion> regions
-
-
Class squidpony.squidgrid.mapping.WildMap extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
biome
int biome
-
content
int[][] content
-
contentTypes
ArrayList<String> contentTypes
-
floors
int[][] floors
-
floorTypes
ArrayList<String> floorTypes
-
height
int height
-
rng
IStatefulRNG rng
-
width
int width
-
-
Class squidpony.squidgrid.mapping.WildMap.MixedWildMap extends WildMap implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
maxContents
int[] maxContents
-
maxFloors
int[] maxFloors
-
minContents
int[] minContents
-
minFloors
int[] minFloors
-
pieceMap
int[][] pieceMap
-
pieces
WildMap[] pieces
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
cacheA
int cacheA
-
cacheB
int cacheB
-
centerLongitude
double centerLongitude
-
heatData
double[][] heatData
-
heatModifier
double heatModifier
-
height
int height
-
heightCodeData
int[][] heightCodeData
-
heightData
double[][] heightData
-
landData
GreasedRegion landData
-
landModifier
double landModifier
-
maxHeat
double maxHeat
-
maxHeight
double maxHeight
-
maxHeightActual
double maxHeightActual
-
maxWet
double maxWet
-
minHeat
double minHeat
-
minHeight
double minHeight
-
minHeightActual
double minHeightActual
-
minWet
double minWet
-
moistureData
double[][] moistureData
-
rng
GWTRNG rng
-
seedA
int seedA
-
seedB
int seedB
-
startCacheX
IntVLA startCacheX
-
startCacheY
IntVLA startCacheY
-
startX
int startX
-
startY
int startY
-
usedHeight
int usedHeight
-
usedWidth
int usedWidth
-
width
int width
-
zoom
int zoom
-
zoomStartX
int zoomStartX
-
zoomStartY
int zoomStartY
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.EllipticalHammerMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
edges
int[] edges
-
heat
Noise.Noise3D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise3D moisture
-
otherRidged
Noise.Noise3D otherRidged
-
terrain
Noise.Noise3D terrain
-
terrainLayered
Noise.Noise3D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.EllipticalMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
edges
int[] edges
-
heat
Noise.Noise3D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise3D moisture
-
otherRidged
Noise.Noise3D otherRidged
-
terrain
Noise.Noise3D terrain
-
terrainLayered
Noise.Noise3D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.HyperellipticalMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
alpha
double alpha
-
edges
int[] edges
-
epsilon
double epsilon
-
heat
Noise.Noise3D heat
-
kappa
double kappa
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise3D moisture
-
otherRidged
Noise.Noise3D otherRidged
-
terrain
Noise.Noise3D terrain
-
terrainLayered
Noise.Noise3D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
Z
double[] Z
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.LocalMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
heat
Noise.InverseLayered2D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.InverseLayered2D moisture
-
otherRidged
Noise.Ridged2D otherRidged
-
terrain
Noise.Ridged2D terrain
-
terrainLayered
Noise.InverseLayered2D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.LocalMimicMap extends WorldMapGenerator.LocalMap implements Serializable
-
Serialized Fields
-
coast
GreasedRegion coast
-
earth
GreasedRegion earth
-
earthOriginal
GreasedRegion earthOriginal
-
shallow
GreasedRegion shallow
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.MimicMap extends WorldMapGenerator.EllipticalMap implements Serializable
-
Serialized Fields
-
coast
GreasedRegion coast
-
earth
GreasedRegion earth
-
earthOriginal
GreasedRegion earthOriginal
-
shallow
GreasedRegion shallow
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.RotatingSpaceMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
edges
int[] edges
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
storedMap
WorldMapGenerator.SphereMap storedMap
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.RoundSideMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
edges
int[] edges
-
heat
Noise.Noise3D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise3D moisture
-
otherRidged
Noise.Noise3D otherRidged
-
terrain
Noise.Noise3D terrain
-
terrainLayered
Noise.Noise3D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.SpaceViewMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
edges
int[] edges
-
heat
Noise.Noise3D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise3D moisture
-
otherRidged
Noise.Noise3D otherRidged
-
terrain
Noise.Noise3D terrain
-
terrainLayered
Noise.Noise3D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.SphereMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
heat
Noise.Noise3D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise3D moisture
-
otherRidged
Noise.Noise3D otherRidged
-
terrain
Noise.Noise3D terrain
-
terrainLayered
Noise.Noise3D terrainLayered
-
xPositions
double[][] xPositions
-
yPositions
double[][] yPositions
-
zPositions
double[][] zPositions
-
-
-
Class squidpony.squidgrid.mapping.WorldMapGenerator.TilingMap extends WorldMapGenerator implements Serializable
-
Serialized Fields
-
heat
Noise.Noise4D heat
-
maxHeat0
double maxHeat0
-
maxHeat1
double maxHeat1
-
maxWet0
double maxWet0
-
minHeat0
double minHeat0
-
minHeat1
double minHeat1
-
minWet0
double minWet0
-
moisture
Noise.Noise4D moisture
-
otherRidged
Noise.Noise4D otherRidged
-
terrain
Noise.Noise4D terrain
-
terrainRidged
Noise.Noise4D terrainRidged
-
-
-
-
Package squidpony.squidgrid.zone
-
Class squidpony.squidgrid.zone.CoordPackerZone extends Zone.Skeleton implements Serializable
- serialVersionUID:
- -3718415979846804238L
-
Serialized Fields
-
shorts
short[] shorts
-
-
Class squidpony.squidgrid.zone.ListZone extends Zone.Skeleton implements Serializable
- serialVersionUID:
- 1166468942544595692L
-
Class squidpony.squidgrid.zone.Zone.Skeleton extends Object implements Serializable
- serialVersionUID:
- 4436698111716212256L
-
-
Package squidpony.squidmath
-
Class squidpony.squidmath.AbstractRNG extends Object implements Serializable
-
Class squidpony.squidmath.Arrangement extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNullKey
boolean containsNullKey
Whether this set contains the key zero. -
defRetValue
int defRetValue
Default return value. -
entries
squidpony.squidmath.Arrangement.MapEntrySet entries
Cached set of entries. -
f
float f
The acceptable load factor. -
hasher
CrossHash.IHasher hasher
-
key
K[] key
The array of keys. -
keys
Arrangement.KeySet keys
Cached set of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesArrangement.f
. -
n
int n
The current table size. -
order
IntVLA order
The ordering of entries, with the nth entry in order being the index intoArrangement.key
andArrangement.value
to find that entry's key and value. The ints in order are always less than or equal to n, and greater than or equal to 0. -
size
int size
Number of entries in the set (including the key zero, if present). -
value
int[] value
The array of values. -
values
Collection<Integer> values
Cached collection of values.
-
-
Class squidpony.squidmath.Arrangement.FastEntryIterator extends squidpony.squidmath.Arrangement.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
entry
squidpony.squidmath.Arrangement.MapEntry entry
-
-
Class squidpony.squidmath.Arrangement.KeyIterator extends squidpony.squidmath.Arrangement.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.Arrangement.KeySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.Arrangement.ValueCollection extends AbstractCollection<Integer> implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.Arrangement.ValueIterator extends squidpony.squidmath.Arrangement.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.AStarSearch extends Object implements Serializable
- serialVersionUID:
- 11L
-
Serialized Fields
-
graph
CostlyGraph graph
-
height
int height
-
path
ArrayList<Coord> path
-
start
Coord start
-
target
Coord target
-
type
AStarSearch.SearchType type
-
width
int width
-
-
Class squidpony.squidmath.BasicRandom32 extends Random implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
state
int state
-
-
Class squidpony.squidmath.BasicRandom64 extends Random implements Serializable
- serialVersionUID:
- 3L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.ChaosRNG extends Object implements Serializable
- serialVersionUID:
- -254415589291474491L
-
Class squidpony.squidmath.CombinationGenerator extends Object implements Serializable
- serialVersionUID:
- 5998145341506278361L
-
Serialized Fields
-
combinationIndices
int[] combinationIndices
-
elements
T[] elements
-
remainingCombinations
long remainingCombinations
-
totalCombinations
long totalCombinations
-
-
Class squidpony.squidmath.Coord extends Object implements Serializable
- serialVersionUID:
- 300L
-
Serialized Fields
-
x
int x
The x-coordinate. -
y
int y
The y-coordinate (the ordinate)
-
-
Class squidpony.squidmath.Coord3D extends Coord implements Serializable
- serialVersionUID:
- 1835370798982845336L
-
Serialized Fields
-
z
int z
-
-
Class squidpony.squidmath.CoordDouble extends Object implements Serializable
- serialVersionUID:
- 500L
-
Serialized Fields
-
x
double x
-
y
double y
-
-
Class squidpony.squidmath.CosmicNumbering extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
connections
double[] connections
-
effect
double effect
-
len
int len
-
seed
long seed
-
-
Class squidpony.squidmath.CriticalRNG extends RNG implements Serializable
-
Serialized Fields
-
luck
float luck
Positive for higher results, negative for lower results; usually this is small, between -0.5f and 0.5f .
-
-
-
Class squidpony.squidmath.CrossHash.Mist extends Object implements Serializable
- serialVersionUID:
- -1275284837479983271L
-
Class squidpony.squidmath.DeckRNG extends StatefulRNG implements Serializable
- serialVersionUID:
- 7828346657944720807L
-
Serialized Fields
-
deck
double[] deck
-
lastShuffledState
long lastShuffledState
-
step
int step
-
-
Class squidpony.squidmath.DelaunayTriangulator extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
points
CoordDouble[] points
-
triangleSoup
ArrayList<DelaunayTriangulator.Triangle> triangleSoup
-
-
Class squidpony.squidmath.DelaunayTriangulator.Edge extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
a
CoordDouble a
-
b
CoordDouble b
-
-
Class squidpony.squidmath.DelaunayTriangulator.Triangle extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
a
CoordDouble a
-
b
CoordDouble b
-
c
CoordDouble c
-
-
Class squidpony.squidmath.DharmaRNG extends RNG implements Serializable
- serialVersionUID:
- -8919455766853811999L
-
Serialized Fields
-
baseline
double baseline
Running total for what this would produce if it always produced a value equal to fairness. -
fairness
double fairness
Used to tweak the generator toward high or low values. -
produced
double produced
Running total for what this has actually produced.
-
-
Class squidpony.squidmath.Dice extends Object implements Serializable
- serialVersionUID:
- -488902743486431146L
-
Serialized Fields
-
rng
IRNG rng
-
-
Class squidpony.squidmath.DistributedRNG extends AbstractRNG implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
distribution
IDistribution.SimpleDistribution distribution
-
rng
MoonwalkRNG rng
-
-
Class squidpony.squidmath.DiverRNG extends Object implements Serializable
- serialVersionUID:
- 153186732328748834L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.EditRNG extends StatefulRNG implements Serializable
- serialVersionUID:
- -2458726316853811777L
-
Serialized Fields
-
centrality
double centrality
When positive, makes the generator more likely to generate values close to the average (bell curve). When zero (the default), makes no changes to the centering of values. When negative, makes the generator swing more toward extremes rather than gravitate toward the average. Values are typically between -100 and 100, but can go as low as -200 or as high as 200 (stopping there). -
centralityCalculated
long centralityCalculated
-
expected
double expected
Used to tweak the generator toward high or low values. -
offset
double offset
-
range
double range
-
rawLatest
double rawLatest
The latest generated double, between 0.0 and 1.0, before changes for centrality and expected average. Doubles are used to generate all random numbers this class produces, so be aware that calling getRandomElement() will change this just as much as nextDouble(), nextInt(), or between() will. Primarily useful to obtain uniformly-distributed random numbers that are related to the biased random numbers this returns as a main result, such as to find when the last number generated was in the bottom 5% (less than 0.05, which could represent some kind of critical failure or fumble) or top 10% (greater than or equal to 0.9, which could grant a critical success or luck-based reward of some kind).
-
-
Class squidpony.squidmath.Elias extends Object implements Serializable
- serialVersionUID:
- 5290834334572814012L
-
Class squidpony.squidmath.EnumOrderedMap extends OrderedMap<K extends Enum<?>,V> implements Serializable
-
Class squidpony.squidmath.EnumOrderedSet extends OrderedSet<K extends Enum<?>> implements Serializable
-
Class squidpony.squidmath.FastNoise extends Object implements Serializable
- serialVersionUID:
- 3L
-
Serialized Fields
-
cellDist
float[] cellDist
-
cellularDistanceFunction
int cellularDistanceFunction
-
cellularNoiseLookup
FastNoise cellularNoiseLookup
-
cellularReturnType
int cellularReturnType
-
distOrder
int[] distOrder
-
fractalBounding
float fractalBounding
-
fractalType
int fractalType
-
frequency
float frequency
-
gain
float gain
-
gradientPerturbAmp
float gradientPerturbAmp
-
interpolation
int interpolation
-
intLoc
int[] intLoc
-
lacunarity
float lacunarity
-
m
float[] m
-
noiseType
int noiseType
-
octaves
int octaves
-
pointHash
IPointHash pointHash
-
seed
int seed
-
-
Class squidpony.squidmath.FlawedRandomness.AddRotate extends Object implements Serializable
-
Serialized Fields
-
state
long state
-
-
-
Class squidpony.squidmath.FlawedRandomness.BigCounter extends Object implements Serializable
-
Serialized Fields
-
state
long state
-
-
-
Class squidpony.squidmath.GapShuffler extends Object implements Serializable
- serialVersionUID:
- 1L
-
Class squidpony.squidmath.GearRNG extends Object implements Serializable
- serialVersionUID:
- 5L
-
Serialized Fields
-
stateA
long stateA
Can be any long value. -
stateB
long stateB
Can be any odd long value.
-
-
Class squidpony.squidmath.GoatRNG extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
stateA
long stateA
Can be any long value. -
stateB
long stateB
Can be any long value.
-
-
Class squidpony.squidmath.GreasedRegion extends Zone.Skeleton implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
counts
int[] counts
-
ct
int ct
-
data
long[] data
-
height
int height
-
tallied
boolean tallied
-
width
int width
-
yEndMask
long yEndMask
-
ySections
int ySections
-
-
Class squidpony.squidmath.GWTRNG extends AbstractRNG implements Serializable
- serialVersionUID:
- 3L
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
-
Class squidpony.squidmath.HashCommon.EnumHasher extends Object implements Serializable
-
Class squidpony.squidmath.IntDoubleOrderedMap extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNullKey
boolean containsNullKey
Whether this set contains the key zero. -
defRetValue
double defRetValue
Default return value. -
entries
IntDoubleOrderedMap.MapEntrySet entries
Cached set of entries. -
f
float f
The acceptable load factor. -
key
int[] key
The array of keys. -
keys
IntDoubleOrderedMap.KeySet keys
Cached set of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesIntDoubleOrderedMap.f
. -
n
int n
The current table size. -
order
IntVLA order
An IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order. The order can be changed withIntDoubleOrderedMap.reorder(int...)
and other methods. -
size
int size
Number of entries in the set (including the key zero, if present). -
value
double[] value
The array of values. -
values
IntDoubleOrderedMap.ValueCollection values
Cached collection of values.
-
-
Class squidpony.squidmath.IntDoubleOrderedMap.FastEntryIterator extends squidpony.squidmath.IntDoubleOrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
entry
IntDoubleOrderedMap.MapEntry entry
-
-
Class squidpony.squidmath.IntDoubleOrderedMap.KeyIterator extends squidpony.squidmath.IntDoubleOrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntDoubleOrderedMap.KeySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntDoubleOrderedMap.MapEntrySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntDoubleOrderedMap.ValueCollection extends AbstractCollection<Double> implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntDoubleOrderedMap.ValueIterator extends squidpony.squidmath.IntDoubleOrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntIntOrderedMap extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNullKey
boolean containsNullKey
Whether this set contains the key zero. -
defRetValue
int defRetValue
Default return value. -
entries
IntIntOrderedMap.MapEntrySet entries
Cached set of entries. -
f
float f
The acceptable load factor. -
key
int[] key
The array of keys. -
keys
IntIntOrderedMap.KeySet keys
Cached set of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesIntIntOrderedMap.f
. -
n
int n
The current table size. -
order
IntVLA order
An IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order. The order can be changed withIntIntOrderedMap.reorder(int...)
and other methods. -
size
int size
Number of entries in the set (including the key zero, if present). -
value
int[] value
The array of values. -
values
IntIntOrderedMap.ValueCollection values
Cached collection of values.
-
-
Class squidpony.squidmath.IntIntOrderedMap.FastEntryIterator extends squidpony.squidmath.IntIntOrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
entry
IntIntOrderedMap.MapEntry entry
-
-
Class squidpony.squidmath.IntIntOrderedMap.KeyIterator extends squidpony.squidmath.IntIntOrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntIntOrderedMap.KeySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntIntOrderedMap.MapEntrySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntIntOrderedMap.ValueCollection extends AbstractCollection<Integer> implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntIntOrderedMap.ValueIterator extends squidpony.squidmath.IntIntOrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.IntSet extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
hasZeroValue
boolean hasZeroValue
-
iterator1
IntSet.IntSetIterator iterator1
-
iterator2
IntSet.IntSetIterator iterator2
-
keyTable
int[] keyTable
-
loadFactor
float loadFactor
-
mask
int mask
A bitmask used to confine hashcodes to the size of the table. Must be all 1 bits in its low positions, ie a power of two minus 1. IfIntSet.place(int)
is overriden, this can be used instead ofIntSet.shift
to isolate usable bits of a hash. -
shift
int shift
Used byIntSet.place(int)
to bit shift the upper bits of along
into a usable range (>= 0 and <=IntSet.mask
). The shift can be negative, which is convenient to match the number of bits in mask: if mask is a 7-bit number, a shift of -7 shifts the upper 7 bits into the lowest 7 positions. This class sets the shift > 32 and < 64, which if used with an int will still move the upper bits of an int to the lower bits due to Java's implicit modulus on shifts.IntSet.mask
can also be used to mask the low bits of a number, which may be faster for some hashcodes, ifIntSet.place(int)
is overridden. -
size
int size
-
threshold
int threshold
-
-
Class squidpony.squidmath.IntVLA extends Object implements Serializable
- serialVersionUID:
- -2948161891082748626L
-
Serialized Fields
-
items
int[] items
-
size
int size
-
-
Class squidpony.squidmath.IsaacRNG extends Object implements Serializable
-
Serialized Fields
-
a
long a
-
b
long b
-
c
long c
-
count
int count
-
mem
long[] mem
-
results
long[] results
-
-
-
Class squidpony.squidmath.K2 extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
keysA
Arrangement<A> keysA
-
keysB
Arrangement<B> keysB
-
-
Class squidpony.squidmath.K2V1 extends Object implements Serializable
- serialVersionUID:
- 1L
-
Class squidpony.squidmath.Lathe32RNG extends Object implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
-
Class squidpony.squidmath.LFSR extends Object implements Serializable
- serialVersionUID:
- -2373549048478690398L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.LightRNG extends Object implements Serializable
- serialVersionUID:
- -374415589203474497L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.LinnormRNG extends Object implements Serializable
- serialVersionUID:
- 153186732328748834L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.LongPeriodRNG extends Object implements Serializable
- serialVersionUID:
- 173524490381383244L
-
Serialized Fields
-
choice
int choice
-
state
long[] state
-
-
Class squidpony.squidmath.LowStorageShuffler extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
bound
int bound
-
halfBits
int halfBits
-
index
int index
-
key0
int key0
-
key1
int key1
-
leftMask
int leftMask
-
pow4
int pow4
-
rightMask
int rightMask
-
-
Class squidpony.squidmath.MerlinNoise extends Object implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
bits
int bits
-
resolution
int resolution
-
resSize
long resSize
-
seed
long seed
-
-
Class squidpony.squidmath.MersenneTwister extends Object implements Serializable
- serialVersionUID:
- 1001000L
-
Serialized Fields
-
bitState
boolean bitState
Set to true if we need to generate another 64 bits, false if we have enough bits available for an int. -
extra
long extra
Internal to hold 64 bits, that might used to generate two 32 bit values. -
mt
long[] mt
Mersenne Twister data. -
mti
int mti
Mersenne Twister Index.
-
-
Class squidpony.squidmath.MiniMover64RNG extends Object implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.MizuchiRNG extends Object implements Serializable
- serialVersionUID:
- 153186732328748834L
-
Serialized Fields
-
state
long state
-
stream
long stream
-
-
Class squidpony.squidmath.MoonwalkRNG extends AbstractRNG implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.Mover32RNG extends Object implements Serializable
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
-
-
Class squidpony.squidmath.Mover64RNG extends Object implements Serializable
-
Serialized Fields
-
stateA
long stateA
-
stateB
long stateB
-
-
-
Class squidpony.squidmath.NeuralParticle extends Object implements Serializable
- serialVersionUID:
- -3742942580678517149L
-
Class squidpony.squidmath.NLFSR extends Object implements Serializable
- serialVersionUID:
- -2373549048478690398L
-
Serialized Fields
-
state
int state
-
-
Class squidpony.squidmath.OrbitRNG extends Object implements Serializable
- serialVersionUID:
- 4L
-
Serialized Fields
-
stateA
long stateA
Can be any long value. -
stateB
long stateB
-
-
Class squidpony.squidmath.OrderedMap extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNullKey
boolean containsNullKey
Whether this set contains the key zero. -
defRetValue
V defRetValue
Default return value. -
entries
OrderedMap.MapEntrySet entries
Cached set of entries. -
f
float f
The acceptable load factor. -
hasher
CrossHash.IHasher hasher
-
key
K[] key
The array of keys. -
keys
OrderedMap.KeySet keys
Cached set of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesOrderedMap.f
. -
n
int n
The current table size. -
order
IntVLA order
An IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order. The order can be changed withOrderedMap.reorder(int...)
and other methods. -
size
int size
Number of entries in the set (including the key zero, if present). -
value
V[] value
The array of values. -
values
Collection<V> values
Cached collection of values.
-
-
Class squidpony.squidmath.OrderedMap.KeyIterator extends squidpony.squidmath.OrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.OrderedMap.KeySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.OrderedMap.MapEntrySet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.OrderedMap.ValueCollection extends AbstractCollection<V> implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.OrderedMap.ValueIterator extends squidpony.squidmath.OrderedMap.MapIterator implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.OrderedSet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNull
boolean containsNull
Whether this set contains the key zero. -
f
float f
The acceptable load factor. -
hasher
CrossHash.IHasher hasher
-
key
K[] key
The array of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesOrderedSet.f
. -
n
int n
The current table size. -
order
IntVLA order
An IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order. The order can be changed withOrderedSet.reorder(int...)
and other methods. -
size
int size
Number of entries in the set (including the key zero, if present).
-
-
Class squidpony.squidmath.Oriole32RNG extends Object implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
stateC
int stateC
-
-
Class squidpony.squidmath.PermutationGenerator extends Object implements Serializable
- serialVersionUID:
- 514276118639629743L
-
Serialized Fields
-
elements
T[] elements
-
permutationIndices
int[] permutationIndices
-
remainingPermutations
long remainingPermutations
-
totalPermutations
long totalPermutations
-
-
Class squidpony.squidmath.PermutedRNG extends Object implements Serializable
- serialVersionUID:
- 3748443966125527657L
-
Serialized Fields
-
state
long state
The state can be seeded with any value.
-
-
Class squidpony.squidmath.PintRNG extends Object implements Serializable
- serialVersionUID:
- -374415589203474497L
-
Serialized Fields
-
state
int state
-
-
Class squidpony.squidmath.ProbabilityTable extends Object implements Serializable
- serialVersionUID:
- -1307656083434154736L
-
Serialized Fields
-
extraTable
ArrayList<ProbabilityTable<T>> extraTable
The list of items that can be produced indirectly fromProbabilityTable.random()
(looking up values from inside the nested tables). -
normalTotal
int normalTotal
-
rng
GWTRNG rng
-
table
Arrangement<T> table
The set of items that can be produced directly fromProbabilityTable.random()
(without additional lookups). -
total
int total
-
weights
IntVLA weights
-
-
Class squidpony.squidmath.PulleyRNG extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
state
long state
-
-
Class squidpony.squidmath.RandomBias extends Object implements Serializable
- serialVersionUID:
- 4245874924013134958L
-
Serialized Fields
-
biases
OrderedMap<String,Double> biases
-
distribution
int distribution
-
rng
IRNG rng
-
-
Class squidpony.squidmath.Region extends AbstractList<Coord> implements Serializable
- serialVersionUID:
- 4015272367863327093L
-
Serialized Fields
-
coords
Coord[] coords
-
dirty
boolean dirty
-
raw
short[] raw
-
-
Class squidpony.squidmath.RegionMap extends OrderedMap<short[],V> implements Serializable
- serialVersionUID:
- 2L
-
Class squidpony.squidmath.RNG extends Object implements Serializable
- serialVersionUID:
- 2352426757973945105L
-
Serialized Fields
-
ran
Random ran
-
random
RandomnessSource random
-
-
Class squidpony.squidmath.RNG.CustomRandom extends Random implements Serializable
- serialVersionUID:
- 8211985716129281944L
-
Serialized Fields
-
randomnessSource
RandomnessSource randomnessSource
-
-
Class squidpony.squidmath.ShortVLA extends Object implements Serializable
- serialVersionUID:
- -2948161891082748626L
-
Serialized Fields
-
items
short[] items
-
ordered
boolean ordered
-
size
int size
-
-
Class squidpony.squidmath.ShuffledIntSequence extends LowStorageShuffler implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
seed
int seed
-
-
Class squidpony.squidmath.SilkRNG extends AbstractRNG implements Serializable
- serialVersionUID:
- 5L
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
-
Class squidpony.squidmath.SobolQRNG extends Object implements Serializable
- serialVersionUID:
- -6759002780425873173L
-
Serialized Fields
-
count
int count
The current index in the sequence. Starts at 1, not 0, because 0 acts differently and shouldn't be typical. -
dimension
int dimension
Space dimension. -
direction
long[][] direction
The direction vector for each component. -
x
long[] x
The current state.
-
-
Class squidpony.squidmath.SquidID extends Object implements Serializable
- serialVersionUID:
- 8946534790126874460L
-
Serialized Fields
-
a
int a
-
b
int b
-
c
int c
-
d
int d
-
-
Class squidpony.squidmath.Starfish32RNG extends Object implements Serializable
- serialVersionUID:
- 2L
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
-
Class squidpony.squidmath.StatefulRNG extends RNG implements Serializable
- serialVersionUID:
- -2456306898212937163L
-
Class squidpony.squidmath.TangleRNG extends Object implements Serializable
- serialVersionUID:
- 5L
-
Serialized Fields
-
stateA
long stateA
Can be any long value. -
stateB
long stateB
Must be odd.
-
-
Class squidpony.squidmath.ThrustAltRNG extends Object implements Serializable
- serialVersionUID:
- 3L
-
Serialized Fields
-
state
long state
Can be any long value.
-
-
Class squidpony.squidmath.TweakRNG extends AbstractRNG implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
centrality
long centrality
-
favor
long favor
-
stateA
long stateA
-
stateB
long stateB
-
-
Class squidpony.squidmath.UnorderedMap extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNullKey
boolean containsNullKey
Whether this set contains the key zero. -
defRetValue
V defRetValue
Default return value. -
entries
squidpony.squidmath.UnorderedMap.MapEntrySet entries
Cached set of entries. -
f
float f
The acceptable load factor. -
hasher
CrossHash.IHasher hasher
-
key
K[] key
The array of keys. -
keys
squidpony.squidmath.UnorderedMap.KeySet keys
Cached set of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesUnorderedMap.f
. -
n
int n
The current table size. -
size
int size
Number of entries in the set (including the key zero, if present). -
value
V[] value
The array of values. -
values
Collection<V> values
Cached collection of values.
-
-
Class squidpony.squidmath.UnorderedMap.ValueCollection extends AbstractCollection<V> implements Serializable
- serialVersionUID:
- 0L
-
Class squidpony.squidmath.UnorderedSet extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialization Methods
-
readObject
- Throws:
IOException
ClassNotFoundException
-
writeObject
- Throws:
IOException
-
-
Serialized Fields
-
containsNull
boolean containsNull
Whether this set contains the key zero. -
f
float f
The acceptable load factor. -
hasher
CrossHash.IHasher hasher
-
key
K[] key
The array of keys. -
mask
int mask
The mask for wrapping a position counter. -
maxFill
int maxFill
Threshold after which we rehash. It must be the table size timesUnorderedSet.f
. -
n
int n
The current table size. -
size
int size
Number of entries in the set (including the key zero, if present).
-
-
Class squidpony.squidmath.VanDerCorputQRNG extends Object implements Serializable
- serialVersionUID:
- 6L
-
Serialized Fields
-
base
int base
-
state
long state
-
-
Class squidpony.squidmath.Voronoi extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
pointSet
OrderedSet<CoordDouble> pointSet
-
polygonSoup
ArrayList<Voronoi.Polygon> polygonSoup
-
triangleSoup
squidpony.squidmath.Voronoi.TriangleSoup triangleSoup
-
-
Class squidpony.squidmath.Voronoi.Edge extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
a
CoordDouble a
-
b
CoordDouble b
-
-
Class squidpony.squidmath.Voronoi.Polygon extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
centroid
CoordDouble centroid
-
vertices
CoordDouble[] vertices
-
-
Class squidpony.squidmath.Voronoi.Triangle extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
a
CoordDouble a
-
b
CoordDouble b
-
c
CoordDouble c
-
centroid
CoordDouble centroid
-
-
Class squidpony.squidmath.WeightedTable extends Object implements Serializable
- serialVersionUID:
- 101L
-
Serialized Fields
-
mixed
int[] mixed
-
size
int size
-
-
Class squidpony.squidmath.WhirlingNoise extends SeededNoise implements Serializable
- serialVersionUID:
- 6L
-
Class squidpony.squidmath.XoRoRNG extends Object implements Serializable
- serialVersionUID:
- 1018744536171610262L
-
Serialized Fields
-
state0
long state0
-
state1
long state1
-
-
Class squidpony.squidmath.XoshiroStarPhi32RNG extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
stateA
int stateA
-
stateB
int stateB
-
stateC
int stateC
-
stateD
int stateD
-
-