示例#1
0
        public static void Main(string[] args)
        {
            Bounce.DisplayIntroText();
            var parms = BounceParams.Read();
            var game  = new Bounce(parms);

            Print(game.ToString());
        }
        public static BounceParams Read()
        {
            var p = new BounceParams
            {
                TimeIncrement = InputDouble("Time Increment (secs)"),
                Velocity      = InputDouble("Velocity (FPS)"),
                Coeffecient   = InputDouble("Coefficient")
            };

            return(p);
        }
 public Bounce(BounceParams parms)
 {
     _parms = parms;
 }