public Polje(Polje p) { X = p.X; Y = p.Y; StackObjekata = new Stack <IObject>(p.StackObjekata); //for (int i=0; i<StackObjekata.Count; i++) { //} }
public Tabla() { Beli1 = Beli2 = Crni1 = Crni2 = null; Matrica = new Polje[5][]; for (int i = 0; i < 5; i++) { Matrica[i] = new Polje[5]; } for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { Matrica[i][j] = new Polje(i, j); } } }
public Tabla(Tabla t) { Beli1 = new Coveculjak(t.Beli1); Beli2 = new Coveculjak(t.Beli2); Crni1 = new Coveculjak(t.Crni1); Crni2 = new Coveculjak(t.Crni2); Matrica = new Polje[5][]; for (int i = 0; i < 5; i++) { Matrica[i] = new Polje[5]; } for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { Matrica[i][j] = new Polje(t.Matrica[i][j]); } } }
public Potez(Coveculjak kk, Polje oo, Polje gg, Polje gdeg = null) { Ko = kk; Odakle = oo; Gde = gg; GdeGradi = gdeg; }
public Potez() { ko = null; odakle = gde = gdeGradi = null; }