Exemplo n.º 1
0
        internal bool Eat(Food food)
        {
            Point head = GenNextPoint();

            if (head.CheckHit(food, "xy"))
            {
                Point nosh = new Point(food);
                nosh.CopyParameter(head, "s");
                plist.Add(nosh);
                nosh.Draw(color);
                return(true);
            }
            else
            {
                return(false);
            }
        }