001package squidpony.squidai;
002
003import squidpony.squidgrid.Radius;
004import squidpony.squidmath.Coord;
005
006/**
007 * A small class to store the area that a creature is perceived by other creatures to threaten.
008 * Created by Tommy Ettinger on 11/8/2015.
009 */
010public class Threat {
011
012    public Coord position;
013    public Reach reach;
014
015    public Threat(Coord position, int maxThreatDistance) {
016        this.position = position;
017        reach = new Reach(maxThreatDistance);
018    }
019
020    public Threat(Coord position, int minThreatDistance, int maxThreatDistance) {
021        this.position = position;
022        reach = new Reach(minThreatDistance, maxThreatDistance);
023    }
024    public Threat(Coord position, int minThreatDistance, int maxThreatDistance, Radius measurement) {
025        this.position = position;
026        reach = new Reach(minThreatDistance, maxThreatDistance, measurement);
027    }
028    public Threat(Coord position, int minThreatDistance, int maxThreatDistance, Radius measurement, AimLimit limits) {
029        this.position = position;
030        reach = new Reach(minThreatDistance, maxThreatDistance, measurement, limits);
031    }
032}