Uses of Class
squidpony.squidgrid.Radius
| 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.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 Radius in squidpony.squidai
Fields in squidpony.squidai declared as Radius Modifier and Type Field Description RadiusReach. metricDetermines how distance will be measured.Methods in squidpony.squidai that return Radius Modifier and Type Method Description static RadiusCustomDijkstraMap. findRadius(Measurement measurement)Gets the appropriate Radius corresponding to a DijkstraMap.Measurement.static RadiusDijkstraMap. findRadius(Measurement measurement)Gets the appropriate Radius corresponding to a Measurement.RadiusAOE. getMetric()Used to determine distance from origin for the purposes of selecting a target location that is within the bounds of minRange and maxRange.RadiusBeamAOE. getMetric()RadiusBlastAOE. getMetric()RadiusBurstAOE. getMetric()RadiusCloudAOE. getMetric()RadiusConeAOE. getMetric()RadiusLineAOE. getMetric()RadiusPointAOE. getMetric()RadiusBeamAOE. getRadiusType()RadiusBlastAOE. getRadiusType()RadiusBurstAOE. getRadiusType()RadiusCloudAOE. getRadiusType()RadiusConeAOE. getRadiusType()RadiusLineAOE. getRadiusType()Methods in squidpony.squidai with parameters of type Radius Modifier and Type Method Description static MeasurementCustomDijkstraMap. findMeasurement(Radius radius)Gets the appropriate DijkstraMap.Measurement to pass to a constructor if you already have a Radius.static MeasurementDijkstraMap. findMeasurement(Radius radius)Gets the appropriate Measurement to pass to a constructor if you already have a Radius.voidAOE. setMetric(Radius metric)Used to determine distance from origin for the purposes of selecting a target location that is within the bounds of minRange and maxRange.voidBeamAOE. setMetric(Radius metric)voidBlastAOE. setMetric(Radius metric)voidBurstAOE. setMetric(Radius metric)voidCloudAOE. setMetric(Radius metric)voidConeAOE. setMetric(Radius metric)voidLineAOE. setMetric(Radius metric)voidPointAOE. setMetric(Radius metric)voidBeamAOE. setRadiusType(Radius radiusType)voidBlastAOE. setRadiusType(Radius radiusType)voidBurstAOE. setRadiusType(Radius radiusType)voidCloudAOE. setRadiusType(Radius radiusType)voidConeAOE. setRadiusType(Radius radiusType)voidLineAOE. setRadiusType(Radius radiusType)Constructors in squidpony.squidai with parameters of type Radius Constructor Description BeamAOE(Coord origin, double angle, int length, int radius, Radius radiusType)BeamAOE(Coord origin, Coord end, int radius, Radius radiusType)BlastAOE(Coord center, int radius, Radius radiusType)BlastAOE(Coord center, int radius, Radius radiusType, int minRange, int maxRange)BurstAOE(Coord center, int radius, Radius radiusType)BurstAOE(Coord center, int radius, Radius radiusType, int minRange, int maxRange)CloudAOE(Coord center, int volume, Radius radiusType)CloudAOE(Coord center, int volume, Radius radiusType, int minRange, int maxRange)CloudAOE(Coord center, int volume, Radius radiusType, long rngSeed)CloudAOE(Coord center, int volume, Radius radiusType, long rngSeed, int minRange, int maxRange)ConeAOE(Coord origin, int radius, double angle, double span, Radius radiusType)ConeAOE(Coord origin, Coord endCenter, double span, Radius radiusType)GreasedZOI(Collection<Coord> influences, char[][] map, Radius radiusStrategy)Constructs a Zone of Influence map.GreasedZOI(Coord[][] influences, char[][] map, Radius radiusStrategy)Constructs a Zone of Influence map.GreasedZOI(Coord[] influences, char[][] map, Radius radiusStrategy)Constructs a Zone of Influence map.LineAOE(Coord origin, Coord end, int radius, Radius radiusType)LineAOE(Coord origin, Coord end, int radius, Radius radiusType, int minRange, int maxRange)Reach(int minDistance, int maxDistance, Radius metric)Constructs a Reach with the specified minDistance, to a minimum of 0, maxDistance, to a minimum equal to minDistance (after factoring in any change to meet the minimum of 0), and distance calculation metric as a Radius enum.Reach(int minDistance, int maxDistance, Radius metric, AimLimit limit)Constructs a Reach with the specified minDistance, to a minimum of 0, maxDistance, to a minimum equal to minDistance (after factoring in any change to meet the minimum of 0), and distance calculation metric as a Radius enum.Threat(Coord position, int minThreatDistance, int maxThreatDistance, Radius measurement)Threat(Coord position, int minThreatDistance, int maxThreatDistance, Radius measurement, AimLimit limits)WaypointPathfinder(char[][] map, Radius radius, IRNG rng)Calculates and stores the doors and doors-like connections ("chokepoints") on the given map as waypoints.WaypointPathfinder(char[][] map, Radius radius, IRNG rng, boolean thickCorridors)Calculates and stores the doors and doors-like connections ("chokepoints") on the given map as waypoints.WaypointPathfinder(char[][] map, Radius radius, IRNG rng, int fraction)Calculates and stores the specified fraction of walkable points from map as waypoints.ZOI(Coord[][] influences, char[][] map, Radius radiusStrategy)Constructs a Zone of Influence map.ZOI(Coord[] influences, char[][] map, Radius radiusStrategy)Constructs a Zone of Influence map. -
Uses of Radius in squidpony.squidgrid
Methods in squidpony.squidgrid that return Radius Modifier and Type Method Description RadiusLOS. getRadiusStrategy()Gets the radius strategy this uses.RadiusMeasurement. matchingRadius()Gets the appropriate Radius corresponding to a Measurement.static RadiusRadius. valueOf(String name)Returns the enum constant of this type with the specified name.static Radius[]Radius. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in squidpony.squidgrid with parameters of type Radius Modifier and Type Method Description double[][]FOV. calculateFOV(double[][] resistanceMap, int startX, int startY, double radius, Radius radiusTechnique)Calculates the Field Of View for the provided map from the given x, y coordinates.double[][]FOV. calculateFOV(double[][] resistanceMap, int startX, int startY, double radius, Radius radiusTechnique, double angle, double span)Calculates the Field Of View for the provided map from the given x, y coordinates.booleanRadius. equals2D(Radius other)Compares two Radius enums as if they are both in a 2D plane; that is, Radius.SPHERE is treated as equal to Radius.CIRCLE, Radius.CUBE is equal to Radius.SQUARE, and Radius.OCTAHEDRON is equal to Radius.DIAMOND.booleanLOS. isReachable(char[][] walls, int startx, int starty, int targetx, int targety, Radius radiusStrategy)Returns true if a line can be drawn from the start point to the target point without intervening obstructions.booleanLOS. isReachable(double[][] resistanceMap, int startx, int starty, int targetx, int targety, Radius radiusStrategy)Returns true if a line can be drawn from the start point to the target point without intervening obstructions.static MeasurementMeasurement. matchingMeasurement(Radius radius)Gets the appropriate Measurement that matches a Radius enum.Iterator<Coord>SpatialMap. radiusPositionIterator(int x, int y, Radius measurement, int distance)Iterates through positions in a region defined by a Radius (starting at a minimum of x - distance, y - distance and extending to x + distance, y + distance but skipping any positions where the Radius considers a position further from x, y than distance) in left-to-right, then top-to-bottom order (the same as reading a page of text).SpatialMap<I,E>SpatialMap. radiusSection(int x, int y, Radius measurement, int distance)Given the center position, Radius to determine measurement, and maximum distance from the center, creates a new SpatialMap from this one that refers only to the subsection of this SpatialMap shared with the area within the given distance from the center as measured by measurement.static double[][]FOV. reuseFOV(double[][] resistanceMap, double[][] light, int startX, int startY, double radius, Radius radiusTechnique)Calculates the Field Of View for the provided map from the given x, y coordinates.static double[][]FOV. reuseFOV(double[][] resistanceMap, double[][] light, int startX, int startY, double radius, Radius radiusTechnique, double angle, double span)Calculates the Field Of View for the provided map from the given x, y coordinates, lighting at the given angle in degrees and covering a span centered on that angle, also in degrees.static double[][]FOV. reuseFOV(double[][] resistanceMap, double[][] light, int startX, int startY, double radius, Radius radiusTechnique, double angle, double forward, double sideForward, double side, double sideBack, double back)Calculates the Field Of View for the provided map from the given x, y coordinates, lighting with the view "pointed at" the givenanglein degrees, extending to different ranges based on the direction the light is traveling.static double[][]FOV. reuseFOVSymmetrical(double[][] resistanceMap, double[][] light, int startX, int startY, double radius, Radius radiusTechnique)Calculates the Field Of View for the provided map from the given x, y coordinates.static double[][]FOV. reuseRippleFOV(double[][] resistanceMap, double[][] light, int rippleLooseness, int x, int y, double radius, Radius radiusTechnique)Like theFOV.reuseFOV(double[][], double[][], int, int, double, Radius)method, but this uses Ripple FOV with a configurable tightness/looseness (between 1, tightest, and 6, loosest).static double[][]FOV. reuseRippleFOV(double[][] resistanceMap, double[][] light, int rippleLooseness, int x, int y, double radius, Radius radiusTechnique, double angle, double span)Like theFOV.reuseFOV(double[][], double[][], int, int, double, Radius, double, double)method, but this uses Ripple FOV with a configurable tightness/looseness (between 1, tightest, and 6, loosest).voidLOS. setRadiusStrategy(Radius radiusStrategy)Set the radius strategy to the given Radius; the default is CIRCLE if this is not called.booleanLOS. spreadReachable(char[][] walls, int startx, int starty, int targetx, int targety, Radius radiusStrategy, int spread)Returns true if a line can be drawn from the any of the points within spread cells of the start point, to any of the corresponding points at the same direction and distance from the target point, without intervening obstructions.booleanLOS. spreadReachable(double[][] resistanceMap, int startx, int starty, int targetx, int targety, Radius radiusStrategy, int spread)Returns true if a line can be drawn from the any of the points within spread cells of the start point, to any of the corresponding points at the same direction and distance from the target point, without intervening obstructions. -
Uses of Radius in squidpony.squidgrid.mapping
Methods in squidpony.squidgrid.mapping with parameters of type Radius Modifier and Type Method Description OrderedSet<Coord>Placement. getHidingPlaces(Radius radiusStrategy, int range)Gets an OrderedSet of Coord, where each Coord is hidden (using the given radiusStrategy and range for FOV calculations) from any doorways or similar narrow choke-points where a character might be easily ambushed. -
Uses of Radius in squidpony.squidmath
Methods in squidpony.squidmath with parameters of type Radius Modifier and Type Method Description static short[]CoordPacker. radiate(short[] bounds, short[] start, int expansion, Radius metric)Given a packed array encoding a larger area, a packed array encoding one or more points inside bounds, and an amount of expansion, expands each cell in start by a radius, with a shape determined by metric, equal to expansion, limiting any expansion to within bounds and returning the final expanded (limited) packed data.