- pack(double[][]) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a double[][] (typically one generated by
FOV
) that only stores two
relevant states (one of which should be 0 or less, the other greater than 0), returning a short[] as described in
the
CoordPacker
class documentation.
- pack(double[][], double) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a double[][] (typically one generated by
DijkstraMap
) that only stores two
relevant states (one of which should be equal to or less than threshold, the other greater than threshold),
returning a short[] as described in the
CoordPacker
class documentation.
- pack(double[][], double, double) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a double[][] (typically one generated by
DijkstraMap
) that only stores two
relevant states (a state for values between lowerBound (inclusive) and upperBound (exclusive), and another state
for anything else), returning a short[] as described in the
CoordPacker
class documentation.
- pack(byte[][]) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a byte[][] (typically one generated by an FOV-like method) that only stores two
relevant states (one of which should be 0 or less, the other greater than 0), returning a short[] as described in
the
CoordPacker
class documentation.
- pack(boolean[][]) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a boolean[][], returning a short[] as described in the
CoordPacker
class documentation.
- pack(char[][], char) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a char[][] (typically one generated by a map generating method) so only the cells that equal the yes
parameter will be encoded as "on", returning a short[] as described in
the
CoordPacker
class documentation.
- pack(char[][], char...) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a char[][] (typically one generated by a map generating method) so only the cells that are contained
in the yes parameter will be encoded as "on", returning a short[] as described in
the
CoordPacker
class documentation.
- pack(int[][], int) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a int[][] (typically one generated by MixedGenerator.getEnvironment()) so only the cells that equal
the yes parameter will be encoded as "on", returning a short[] as described in
the
CoordPacker
class documentation.
- pack(int[][], int...) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a int[][] (typically one generated by MixedGenerator.getEnvironment()) so only the cells that are
contained in the yes parameter will be encoded as "on", returning a short[] as described in
the
CoordPacker
class documentation.
- packedFloors(char[][]) - Static method in class squidpony.squidgrid.mapping.DungeonUtility
-
A convenience wrapper for getting a packed-data representation of all floors ('.') in map, for randomCell().
- packMulti(double[][], double[]) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a double[][] (typically one generated by
FOV
) that stores any number of
states and a double[] storing up to 63 states, ordered from lowest to highest, returning a short[][] as described
in the
CoordPacker
class documentation.
- packMulti(byte[][], int) - Static method in class squidpony.squidmath.CoordPacker
-
Compresses a byte[][] (typically one generated by
FOVCache
) that stores any number
of states and an int no more than 63, returning a short[][] as described in the
CoordPacker
class
documentation.
- packOne(int) - Static method in class squidpony.squidmath.CoordPacker
-
Returns a new packed short[] containing the Hilbert distance hilbert as "on", and all other cells "off".
- packOne(Coord) - Static method in class squidpony.squidmath.CoordPacker
-
Returns a new packed short[] containing the Coord point as "on", and all other cells "off".
- packOne(int, int) - Static method in class squidpony.squidmath.CoordPacker
-
Returns a new packed short[] containing the given x,y cell as "on", and all other cells "off".
- packSeveral(int...) - Static method in class squidpony.squidmath.CoordPacker
-
Returns a new packed short[] containing the Hilbert distances in hilbert as "on" cells, and all other cells "off"
- packSeveral(Coord...) - Static method in class squidpony.squidmath.CoordPacker
-
Returns a new packed short[] containing the Coords in points as "on" cells, and all other cells "off"
- packSeveral(Collection<Coord>) - Static method in class squidpony.squidmath.CoordPacker
-
Returns a new packed short[] containing the Coords in points as "on" cells, and all other cells "off"
- PacMazeGenerator - Class in squidpony.squidgrid.mapping
-
Meant to produce the sort of narrow, looping, not-quite-maze-like passages found in a certain famous early arcade game.
- PacMazeGenerator() - Constructor for class squidpony.squidgrid.mapping.PacMazeGenerator
-
- PacMazeGenerator(int, int) - Constructor for class squidpony.squidgrid.mapping.PacMazeGenerator
-
- PacMazeGenerator(int, int, RNG) - Constructor for class squidpony.squidgrid.mapping.PacMazeGenerator
-
- parent - Variable in class squidpony.squidmath.AStarSearch
-
- partialScan(int, Set<Coord>) - Method in class squidpony.squidai.DijkstraMap
-
Recalculate the Dijkstra map up to a limit and return it.
- parts - Variable in class squidpony.MonsterGen.Chimera
-
- passable(char) - Method in class squidpony.squidgrid.Splash
-
- path - Variable in class squidpony.squidai.DijkstraMap
-
The latest path that was obtained by calling findPath().
- path(int, int, int, int) - Method in class squidpony.squidmath.AStarSearch
-
Finds an A* path to the target from the start.
- path(Coord, Coord) - Method in class squidpony.squidmath.AStarSearch
-
Finds an A* path to the target from the start.
- pathFOV(List<Coord>, int) - Method in class squidpony.squidgrid.FOVCache
-
Given a path as a List of Coords (such as one produced by DijkstraMap.getPath()), this method will look up the
FOV for the given fovRange at each Coord, and returns an array of full FOV maps where each map is the union
of the FOV centered on a Coord in path with all FOVs centered on previous Coords in path.
- pathFOVPacked(List<Coord>, int) - Method in class squidpony.squidgrid.FOVCache
-
Given a path as a List of Coords (such as one produced by DijkstraMap.getPath()), this method will look up the
FOV for the given fovRange at each Coord, and returns an array of packed FOV maps where each map is the union
of the FOV centered on a Coord in path with all FOVs centered on previous Coords in path.
- peek() - Method in class squidpony.squidmath.ShortVLA
-
Returns the last item.
- PerformanceUnit() - Constructor for class squidpony.squidgrid.FOVCache.PerformanceUnit
-
- perimeter(Coord, int, boolean, int, int) - Method in enum squidpony.squidgrid.Radius
-
- PerlinNoise - Class in squidpony.squidmath
-
This is Ken Perlin's third revision of his noise function.
- PermutationGenerator<T> - Class in squidpony.squidmath
-
Permutation generator for generating all permutations for all sets up to
20 elements in size.
- PermutationGenerator(T[]) - Constructor for class squidpony.squidmath.PermutationGenerator
-
Permutation generator that generates all possible orderings of
the elements in the specified set.
- PermutationGenerator(Collection<T>, T[]) - Constructor for class squidpony.squidmath.PermutationGenerator
-
Permutation generator that generates all possible orderings of
the elements in the specified set.
- PermutedRNG - Class in squidpony.squidmath
-
This is a RandomnessSource in the PCG-Random family.
- PermutedRNG() - Constructor for class squidpony.squidmath.PermutedRNG
-
Creates a new generator seeded using Math.random.
- PermutedRNG(long) - Constructor for class squidpony.squidmath.PermutedRNG
-
- physicalMap - Variable in class squidpony.squidai.DijkstraMap
-
Stores which parts of the map are accessible and which are not.
- physicalMap - Variable in class squidpony.squidgrid.MultiSpill
-
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).
- physicalMap - Variable in class squidpony.squidgrid.SoundMap
-
Stores which parts of the map are accessible and which are not.
- physicalMap - Variable in class squidpony.squidgrid.Spill
-
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).
- Placement - Class in squidpony.squidgrid.mapping
-
Utility class for finding areas where game-specific terrain features might be suitable to place.
- Placement(RoomFinder) - Constructor for class squidpony.squidgrid.mapping.Placement
-
Constructs a Placement using the given RoomFinder, which will have collections of rooms, corridors, and caves.
- placement - Variable in class squidpony.squidgrid.mapping.SectionDungeonGenerator
-
- PlannedAStar - Class in squidpony.squidmath
-
(SLOW) Modified version of AStarSearch that does some pre-planning and uses that to speed up pathfinding later on.
- PlannedAStar() - Constructor for class squidpony.squidmath.PlannedAStar
-
- PlannedAStar(double[][], AStarSearch.SearchType) - Constructor for class squidpony.squidmath.PlannedAStar
-
- plans - Variable in class squidpony.squidmath.PlannedAStar
-
- PointAOE - Class in squidpony.squidai
-
An AOE type that has a center Coord only and only affects that single Coord.
- PointAOE(Coord) - Constructor for class squidpony.squidai.PointAOE
-
- PointAOE(Coord, int, int) - Constructor for class squidpony.squidai.PointAOE
-
- points - Variable in class squidpony.squidgrid.mapping.MixedGenerator
-
- pointsInside(Coord, int, boolean, int, int) - Method in enum squidpony.squidgrid.Radius
-
- PoissonDisk - Class in squidpony.squidmath
-
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.
- pop() - Method in class squidpony.squidmath.ShortVLA
-
Removes and returns the last item.
- populate(int) - Method in class squidpony.squidmath.NeuralParticle
-
Populates the field with given number of points.
- position - Variable in class squidpony.squidai.Threat
-
- position - Variable in class squidpony.squidgrid.SpatialMap.SpatialTriple
-
- positionalModify(Coord, E) - Method in class squidpony.squidgrid.SpatialMap
-
Changes the element's value associated with pos.
- positionIterator() - Method in class squidpony.squidgrid.SpatialMap
-
Iterates through positions in insertion order; has less predictable iteration order than the other iterators.
- positionMapping - Variable in class squidpony.squidgrid.SpatialMap
-
- positions() - Method in class squidpony.squidgrid.SpatialMap
-
Get a Set of all positions used for values in this data structure, returning a LinkedHashSet (defensively copying
the key set used internally) for its stable iteration order.
- posToHilbert(int, int) - Static method in class squidpony.squidmath.CoordPacker
-
Takes an x, y position and returns the length to travel along the 256x256 Hilbert curve to reach that position.
- posToHilbert3D(int, int, int) - Static method in class squidpony.squidmath.CoordPacker
-
Takes an x, y, z position and returns the length to travel along the 32x32x32 Hilbert curve to reach that
position.
- posToMoore(int, int) - Static method in class squidpony.squidmath.CoordPacker
-
Takes an x, y position and returns the length to travel along the 16x16 Moore curve to reach that position.
- powerAdjectives - Variable in class squidpony.MonsterGen.Chimera
-
- powerAdjectives - Variable in class squidpony.MonsterGen
-
- powerPhrases - Variable in class squidpony.MonsterGen.Chimera
-
- powerPhrases - Variable in class squidpony.MonsterGen
-
- present(boolean) - Method in class squidpony.MonsterGen.Chimera
-
Get a string description of this monster's appearance and powers.
- present() - Method in class squidpony.panel.IColoredString.Impl
-
- present() - Method in interface squidpony.panel.IColoredString
-
- presentVisible(boolean) - Method in class squidpony.MonsterGen.Chimera
-
Get a string description of this monster's appearance.
- presentWithMarkup(IMarkup<T>) - Method in class squidpony.panel.IColoredString.Impl
-
Given some way of converting from a T value to an in-line markup tag, returns a string representation of
this IColoredString with in-line markup representing colors.
- presentWithMarkup(IMarkup<T>) - Method in interface squidpony.panel.IColoredString
-
Given some way of converting from a T value to an in-line markup tag, returns a string representation of
this IColoredString with in-line markup representing colors.
- prev - Variable in class squidpony.squidgrid.iterator.SquidIterators.AroundCounterClockWise
-
- prev - Variable in class squidpony.squidgrid.iterator.SquidIterators.VerticalUp
-
- previous - Variable in class squidpony.squidgrid.iterator.SquidIterators.BottomLeftToTopRight
-
- previous - Variable in class squidpony.squidgrid.iterator.SquidIterators.CenteredSquare
-
- previous - Variable in class squidpony.squidgrid.iterator.SquidIterators.RectangleFromBottomLeftToTopRight
-
The last cell returned
- printCompressedData(short[]) - Static method in class squidpony.squidmath.CoordPacker
-
- printPacked(short[], int, int) - Static method in class squidpony.squidmath.CoordPacker
-
Quick utility method for printing packed data as a grid of 1 (on) and/or 0 (off).
- ProbabilityTable<T> - Class in squidpony.squidmath
-
A generic method of holding a probability table to determine weighted random
outcomes.
- ProbabilityTable() - Constructor for class squidpony.squidmath.ProbabilityTable
-
Creates a new probability table.
- ProbabilityTable(RNG) - Constructor for class squidpony.squidmath.ProbabilityTable
-
Creates a new probability table with the provided source of randomness
used.
- process(CharSequence) - Method in class squidpony.Thesaurus
-
Given a String, StringBuilder, or other CharSequence that should contain words this knows synonyms for, this
replaces each occurrence of such a known word with one of its synonyms, leaving unknown words untouched.
- put(int, int, char, T, T) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- put(int, int, T, IColoredString<T>) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- put(int, int, String, T, T) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- put(int, int, char, T, T) - Method in interface squidpony.panel.ICombinedPanel
-
Puts c
at (x, y), using fgc
for c
and bgc
for the background.
- put(int, int, T, IColoredString<T>) - Method in interface squidpony.panel.ICombinedPanel
-
Put cs
at (x,y) using bgc
for the background.
- put(int, int, String, T, T) - Method in interface squidpony.panel.ICombinedPanel
-
Put cs
at (x,y) using bgc
for the background and
fgc
for the foreground.
- put(int, int, char) - Method in interface squidpony.panel.ISquidPanel
-
Puts the character c
at (x, y)
.
- put(int, int, T) - Method in interface squidpony.panel.ISquidPanel
-
Puts color
at (x, y)
(in the cell's entirety, i.e.
- put(int, int, String, T) - Method in interface squidpony.panel.ISquidPanel
-
Puts the given string horizontally with the first character at the given
offset.
- put(int, int, IColoredString<? extends T>) - Method in interface squidpony.panel.ISquidPanel
-
Puts the given string horizontally with the first character at the given
offset, using the colors that cs
provides.
- put(int, int, char, T) - Method in interface squidpony.panel.ISquidPanel
-
Puts the character c
at (x, y)
with some color
.
- put(char[][], T[][]) - Method in interface squidpony.panel.ISquidPanel
-
- put(char, int, int) - Method in class squidpony.squidgrid.mapping.styled.DungeonBoneGen
-
Sets the char at the given x,y position, storing it in this object.
- put(Coord, I, E) - Method in class squidpony.squidgrid.SpatialMap
-
Inserts a new element with the given identity and Coord position, potentially overwriting an existing element.
- put(SpatialMap.SpatialTriple<I, E>) - Method in class squidpony.squidgrid.SpatialMap
-
Inserts a SpatialTriple into this SpatialMap without changing it, potentially overwriting an existing element.
- put(short[], V) - Method in class squidpony.squidmath.RegionMap
-
Returns the old value associated with the specified key, or null.
- putAll(RegionMap<V>) - Method in class squidpony.squidmath.RegionMap
-
- putBG(int, int, T) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- putBG(int, int, T) - Method in interface squidpony.panel.ICombinedPanel
-
Puts the color c
at (x, y)
.
- putBias(String, double) - Method in class squidpony.squidmath.RandomBias
-
Adds a kind of bias that can be used to change the average of random numbers generated when specified with that
kind.
- putBiases(Map<String, Double>) - Method in class squidpony.squidmath.RandomBias
-
Adds a number of kinds of bias that can be used to change the average of random numbers generated when specified
with one of those kinds.
- putBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.LanesMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.MixedGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentDeepMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putCaveCarvers(int) - Method in class squidpony.squidgrid.mapping.LanesMapGenerator
-
Changes the number of "carvers" that will create caves from one room to the next.
- putCaveCarvers(int) - Method in class squidpony.squidgrid.mapping.MixedGenerator
-
Changes the number of "carvers" that will create caves from one room to the next.
- putCaveCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentDeepMapGenerator
-
Changes the number of "carvers" that will create caves from one room to the next.
- putCaveCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentMapGenerator
-
Changes the number of "carvers" that will create caves from one room to the next.
- putFG(int, int, char) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- putFG(int, int, char, T) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- putFG(int, int, String, T) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- putFG(int, int, IColoredString<T>) - Method in class squidpony.panel.ICombinedPanel.Impl
-
- putFG(int, int, char) - Method in interface squidpony.panel.ICombinedPanel
-
Puts the character c
at (x, y)
.
- putFG(int, int, char, T) - Method in interface squidpony.panel.ICombinedPanel
-
Puts the character c
at (x, y)
with some color
.
- putFG(int, int, String, T) - Method in interface squidpony.panel.ICombinedPanel
-
Puts the given string horizontally with the first character at the given
offset.
- putFG(int, int, IColoredString<T>) - Method in interface squidpony.panel.ICombinedPanel
-
Puts the given string horizontally with the first character at the given
offset.
- putRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.LanesMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.
- putRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.MixedGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.
- putRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentDeepMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.
- putRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.
- putWalledBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.LanesMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putWalledBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.MixedGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one, enforcing
the presence of walls around the rooms even if another room is already there or would be placed there.
- putWalledBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentDeepMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putWalledBoxRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a box shape at the start and end, and a small room at the corner if there is one.
- putWalledRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.LanesMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.
- putWalledRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.MixedGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one, enforcing the presence of walls around the rooms even if another room is already there or would be placed
there.
- putWalledRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentDeepMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.
- putWalledRoundRoomCarvers(int) - Method in class squidpony.squidgrid.mapping.SerpentMapGenerator
-
Changes the number of "carvers" that will create right-angle corridors from one room to the next, create rooms
with a random size in a circle shape at the start and end, and a small circular room at the corner if there is
one.