2012-02-14 08:37:13 -05:00
|
|
|
#include "Globals.h"
|
2011-11-06 04:23:20 -05:00
|
|
|
#include "cLavaSimulator.h"
|
2011-12-25 11:20:06 -05:00
|
|
|
#include "Defines.h"
|
2012-02-14 08:37:13 -05:00
|
|
|
#include "cWorld.h"
|
2011-11-06 04:23:20 -05:00
|
|
|
|
|
|
|
|
2011-12-25 11:20:06 -05:00
|
|
|
cLavaSimulator::cLavaSimulator(cWorld *a_World)
|
|
|
|
: cFluidSimulator(a_World)
|
2011-11-06 04:23:20 -05:00
|
|
|
{
|
2011-12-25 11:20:06 -05:00
|
|
|
m_FluidBlock = E_BLOCK_LAVA;
|
2012-02-14 08:37:13 -05:00
|
|
|
m_StationaryFluidBlock = E_BLOCK_STATIONARY_LAVA;
|
2011-12-25 11:20:06 -05:00
|
|
|
m_MaxHeight = 6;
|
|
|
|
m_FlowReduction = 2;
|
2011-11-06 04:23:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-12-25 11:20:06 -05:00
|
|
|
bool cLavaSimulator::IsAllowedBlock(char a_BlockID)
|
2011-11-06 04:23:20 -05:00
|
|
|
{
|
2011-12-25 11:20:06 -05:00
|
|
|
return IsBlockLava(a_BlockID);
|
|
|
|
}
|