Class Threat

java.lang.Object
com.github.yellowstonegames.path.technique.Threat

public class Threat extends Object
A small class to store the area that a creature is perceived by other creatures to threaten. Composed only of a Coord position and a Reach reach.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.github.yellowstonegames.grid.Coord
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Threat(com.github.yellowstonegames.grid.Coord position, int maxThreatDistance)
     
    Threat(com.github.yellowstonegames.grid.Coord position, int minThreatDistance, int maxThreatDistance)
     
    Threat(com.github.yellowstonegames.grid.Coord position, int minThreatDistance, int maxThreatDistance, com.github.yellowstonegames.grid.Radius measurement)
     
    Threat(com.github.yellowstonegames.grid.Coord position, int minThreatDistance, int maxThreatDistance, com.github.yellowstonegames.grid.Radius measurement, AimLimit limits)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • position

      public com.github.yellowstonegames.grid.Coord position
    • reach

      public Reach reach
  • Constructor Details

    • Threat

      public Threat(com.github.yellowstonegames.grid.Coord position, int maxThreatDistance)
    • Threat

      public Threat(com.github.yellowstonegames.grid.Coord position, int minThreatDistance, int maxThreatDistance)
    • Threat

      public Threat(com.github.yellowstonegames.grid.Coord position, int minThreatDistance, int maxThreatDistance, com.github.yellowstonegames.grid.Radius measurement)
    • Threat

      public Threat(com.github.yellowstonegames.grid.Coord position, int minThreatDistance, int maxThreatDistance, com.github.yellowstonegames.grid.Radius measurement, AimLimit limits)
  • Method Details