- d_constraint - Variable in class squidpony.squidgrid.mapping.styled.Tile
-
- DamerauLevenshteinAlgorithm - Class in squidpony
-
The Damerau-Levenshtein Algorithm is an extension to the Levenshtein
Algorithm which solves the edit distance problem between a source string and
a target string with the following operations:
Character Insertion
Character Deletion
Character Replacement
Adjacent Character Swap
Note that the adjacent character swap operation is an edit that may be
applied when two adjacent characters in the source string match two adjacent
characters in the target string, but in reverse order, rather than a general
allowance for adjacent character swaps.
- DamerauLevenshteinAlgorithm(int, int, int, int) - Constructor for class squidpony.DamerauLevenshteinAlgorithm
-
Constructor.
- DARK - Static variable in class squidpony.squidai.DijkstraMap
-
This is used to mark cells that the scan couldn't reach, and these dark cells are marked with a high number
equal to 999800.0 .
- data - Variable in class squidpony.squidgrid.mapping.styled.Tile
-
- DDA - Static variable in class squidpony.squidgrid.LOS
-
Optimized algorithm for Bresenham-like lines.
- DDALine - Class in squidpony.squidmath
-
A fixed-point line-drawing algorithm that should have good performance; may be useful for LOS.
- DDALine() - Constructor for class squidpony.squidmath.DDALine
-
- debugPrint(char[][]) - Static method in class squidpony.squidgrid.mapping.DungeonUtility
-
For when you want to print a 2D char array.
- debugPrint(int, int) - Method in class squidpony.squidmath.Region
-
Prints this Region to System.out as a grid of chars with the given width and height, using '.' for Coords this
contains and '#' for empty space.
- decay - Variable in class squidpony.squidgrid.FOVCache
-
- decipher(String, Map<String, String>) - Method in class squidpony.LanguageCipher
-
Deciphers words in an already-ciphered text with a given String-to-String Map for a vocabulary.
- DeckRNG - Class in squidpony.squidmath
-
An RNG variant that has 16 possible grades of value it can produce and shuffles them like a deck of cards.
- DeckRNG() - Constructor for class squidpony.squidmath.DeckRNG
-
Constructs a DeckRNG with a pseudo-random seed from Math.random().
- DeckRNG(long) - Constructor for class squidpony.squidmath.DeckRNG
-
Construct a new DeckRNG with the given seed.
- DeckRNG(String) - Constructor for class squidpony.squidmath.DeckRNG
-
String-seeded constructor uses the hash of the String as a seed for LightRNG, which is of high quality, but low
period (which rarely matters for games), and has good speed and tiny state size.
- DeckRNG(RandomnessSource) - Constructor for class squidpony.squidmath.DeckRNG
-
Seeds this DeckRNG using the RandomnessSource it is given.
- decodeASCII(String) - Static method in class squidpony.squidmath.CoordPacker
-
Given a String specifically produced by CoordPacker.encodeASCII(), this will produce a packed data array.
- decodeBraille(String) - Static method in class squidpony.squidmath.CoordPacker
-
Given a String specifically produced by CoordPacker.encodeBraille(), this will produce a packed data array.
- decodePermutation(long, int) - Static method in class squidpony.squidmath.PermutationGenerator
-
Given a long between 0 and the total number of permutations possible (see getTotalPermutations() for how to access
this) and an int count of how many indices to find a permutation of, returns an array with the permutation
of the indices described by the long as a special (factoradic) index into the possible permutations.
- decodePermutation(long, int, int) - Static method in class squidpony.squidmath.PermutationGenerator
-
Given a long between 0 and the total number of permutations possible (see getTotalPermutations() for how to access
this) and an int count of how many indices to find a permutation of, returns an array with the permutation
of the indices described by the long as a special (factoradic) index into the possible permutations.
- decodePermutation(long, T[]) - Method in class squidpony.squidmath.PermutationGenerator
-
Given a long between 0 and the total number of permutations possible (see getTotalPermutations() for how to access
this) and an array of T with the same length as the elements this was constructed with, fills the array with the
permutation described by the long as a special (factoradic) index into the possible permutations.
- decodePermutation(long) - Method in class squidpony.squidmath.PermutationGenerator
-
Given a long between 0 and the total number of permutations possible (see getTotalPermutations() for how to access
this), creates a List filled with the permutation described by the long as a special (factoradic) index into the
possible permutations.
- decodePermutation(long, List<T>) - Method in class squidpony.squidmath.PermutationGenerator
-
Given a long between 0 and the total number of permutations possible (see getTotalPermutations() for how to access
this) and a List of T with the same length as the elements this was constructed with, fills the List with the
permutation described by the long as a special (factoradic) index into the possible permutations.
- deepLakeGlyph - Variable in class squidpony.squidgrid.mapping.SectionDungeonGenerator
-
The char to use for deep lake cells.
- DEFAULT_POINT - Static variable in class squidpony.squidai.Technique
-
- DefaultDungeon - Class in squidpony.tileset
-
- DefaultDungeon() - Constructor for class squidpony.tileset.DefaultDungeon
-
- defaultFill(int, int) - Static method in class squidpony.squidgrid.mapping.RoomFinder
-
- degrees(Coord, Coord) - Static method in class squidpony.squidmath.Coord
-
Gets the angle in degrees to go between two Coords; 0 is up.
- deltaX - Variable in enum squidpony.squidgrid.Direction
-
The x coordinate difference for this direction.
- deltaY - Variable in enum squidpony.squidgrid.Direction
-
The y coordinate difference for this direction.
- DenseRoomMapGenerator - Class in squidpony.squidgrid.mapping
-
Map generator that constructs a large number of overlapping rectangular rooms.
- DenseRoomMapGenerator() - Constructor for class squidpony.squidgrid.mapping.DenseRoomMapGenerator
-
- DenseRoomMapGenerator(int, int) - Constructor for class squidpony.squidgrid.mapping.DenseRoomMapGenerator
-
- DenseRoomMapGenerator(int, int, RNG) - Constructor for class squidpony.squidgrid.mapping.DenseRoomMapGenerator
-
- DEPTH - Static variable in class squidpony.squidmath.CoordPacker
-
- desaturate(T, float) - Method in interface squidpony.IColorCenter
-
Brings a color closer to grayscale by the specified degree and returns the new color (desaturated somewhat).
- desaturate(T, float) - Method in class squidpony.IColorCenter.Skeleton
-
Brings a color closer to grayscale by the specified degree and returns the new color (desaturated somewhat).
- desaturated(T) - Method in interface squidpony.IColorCenter
-
Gets a fully-desaturated version of the given color (keeping its brightness, but making it grayscale).
- desaturated(T) - Method in class squidpony.IColorCenter.Skeleton
-
Gets a fully-desaturated version of the given color (keeping its brightness, but making it grayscale).
- deteriorate(List<Coord>) - Method in class squidpony.squidai.DijkstraMap
-
Used in conjunction with methods that depend on finding cover, like findCoveredAttackPath(), this method causes
specified risky points to be considered less safe, and will encourage a pathfinder to keep moving toward a goal
instead of just staying in cover forever (or until an enemy moves around the cover and ambushes the pathfinder).
- deteriorate(Coord...) - Method in class squidpony.squidai.DijkstraMap
-
Used in conjunction with methods that depend on finding cover, like findCoveredAttackPath(), this method causes
specified risky points to be considered less safe, and will encourage a pathfinder to keep moving toward a goal
instead of just staying in cover forever (or until an enemy moves around the cover and ambushes the pathfinder).
- DharmaRNG - Class in squidpony.squidmath
-
An alteration to a RandomnessSource that attempts to produce values that are perceived as fair to an imperfect user.
- DharmaRNG() - Constructor for class squidpony.squidmath.DharmaRNG
-
Constructs a DharmaRNG with a pseudo-random seed from Math.random().
- DharmaRNG(long) - Constructor for class squidpony.squidmath.DharmaRNG
-
Construct a new DharmaRNG with the given seed.
- DharmaRNG(long, double) - Constructor for class squidpony.squidmath.DharmaRNG
-
Construct a new DharmaRNG with the given seed.
- DharmaRNG(String) - Constructor for class squidpony.squidmath.DharmaRNG
-
String-seeded constructor; uses a platform-independent hash of the String (it does not use String.hashCode) as a
seed for LightRNG, which is of high quality, but low period (which rarely matters for games), and has good speed,
tiny state size, and excellent 64-bit number generation.
- DharmaRNG(String, double) - Constructor for class squidpony.squidmath.DharmaRNG
-
String-seeded constructor; uses a platform-independent hash of the String (it does not use String.hashCode) as a
seed for LightRNG, which is of high quality, but low period (which rarely matters for games), and has good speed,
tiny state size, and excellent 64-bit number generation.
- DharmaRNG(RandomnessSource) - Constructor for class squidpony.squidmath.DharmaRNG
-
Construct a new DharmaRNG with the given seed.
- DharmaRNG(RandomnessSource, double) - Constructor for class squidpony.squidmath.DharmaRNG
-
Construct a new DharmaRNG with the given seed.
- DIAGONALS - Static variable in enum squidpony.squidgrid.Direction
-
An array which holds only the four diagonal directions.
- Dice - Class in squidpony.squidmath
-
Class for emulating various traditional RPG-style dice rolls.
- Dice() - Constructor for class squidpony.squidmath.Dice
-
Creates a new dice roller that uses a random RNG seed for an RNG that it owns.
- Dice(RNG) - Constructor for class squidpony.squidmath.Dice
-
Creates a new dice roller that uses the given RNG, which can be seeded before it's given here.
- Dice(long) - Constructor for class squidpony.squidmath.Dice
-
Creates a new dice roller that will use its own RNG, seeded with the given seed.
- Dice(String) - Constructor for class squidpony.squidmath.Dice
-
Creates a new dice roller that will use its own RNG, seeded with the given seed.
- differencePacked(short[], short[]) - Static method in class squidpony.squidmath.CoordPacker
-
Given two packed short arrays, left and right, this produces a packed short array that encodes "on" for any cell
that was "on" in left but "off" in right, and encodes "off" for cells that were "on" in right or "off" in left.
- DijkstraMap - Class in squidpony.squidai
-
An alternative to AStarSearch when you want to fully explore a search space, or when you want a gradient floodfill.
- DijkstraMap() - Constructor for class squidpony.squidai.DijkstraMap
-
Construct a DijkstraMap without a level to actually scan.
- DijkstraMap(RNG) - Constructor for class squidpony.squidai.DijkstraMap
-
Construct a DijkstraMap without a level to actually scan.
- DijkstraMap(double[][]) - Constructor for class squidpony.squidai.DijkstraMap
-
Used to construct a DijkstraMap from the output of another.
- DijkstraMap(double[][], DijkstraMap.Measurement) - Constructor for class squidpony.squidai.DijkstraMap
-
Used to construct a DijkstraMap from the output of another, specifying a distance calculation.
- DijkstraMap(char[][]) - Constructor for class squidpony.squidai.DijkstraMap
-
Constructor meant to take a char[][] returned by DungeonGen.generate(), or any other
char[][] where '#' means a wall and anything else is a walkable tile.
- DijkstraMap(char[][], RNG) - Constructor for class squidpony.squidai.DijkstraMap
-
Constructor meant to take a char[][] returned by DungeonGen.generate(), or any other
char[][] where '#' means a wall and anything else is a walkable tile.
- DijkstraMap(char[][], char) - Constructor for class squidpony.squidai.DijkstraMap
-
Constructor meant to take a char[][] returned by DungeonGen.generate(), or any other
char[][] where one char means a wall and anything else is a walkable tile.
- DijkstraMap(char[][], DijkstraMap.Measurement) - Constructor for class squidpony.squidai.DijkstraMap
-
Constructor meant to take a char[][] returned by DungeonGen.generate(), or any other
char[][] where '#' means a wall and anything else is a walkable tile.
- DijkstraMap(char[][], DijkstraMap.Measurement, RNG) - Constructor for class squidpony.squidai.DijkstraMap
-
Constructor meant to take a char[][] returned by DungeonGen.generate(), or any other
char[][] where '#' means a wall and anything else is a walkable tile.
- DijkstraMap.Measurement - Enum in squidpony.squidai
-
The type of heuristic to use.
- dijkstraToHashMap(double[][]) - Static method in class squidpony.squidai.AreaUtils
-
This takes a DijkstraMap that has already completed a scan() and returns a HashMap of Coord keys to Double
values, and will have a key for every position that was reached in the DijkstraMap, with 1.0 as the only value.
- Direction - Enum in squidpony.squidgrid
-
Represents the eight grid directions and the deltaX, deltaY values associated
with those directions.
- directionAngles - Variable in class squidpony.squidgrid.FOVCache
-
- displacement - Variable in class squidpony.squidgrid.mapping.ModularMapGenerator
-
- distance(double, double) - Method in class squidpony.squidmath.Coord
-
- distance(Coord) - Method in class squidpony.squidmath.Coord
-
- distance(Coord3D) - Method in class squidpony.squidmath.Coord3D
-
Returns the linear distance between this coordinate point and the
provided one.
- distance(double, double) - Method in class squidpony.squidmath.CoordDouble
-
- distance(CoordDouble) - Method in class squidpony.squidmath.CoordDouble
-
- distanceCache - Variable in class squidpony.squidgrid.FOVCache
-
- distanceSq(double, double) - Method in class squidpony.squidmath.Coord
-
- distanceSq(Coord) - Method in class squidpony.squidmath.Coord
-
- distanceSq(double, double) - Method in class squidpony.squidmath.CoordDouble
-
- distanceSq(CoordDouble) - Method in class squidpony.squidmath.CoordDouble
-
- distribution - Variable in class squidpony.squidmath.RandomBias
-
- divide(Coord) - Method in class squidpony.squidmath.Coord
-
Separately divides the x and y positions of this Coord by other, producing a different Coord as their
"quotient." If other has 0 for x or y, this will throw an exception, as dividing by 0 is expected to do.
- divide(int) - Method in class squidpony.squidmath.Coord
-
Separately divides the x and y positions of this Coord by operand, producing a different Coord as their
"quotient." If operand is 0, this will throw an exception, as dividing by 0 is expected to do.
- divide(double) - Method in class squidpony.squidmath.Coord
-
Separately divides the x and y positions of this Coord by operand, flooring to a lower int for each of x and
y and producing a different Coord as their "quotient." If operand is 0.0, expect strange results (infinity and
NaN are both possibilities).
- DividedMazeGenerator - Class in squidpony.squidgrid.mapping
-
Recursively divided maze.
- DividedMazeGenerator(int, int) - Constructor for class squidpony.squidgrid.mapping.DividedMazeGenerator
-
Sets up the generator to make mazes the given width and height.
- DividedMazeGenerator(int, int, RNG) - Constructor for class squidpony.squidgrid.mapping.DividedMazeGenerator
-
Sets up the generator to make mazes the given width and height.
- divideRounding(double) - Method in class squidpony.squidmath.Coord
-
Separately divides the x and y positions of this Coord by operand, rounding to the nearest int for each of x and
y and producing a different Coord as their "quotient." If operand is 0.0, expect strange results (infinity and
NaN are both possibilities).
- dm - Variable in class squidpony.squidmath.PlannedAStar
-
- done - Variable in class squidpony.squidgrid.iterator.SquidIterators.CenteredSquare
-
- doorFX - Variable in class squidpony.squidgrid.mapping.SectionDungeonGenerator
-
Percentage of viable positions to fill with doors, represented by '+' for east-to-west connections or '/' for
north-to-south ones; this number will be negative if filling two-cell wide positions but will be made positive
when needed.
- doorways - Variable in class squidpony.squidgrid.mapping.RoomFinder
-
When a RoomFinder is constructed, it stores all points of rooms that are adjacent to another region here.
- DOUBLE_CONSONANTS - Static variable in class squidpony.FakeLanguageGen.Modifier
-
For a language that has a 50% chance to repeat a single consonant.
- DOUBLE_UNIT - Static variable in class squidpony.squidmath.RNG
-
- DOUBLE_VOWELS - Static variable in class squidpony.FakeLanguageGen.Modifier
-
For a language that has a 40% chance to repeat a single Latin vowel (a, e, o, or a variant on one of them
like å or ö, but not merged letters like æ and œ).
- doubleWidth(char[][]) - Static method in class squidpony.squidgrid.mapping.DungeonUtility
-
Takes a dungeon map with either '#' as the only wall character or the unicode box drawing characters used by
hashesToLines(), and returns a new char[][] dungeon map with two characters per cell, mostly filling the spaces
next to non-walls with space characters, and only doing anything different if a box-drawing character would
continue into an adjacent cell, or if a '#' wall needs another '#' wall next to it.
- dungeon - Variable in class squidpony.squidai.Technique
-
- dungeon - Variable in class squidpony.squidgrid.mapping.DungeonGenerator
-
- dungeon - Variable in class squidpony.squidgrid.mapping.MixedGenerator
-
- dungeon - Variable in class squidpony.squidgrid.mapping.RectangleRoomFinder
-
- dungeon - Variable in class squidpony.squidgrid.mapping.SectionDungeonGenerator
-
- DungeonBoneGen - Class in squidpony.squidgrid.mapping.styled
-
Generate a dungeon using Sean T.
- DungeonBoneGen(Random) - Constructor for class squidpony.squidgrid.mapping.styled.DungeonBoneGen
-
Constructs a DungeonGen that uses the given java.util.Random .
- DungeonBoneGen(RNG) - Constructor for class squidpony.squidgrid.mapping.styled.DungeonBoneGen
-
Constructs a DungeonGen that uses the given squidpony.squidmath.RNG.
- DungeonBoneGen() - Constructor for class squidpony.squidgrid.mapping.styled.DungeonBoneGen
-
Constructs a DungeonGen that uses the default RNG.
- DungeonGenerator - Class in squidpony.squidgrid.mapping
-
The primary way to create a more-complete dungeon, layering different effects and modifications on top of
a DungeonBoneGen's dungeon or another dungeon without such effects.
- DungeonGenerator() - Constructor for class squidpony.squidgrid.mapping.DungeonGenerator
-
Make a DungeonGenerator with a LightRNG using a random seed, height 40, and width 40.
- DungeonGenerator(int, int) - Constructor for class squidpony.squidgrid.mapping.DungeonGenerator
-
Make a DungeonGenerator with the given height and width; the RNG used for generating a dungeon and
adding features will be a LightRNG using a random seed.
- DungeonGenerator(int, int, RNG) - Constructor for class squidpony.squidgrid.mapping.DungeonGenerator
-
Make a DungeonGenerator with the given height, width, and RNG.
- DungeonGenerator(DungeonGenerator) - Constructor for class squidpony.squidgrid.mapping.DungeonGenerator
-
Copies all fields from copying and makes a new DungeonGenerator.
- DungeonGenerator.FillEffect - Enum in squidpony.squidgrid.mapping
-
The effects that can be applied to this dungeon.
- dungeonHeight - Variable in class squidpony.squidgrid.mapping.RectangleRoomFinder
-
- DungeonUtility - Class in squidpony.squidgrid.mapping
-
A static class that can be used to modify the char[][] dungeons that other generators produce.
- DungeonUtility() - Constructor for class squidpony.squidgrid.mapping.DungeonUtility
-
- DungeonUtility(StatefulRNG) - Constructor for class squidpony.squidgrid.mapping.DungeonUtility
-
- DungeonUtility(RNG) - Constructor for class squidpony.squidgrid.mapping.DungeonUtility
-
- dungeonWidth - Variable in class squidpony.squidgrid.mapping.RectangleRoomFinder
-