Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public Bounce(BounceParams parms)
 {
     _parms = parms;
 }