Package | Description |
---|---|
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.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
Modifier and Type | Method and Description |
---|---|
IntDoubleOrderedMap |
CustomDijkstraMap.floodFill(int radius,
int... starts)
A simple limited flood-fill that returns a OrderedMap of Coord keys to the Double values in the CustomDijkstraMap, only
calculating out to a number of steps determined by limit.
|
Modifier and Type | Field and Description |
---|---|
IntDoubleOrderedMap |
Adjacency.costRules
Used in place of a double[][] of costs in CustomDijkstraMap; allows you to set the costs to enter tiles (via
Adjacency.addCostRule(char, double) or Adjacency.addCostRule(char, double, boolean) if the map has rotations). |
Modifier and Type | Method and Description |
---|---|
IntDoubleOrderedMap |
Adjacency.addCostRule(char tile,
double cost) |
abstract IntDoubleOrderedMap |
Adjacency.addCostRule(char tile,
double cost,
boolean isRotation) |
IntDoubleOrderedMap |
Adjacency.BasicAdjacency.addCostRule(char tile,
double cost,
boolean isRotation) |
IntDoubleOrderedMap |
Adjacency.ThinWallAdjacency.addCostRule(char tile,
double cost,
boolean isRotation) |
IntDoubleOrderedMap |
Adjacency.RotationAdjacency.addCostRule(char tile,
double cost,
boolean isRotation) |
IntDoubleOrderedMap |
Adjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value) |
abstract IntDoubleOrderedMap |
Adjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value,
int size) |
IntDoubleOrderedMap |
Adjacency.BasicAdjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value,
int size) |
IntDoubleOrderedMap |
Adjacency.RotationAdjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value,
int size) |
Modifier and Type | Method and Description |
---|---|
IntDoubleOrderedMap |
Adjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value) |
abstract IntDoubleOrderedMap |
Adjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value,
int size) |
IntDoubleOrderedMap |
Adjacency.BasicAdjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value,
int size) |
IntDoubleOrderedMap |
Adjacency.RotationAdjacency.putAllVariants(IntDoubleOrderedMap map,
int key,
double value,
int size) |
Modifier and Type | Method and Description |
---|---|
IntDoubleOrderedMap |
IntDoubleOrderedMap.clone()
Returns a deep copy of this map.
|
IntDoubleOrderedMap |
IntDoubleOrderedMap.reorder(int... ordering)
Given an array or varargs of replacement indices for this OrderedMap's iteration order, reorders this so the
first item in the returned version is the same as
getAt(ordering[0]) (with some care taken for negative
or too-large indices), the second item in the returned version is the same as getAt(ordering[1]) , etc. |
IntDoubleOrderedMap |
IntDoubleOrderedMap.shuffle(IRNG rng)
Randomly alters the iteration order for this OrderedMap using the given IRNG to shuffle.
|
Modifier and Type | Method and Description |
---|---|
void |
IntDoubleOrderedMap.putAll(IntDoubleOrderedMap m)
Puts all key-value pairs in the Map m into this OrderedMap.
|
Constructor and Description |
---|
IntDoubleOrderedMap(IntDoubleOrderedMap m)
Creates a new OrderedMap with 0.75f as load factor copying a given one.
|
IntDoubleOrderedMap(IntDoubleOrderedMap m,
float f)
Creates a new OrderedMap copying a given one.
|
Copyright © Eben Howard 2012–2022. All rights reserved.