#ifndef _TEMPARRAY_H_ #define _TEMPARRAY_H_ #include "Cubehole.h" #include "gl.h" class Temparray { public: Temparray(float initialtemp, int size[3]){ teperature = new float[size[0]][size[1]][size[2]][4][6]; cubearray = new Cubehole[size[0]][size[1]][size[2]]; tempInit(initialtemp, size); } ~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 = 0; Cubehole *cubearray = 0; void tempInit(float temp0, int size[3]){ for(int i=0; i