예제 #1
0
        // place cue ball in new location after scratch
        public static void PlaceCueBall(Point newLocation)
        {
            // makes sure the ball is being placed in a valid location
            if (imgCrosshair.Visible)
            {
                Colliders.Insert(0, cueBall);
                ActiveBalls.Insert(0, cueBall);
                cueBall.PlaceBall(FormToTablePoint(newLocation));

                Scratched            = false;
                imgCrosshair.Visible = false;
                return;
            }
        }