2012-01-08 11:39:03 -06:00
|
|
|
#ifndef AIR_H
|
|
|
|
#define AIR_H
|
|
|
|
#include "Config.h"
|
|
|
|
|
|
|
|
class Simulation;
|
|
|
|
|
|
|
|
class Air
|
|
|
|
{
|
|
|
|
public:
|
2012-08-21 06:26:39 -05:00
|
|
|
Simulation & sim;
|
2012-01-08 11:39:03 -06:00
|
|
|
int airMode;
|
2013-05-30 21:28:42 -05:00
|
|
|
float ambientAirTemp;
|
2012-01-08 11:39:03 -06:00
|
|
|
//Arrays from the simulation
|
|
|
|
unsigned char (*bmap)[XRES/CELL];
|
|
|
|
unsigned char (*emap)[XRES/CELL];
|
|
|
|
float (*fvx)[XRES/CELL];
|
|
|
|
float (*fvy)[XRES/CELL];
|
|
|
|
//
|
|
|
|
float vx[YRES/CELL][XRES/CELL];
|
|
|
|
float ovx[YRES/CELL][XRES/CELL];
|
|
|
|
float vy[YRES/CELL][XRES/CELL];
|
|
|
|
float ovy[YRES/CELL][XRES/CELL];
|
|
|
|
float pv[YRES/CELL][XRES/CELL];
|
|
|
|
float opv[YRES/CELL][XRES/CELL];
|
|
|
|
float hv[YRES/CELL][XRES/CELL];
|
|
|
|
float ohv[YRES/CELL][XRES/CELL]; // Ambient Heat
|
|
|
|
unsigned char bmap_blockair[YRES/CELL][XRES/CELL];
|
2012-04-17 11:32:06 -05:00
|
|
|
unsigned char bmap_blockairh[YRES/CELL][XRES/CELL];
|
2012-01-08 11:39:03 -06:00
|
|
|
float kernel[9];
|
|
|
|
void make_kernel(void);
|
|
|
|
void update_airh(void);
|
|
|
|
void update_air(void);
|
2012-07-29 06:18:07 -05:00
|
|
|
void Clear();
|
2012-12-17 20:11:33 -06:00
|
|
|
void ClearAirH();
|
2012-08-16 06:15:29 -05:00
|
|
|
void Invert();
|
2012-08-21 06:26:39 -05:00
|
|
|
Air(Simulation & sim);
|
2012-01-08 11:39:03 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|