public bool istouching(Soldier s) { double distance = Math.Sqrt((s.location.X - this.location.X) * (s.location.X - this.location.X) + (s.location.Y - this.location.Y) * (s.location.Y - this.location.Y)); return(distance < this.radius + s.radius); }
public abstract Bullet createbullet(Soldier personfiring);