public BirdControllerModel GetBirdControllerModel()
        {
            var model = new BirdControllerModel
            {
                ScreenHeight    = config.ScreenHeight,
                RefreshInterval = config.RefreshInterval,
                GravityConstant = config.GravityConstant,
                JumpAmount      = config.JumpAmount
            };

            return(model);
        }
 public BirdController(BirdControllerModel model)
 {
     deltaTime       = model.RefreshInterval;
     fallingConstant = model.GravityConstant;
     jumpConstant    = model.JumpAmount;
     screenHeight    = model.ScreenHeight;
     bird            = new Bird
     {
         Score     = 0,
         Direction = BirdDirection.Side,
         Position  = screenHeight / 2,
         Velocity  = 0
     };
 }