コード例 #1
0
        public void AddGauntlet(int width, Point p)
        {
            gauntlet g = new gauntlet();

            g.Position = p;
            gauntlets.Add(g);
        }
コード例 #2
0
 public bool Hit(gauntlet g)
 {
     if (g.Position.X >= center.X - 80 && g.Position.X + 80 <= center.X + 90 + 80 && g.Position.Y + 80 >= center.Y)
     {
         return(true);
     }
     return(false);
 }