Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public abstract Bullet createbullet(Soldier personfiring);