Uses of Class
squidpony.squidmath.IntVLA
| Package | Description |
|---|---|
| squidpony |
Utilities that don't fit elsewhere in SquidLib; mostly text manipulation, compression, and helper code.
|
| squidpony.squidai |
Tools for finding paths, optimizing targets for area-of-effect (AOE) abilities, and evaluating influence on a grid.
|
| squidpony.squidgrid |
Tools for working with data on a grid, including LOS and FOV; overlaps with geometry code in squidpony.squidmath .
|
| squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
| squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of IntVLA in squidpony
Fields in squidpony with type parameters of type IntVLA Modifier and Type Field Description static StringConvert<IntVLA>Converters. convertIntVLAArrayList<IntVLA>MarkovObject. processedComplicated data that mixes probabilities and the indices of items inMarkovObject.body, generated during the latest call toMarkovObject.analyze(Iterable).ArrayList<IntVLA>MarkovObject. raw -
Uses of IntVLA in squidpony.squidai
Fields in squidpony.squidai declared as IntVLA Modifier and Type Field Description protected IntVLACustomDijkstraMap. freshprotected IntVLADijkstraMap. freshGoals that pathfinding will seek out.protected IntVLACustomDijkstraMap. goalsprotected IntVLADijkstraMap. goalsGoals that pathfinding will seek out.IntVLACustomDijkstraMap. pathThe latest path that was obtained by calling findPath().Methods in squidpony.squidai that return IntVLA Modifier and Type Method Description IntVLACustomDijkstraMap. findFleePath(int length, double preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scan with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findFleePath(int length, int scanLimit, double preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scan with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findFleePathLarge(int size, int length, int scanLimit, int preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scanLarge with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findFleePathLarge(int size, int length, int preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scanLarge with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findPath(int length, int scanLimit, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scan with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLACustomDijkstraMap. findPath(int length, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scan with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLACustomDijkstraMap. findPathLarge(int size, int length, int scanLimit, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scanLarge with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLACustomDijkstraMap. findPathLarge(int size, int length, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scan with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLAGreasedZOI. nearestInfluences(Coord point)This can be given a Coord to check in the results of the latest calculate() call.IntVLAGreasedZOI. nearestInfluences(GreasedRegion[] zones, Coord point)Given the zones resulting from this class'GreasedZOI.calculate()method and a Coord to check, finds the indices of all influencing groups in zones that have the Coord in their area, and returns all such indices as an IntVLA.Methods in squidpony.squidai with parameters of type IntVLA Modifier and Type Method Description IntVLACustomDijkstraMap. findFleePath(int length, double preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scan with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findFleePath(int length, int scanLimit, double preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scan with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findFleePathLarge(int size, int length, int scanLimit, int preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scanLarge with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findFleePathLarge(int size, int length, int preferLongerPaths, IntVLA impassable, IntVLA onlyPassable, int start, int... fearSources)Scans the dungeon using CustomDijkstraMap.scanLarge with the listed fearSources and start point, and returns a list of Coord positions (using Manhattan distance) needed to get further from the closest fearSources, meant for running away.IntVLACustomDijkstraMap. findPath(int length, int scanLimit, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scan with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLACustomDijkstraMap. findPath(int length, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scan with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLACustomDijkstraMap. findPathLarge(int size, int length, int scanLimit, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scanLarge with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.IntVLACustomDijkstraMap. findPathLarge(int size, int length, IntVLA impassable, IntVLA onlyPassable, int start, int... targets)Scans the dungeon using CustomDijkstraMap.scan with the listed goals and start point, and returns a list of Coord positions (using the current measurement) needed to get closer to the closest reachable goal.double[]CustomDijkstraMap. partialScan(int limit, IntVLA impassable)Recalculate the CustomDijkstra map up to a limit and return it.double[]CustomDijkstraMap. partialScanLarge(int size, int limit, IntVLA impassable)Recalculate the CustomDijkstra map, up to a limit, for a creature that is potentially larger than 1x1 cell and return it.double[]CustomDijkstraMap. partialScanToStart(int limit, int start, IntVLA impassable)Recalculate the CustomDijkstra map up to a limit, stopping early if it has a path from a goal to start, and return that map.double[]CustomDijkstraMap. partialScanToStartLarge(int size, int limit, int start, IntVLA impassable)Recalculate the CustomDijkstra map, up to a limit, for a creature that is potentially larger than 1x1 cell, stopping early if a path is found between a goal and start, and return that map.double[]CustomDijkstraMap. scan(IntVLA impassable)Recalculate the CustomDijkstra map and return it.double[]CustomDijkstraMap. scanLarge(int size, IntVLA impassable)Recalculate the CustomDijkstra map for a creature that is potentially larger than 1x1 cell and return it.double[]CustomDijkstraMap. scanToStart(int start, IntVLA impassable)Recalculate the CustomDijkstra map, stopping early if it has a path from a goal to start, and return that map.double[]CustomDijkstraMap. scanToStartLarge(int size, int start, IntVLA impassable)Recalculate the CustomDijkstra map for a creature that is potentially larger than 1x1 cell and return it. -
Uses of IntVLA in squidpony.squidgrid
Methods in squidpony.squidgrid with parameters of type IntVLA Modifier and Type Method Description voidAdjacency.BasicAdjacency. putAllVariants(IntVLA list, double[] map, int key, double value, int size)voidAdjacency. putAllVariants(IntVLA list, double[] map, int key, double value)abstract voidAdjacency. putAllVariants(IntVLA list, double[] map, int key, double value, int size)voidAdjacency.RotationAdjacency. putAllVariants(IntVLA list, double[] map, int key, double value, int size) -
Uses of IntVLA in squidpony.squidgrid.mapping
Fields in squidpony.squidgrid.mapping declared as IntVLA Modifier and Type Field Description protected IntVLAMixedGenerator. pointsprotected IntVLAWorldMapGenerator. startCacheXprotected IntVLAWorldMapGenerator. startCacheYFields in squidpony.squidgrid.mapping with type parameters of type IntVLA Modifier and Type Field Description protected ArrayList<IntVLA>SectionMap. connectionsMethods in squidpony.squidgrid.mapping that return IntVLA Modifier and Type Method Description IntVLASectionMap. nameToConnections(String name)Gets the list of connected sections (by their identifying numbers) given a name of a section.IntVLASectionMap. numberToConnections(int number)Gets the list of connected sections (by their identifying numbers) given an identifying number of a section.IntVLASectionMap. positionToConnections(int x, int y)Gets the list of connected sections (by their identifying numbers) given a position inside that section.IntVLASectionMap. positionToConnections(Coord position)Gets the list of connected sections (by their identifying numbers) given a position inside that section. -
Uses of IntVLA in squidpony.squidmath
Fields in squidpony.squidmath declared as IntVLA Modifier and Type Field Description protected IntVLAArrangement. orderThe ordering of entries, with the nth entry in order being the index intoArrangement.keyandArrangement.valueto find that entry's key and value.protected IntVLAIntDoubleOrderedMap. orderAn IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order.protected IntVLAIntIntOrderedMap. orderAn IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order.protected IntVLAOrderedMap. orderAn IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order.protected IntVLAOrderedSet. orderAn IntVLA (variable-length int sequence) that stores the positions in the key array of specific keys, with the positions in insertion order.IntVLAProbabilityTable. weightsMethods in squidpony.squidmath that return IntVLA Modifier and Type Method Description IntVLAIntSet. appendInto(IntVLA array)Appends to an existing (non-null)IntVLAwith all the int items in this IntSet.IntVLAIndexedDelaunayTriangulator. computeTriangles(double[] polygon, boolean sorted)IntVLAIndexedDelaunayTriangulator. computeTriangles(double[] points, int offset, int count, boolean sorted)Triangulates the given point cloud to a list of triangle indices that make up the Delaunay triangulation.IntVLAIntVLA. copy()static IntVLAIntVLA. deserializeFromString(String data)IntVLAArrangement. getMany(Iterable<? extends K> keys)IntVLAIntIntOrderedMap. getMany(int... keys)IntVLADice. independentRolls(int n, int sides)Get a list of the independent results of n rolls of dice with the given number of sides.IntVLAIntVLA. reorder(int... ordering)Given an array or varargs of replacement indices for the values of this IntVLA, reorders this so the first item in the returned version is the same asget(ordering[0])(with some care taken for negative or too-large indices), the second item in the returned version is the same asget(ordering[1]), etc.IntVLAIntVLA. shuffle(IRNG random)Shuffles this IntVLA in place using the given IRNG.IntVLAIntSet.IntSetIterator. toArray()Returns a new array containing the remaining keys.IntVLAIntSet.IntSetIterator. toArray(IntVLA array)IntVLAArrangement. valuesAsIntVLA()IntVLAIntIntOrderedMap. valuesAsList()static IntVLAIntVLA. with(int... array)Methods in squidpony.squidmath with parameters of type IntVLA Modifier and Type Method Description voidIntSet. addAll(IntVLA array)voidIntSet. addAll(IntVLA array, int offset, int length)voidIntVLA. addAll(IntVLA array)voidIntVLA. addAll(IntVLA array, int offset, int length)IntVLAIntSet. appendInto(IntVLA array)Appends to an existing (non-null)IntVLAwith all the int items in this IntSet.OrderedSet<K>Arrangement. keysAt(IntVLA positions)booleanIntVLA. removeAll(IntVLA array)Removes from this array all of elements contained in the specified array.static <T> voidTimSort. sort(T[] a, IntVLA order, int lo, int hi, Comparator<? super T> c)Modifiesorderby comparing items from indexloinclusive to indexhiexclusive in the arrayawith the Comparatorc; not likely to be used externally except by code that extends or re-implements SquidLib data structures.static <T> voidTimSort. sort(T[] a, IntVLA order, Comparator<? super T> c)Modifiesorderby comparing items in the arrayawith the Comparatorc; not likely to be used externally except by code that extends or re-implements SquidLib data structures.IntVLAIntSet.IntSetIterator. toArray(IntVLA array)voidIndexedDelaunayTriangulator. trim(IntVLA triangles, double[] points, double[] hull, int offset, int count)Removes all triangles with a centroid outside the specified hull, which may be concave.static IntSetIntSet. with(IntVLA array)Constructors in squidpony.squidmath with parameters of type IntVLA Constructor Description IntIntOrderedMap(IntVLA keyColl, IntVLA valueColl)Creates a new OrderedMap using the elements of two parallel arrays.IntIntOrderedMap(IntVLA keyColl, IntVLA valueColl, float f)Creates a new OrderedMap using the elements of two parallel arrays.IntVLA(IntVLA array)Creates a new array containing the elements in the specific array.