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 AimLimitReach. limitAn 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 AimLimitAOE. getLimitType()Gets the AimLimit enum that can be used to restrict points this checks (defaults to null if not set).AimLimitBeamAOE. getLimitType()AimLimitBlastAOE. getLimitType()AimLimitBurstAOE. getLimitType()AimLimitCloudAOE. getLimitType()AimLimitConeAOE. getLimitType()AimLimitLineAOE. getLimitType()AimLimitPointAOE. getLimitType()static AimLimitAimLimit. 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 voidAOE. 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.voidBeamAOE. setLimitType(AimLimit limitType)voidBlastAOE. setLimitType(AimLimit limitType)voidBurstAOE. setLimitType(AimLimit limitType)voidCloudAOE. setLimitType(AimLimit limitType)voidConeAOE. setLimitType(AimLimit limitType)voidLineAOE. setLimitType(AimLimit limitType)voidPointAOE. setLimitType(AimLimit limitType)static booleanAreaUtils. 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)