public CubePosition(Orient x, Orient y, Orient z) { orientList = new List <Orient>(); orientList.Add(new Orient()); orientList.Add(new Orient()); orientList.Add(new Orient()); this.X = new Orient(x); this.Y = new Orient(y); this.Z = new Orient(z); }
public void InitRubikCube() { for (int i = 0; i < 27; ++i) { int x = i / 9; int y = (i - x * 9) / 3; int z = i - x * 9 - y * 3; Orient dx = new Orient(Alis.X, (AlisDirection)(x - 1)); Orient dy = new Orient(Alis.Y, (AlisDirection)(y - 1)); Orient dz = new Orient(Alis.Z, (AlisDirection)(z - 1)); CubePosition pos = new CubePosition(dx, dy, dz); listCube.Add(new MyCube(pos)); } }
public Orient(Orient o) { this.ali = o.ali; this.direc = o.direc; }