Ejemplo n.º 1
0
        public void SetPlateau(string plateauInput)
        {
            var array = plateauInput.Split(' ');
            int width;
            int height;

            if (array.Length != 2 || !int.TryParse(array[0], out width) || !int.TryParse(array[1], out height))
            {
                throw new BadFormatException();
            }
            _Plateau = new Plateau()
            {
                Width = width, Height = height
            };
        }
Ejemplo n.º 2
0
 public Navigation()
 {
     _Plateau  = new Plateau();
     _Position = new Position();
     _Position.PositionChanging += _Position_PositionChanging;
 }