2012-02-14 05:37:13 -08:00
|
|
|
#include "Globals.h"
|
2011-10-03 11:41:19 -07:00
|
|
|
#include "cWaterSimulator.h"
|
2011-12-23 17:36:15 -08:00
|
|
|
#include "Defines.h"
|
2012-02-14 05:37:13 -08:00
|
|
|
#include "cWorld.h"
|
2012-01-29 11:28:19 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-25 08:20:06 -08:00
|
|
|
cWaterSimulator::cWaterSimulator(cWorld *a_World)
|
|
|
|
: cFluidSimulator(a_World)
|
2011-10-03 11:41:19 -07:00
|
|
|
{
|
2011-12-25 08:20:06 -08:00
|
|
|
m_FluidBlock = E_BLOCK_WATER;
|
2012-02-14 05:37:13 -08:00
|
|
|
m_StationaryFluidBlock = E_BLOCK_STATIONARY_WATER;
|
2011-12-25 08:20:06 -08:00
|
|
|
m_MaxHeight = 7;
|
|
|
|
m_FlowReduction = 1;
|
2011-10-03 11:41:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-12-25 08:20:06 -08:00
|
|
|
bool cWaterSimulator::IsAllowedBlock(char a_BlockID)
|
2011-10-03 11:41:19 -07:00
|
|
|
{
|
2011-12-25 08:20:06 -08:00
|
|
|
return IsBlockWater(a_BlockID);
|
2011-10-03 11:41:19 -07:00
|
|
|
}
|
|
|
|
|