public Figura(Figura fig) { if (fig != null) { BorW = fig.BorW; name = new Opisanie_figura(fig.name); } }
public Opisanie_figura(Opisanie_figura fig) { if (fig != null) { name = fig.name; ochki = fig.ochki; } }
public bool Compar(Opisanie_figura f) { if (f == null) { return(false); } else { return(name == f.name); } }
public static void init_figurs() { figury = new Figura[COLOR.Length, NAME_FIGURY.Length]; for (int i = 0; i < COLOR.Length; i++) { for (int g = 0; g < NAME_FIGURY.Length; g++) { Opisanie_figura fig = new Opisanie_figura(NAME_FIGURY[g], OCHKI_FIGURY[g]); figury[i, g] = new Figura(COLOR[i], fig); } } }
public Figura(string cvet, Opisanie_figura imya) { BorW = cvet; name = new Opisanie_figura(imya); }