#ifndef _TEMPARRAY_H_ #define _TEMPARRAY_H_ #include "Cubehole.h" #include "gl.h" class Temparray { public: Temparray(float initialtemp, int x0, int y0, int z0){ float *temperature = new float[x0, y0, z0, 4, 6]; Cubehole *cubearray = new Cubehole[x0, y0, z0]; tempInit(initialtemp, x0, y0, z0); size[0] = x0; size[1] = y0; size[2] = z0; } ~Temparray(){ delete[] temperature; delete[] cubearray; } void setTemp(float temp, int x, int y, int z, int direct, int pos){ temperature[x, y, z, direct, pos] = temp; } void deactivateCube(int x, int y, int z){ for(int i=0; i<4; i++){ for(int j=0; j<6; j++){ setTemp(-100, x, y, z, i, j); } } } void display(); private: float *temperature; Cubehole *cubearray; int size[3]; void tempInit(float temp0, int x0, int y0, int z0){ for(int i=0; i