Uses of Class
squidpony.squidai.AimLimit
Package | Description |
---|---|
squidpony.squidai |
Tools for finding paths, optimizing targets for area-of-effect (AOE) abilities, and evaluating influence on a grid.
|
-
Uses of AimLimit in squidpony.squidai
Fields in squidpony.squidai declared as AimLimit Modifier and Type Field Description AimLimit
Reach. limit
An AimLimit enum that may be used to determine limitations to targeting cells; defaults to FREE (no limits other than those from distance), but can also be set to ORTHOGONAL (rook move in chess), DIAGONAL (bishop move in chess), EIGHT_WAY (queen or king move in chess), or null (which usually)Methods in squidpony.squidai that return AimLimit Modifier and Type Method Description AimLimit
AOE. getLimitType()
Gets the AimLimit enum that can be used to restrict points this checks (defaults to null if not set).AimLimit
BeamAOE. getLimitType()
AimLimit
BlastAOE. getLimitType()
AimLimit
BurstAOE. getLimitType()
AimLimit
CloudAOE. getLimitType()
AimLimit
ConeAOE. getLimitType()
AimLimit
LineAOE. getLimitType()
AimLimit
PointAOE. getLimitType()
static AimLimit
AimLimit. valueOf(String name)
Returns the enum constant of this type with the specified name.static AimLimit[]
AimLimit. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in squidpony.squidai with parameters of type AimLimit Modifier and Type Method Description void
AOE. setLimitType(AimLimit limitType)
You can use limitType to restrict any Points that might be processed based on the given origin (which will be used as the geometric origin for any calculations this makes) with AimLimit values having the following meanings: AimLimit.FREE makes no restrictions; it is equivalent here to passing null for limit. AimLimit.EIGHT_WAY will only consider Points to be valid targets if they are along a straight line with an angle that is a multiple of 45 degrees, relative to the positive x axis.void
BeamAOE. setLimitType(AimLimit limitType)
void
BlastAOE. setLimitType(AimLimit limitType)
void
BurstAOE. setLimitType(AimLimit limitType)
void
CloudAOE. setLimitType(AimLimit limitType)
void
ConeAOE. setLimitType(AimLimit limitType)
void
LineAOE. setLimitType(AimLimit limitType)
void
PointAOE. setLimitType(AimLimit limitType)
static boolean
AreaUtils. verifyLimit(AimLimit limit, Coord origin, Coord end)
Checks that the given end Coord can be targeted from the given origin Coord given the directional targeting rules specified by limit.Constructors in squidpony.squidai with parameters of type AimLimit Constructor Description 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, AimLimit limits)