Package squidpony.squidai

Tools for finding paths, optimizing targets for area-of-effect (AOE) abilities, and evaluating influence on a grid.
  • Interface Summary 
    Interface Description
    AOE
    Area of Effect interface meant to be implemented by various specific burst, line, flowing, and user-made AOE types.
  • Class Summary 
    Class Description
    AreaUtils
    Static utilities for use in AOE and anything else that might need HashMaps of Coord keys to Double values.
    BeamAOE
    Beam Area of Effect that affects an slightly expanded (Elias) line from a given origin Coord out to a given length, plus an optional radius of cells around the path of the line, while respecting obstacles in its path and possibly stopping if obstructed.
    BlastAOE
    An AOE type that has a center and a radius, and will blast outward and somewhat around corners/obstacles, out to the distance specified by radius.
    BurstAOE
    An AOE type that has a center and a radius, and uses shadowcasting to create a burst of rays from the center, out to the distance specified by radius.
    CloudAOE
    An AOE type that has a center and a volume, and will randomly expand in all directions until it reaches volume or cannot expand further.
    ConeAOE
    An AOE type that has an origin, a radius, an angle, and a span; it will blast from the origin to a length equal to radius along the angle (in degrees), moving somewhat around corners/obstacles, and also spread a total of span degrees around the angle (a span of 90 will affect a full quadrant, centered on angle).
    CustomDijkstraMap
    An alternative to AStarSearch when you want to fully explore a search space, or when you want a gradient floodfill, with customizable rules for what is considered adjacent.
    DijkstraMap
    An alternative to AStarSearch when you want to fully explore a search space, or when you want a gradient floodfill.
    GreasedZOI
    Calculates the Zone of Influence, also known as Zone of Control, for different points on a map.
    LineAOE
    Line Area of Effect that affects an slightly expanded (DDA) line from a given origin Coord to a given end Coord, plus an optional radius of cells around the path of the line, while respecting obstacles in its path and possibly stopping if obstructed.
    PointAOE
    An AOE type that has a center Coord only and only affects that single Coord.
    Reach
    A struct-like class that holds information about targeting rules for actions or other effects that reach from one square into another one, with certain potential restrictions.
    Technique
    A simple struct-like class that stores various public fields which describe the targeting properties of a skill, spell, tech, or any other game-specific term for a targeted (typically offensive) ability we call a Technique.
    Threat
    A small class to store the area that a creature is perceived by other creatures to threaten.
    WaypointPathfinder
    Pathfind to known connections between rooms or other "chokepoints" without needing full-map Dijkstra scans.
    ZOI
    Calculates the Zone of Influence, also known as Zone of Control, for different points on a map.
  • Enum Summary 
    Enum Description
    AimLimit
    Enum used for common targeting limitations (or lack thereof, in the case of AimLimit.FREE ).