using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BilaPani { class MapField { public char Type = '.'; public int X = 0; public int Y = 0; public int Val = 0; public MapField(char t, int x, int y) { this.Type = t; this.X = x - 1; this.Y = y - 1; } public void CalcVal(MapField TeleField) { this.Val = Math.Abs(TeleField.X - this.X) + Math.Abs(TeleField.Y - this.Y); } } class Utils { } }