Beispiel #1
0
 public static Pos ParsePos(string str) {
     int spaceIdx = str.IndexOf(' ');
     var newPos = new Pos {
         X = Int32.Parse(str.Substring(0, spaceIdx)),
         Y = Int32.Parse(str.Substring(spaceIdx + 1))
     };
     return newPos;
 }
Beispiel #2
0
 public TunnelCell(string label)
     : base(label) {
     Pos = Pos.ParsePos(label);
 }