public Player(string name, int level, char gender, int[] abilityScoreValues, Race race, Caste caste, int team = 0, MapPoint location = null) :
     base(name, level, gender, race, caste, team, abilityScoreValues, location)
 {
     Team = team;
 }
 public bool InRangeOf(MapPoint point, int range)
 {
     return(DistanceTo(point) <= range);
 }
 public static bool IsPointOnLineSegment(MapPoint start, MapPoint end, MapPoint middle)
 {
     return(start.DistanceTo(middle) + middle.DistanceTo(end) == start.DistanceTo(end));
 }
 public int DistanceTo(MapPoint point)
 {
     return(DistanceTo(point.X, point.Y));
 }