Example #1
0
 public Cubo(Punto3D p1)
 {
     posicion = p1;
     initMatrixColors();
     //colores = new double[6, 3] { { -5.3, -5.0, 10 }, { 0.3, 1.25, 0.0 }, { 50, 0, 0.5 }, { 0.1, 0.7, 20 }, { 0.5, 0.0, 10 }, { 10, 3.1, -1.25 } };
     i = 0;
 }
Example #2
0
 public Cubo()
 {
     // inicializa una matriz de colores
     initMatrixColors();
     i        = 1;
     posicion = new Punto3D();
 }
        //public Tipo_Tetromino tipo { get; set; }

        public Tetromino(Tipo_Tetromino tipo = Tipo_Tetromino.CUBO)
        {
            color = 1;
            pos   = new Punto3D(0, 0, 15);

            figura = new int[3, 3, 3];
            //this.tipo = tipo;
        }
 public void clonar(Tetromino aux)
 {
     for (int i = 0; i < 3; i++)
     {
         for (int j = 0; j < 3; j++)
         {
             for (int k = 0; k < 3; k++)
             {
                 if (aux.figura[i, j, k] != 0)
                 {
                     figura[i, j, k] = 1;
                 }
             }
         }
     }
     color = aux.color;
     pos   = aux.pos;
 }
Example #5
0
 public void SetPosicion(Punto3D p1)
 {
     posicion = p1;
 }
 public void setPos(Punto3D Newpos) => pos = Newpos;