Exemple #1
0
        public Polje(Polje p)
        {
            X             = p.X; Y = p.Y;
            StackObjekata = new Stack <IObject>(p.StackObjekata);
            //for (int i=0; i<StackObjekata.Count; i++) {

            //}
        }
Exemple #2
0
        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);
                }
            }
        }
Exemple #3
0
        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]);
                }
            }
        }
Exemple #4
0
 public Potez(Coveculjak kk, Polje oo, Polje gg, Polje gdeg = null)
 {
     Ko = kk; Odakle = oo; Gde = gg; GdeGradi = gdeg;
 }
Exemple #5
0
 public Potez()
 {
     ko = null; odakle = gde = gdeGradi = null;
 }