From ea2ed2c918bddf773bb8d10298016f4e5309d0b2 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 3 Oct 2012 08:52:11 +0000 Subject: Moved blockticking into blockhandler classes. Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/FireSimulator.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'source/FireSimulator.cpp') diff --git a/source/FireSimulator.cpp b/source/FireSimulator.cpp index 662c4f2d0..1dc104d0c 100644 --- a/source/FireSimulator.cpp +++ b/source/FireSimulator.cpp @@ -48,10 +48,10 @@ void cFireSimulator::Simulate( float a_Dt ) } -bool cFireSimulator::IsAllowedBlock( BLOCKTYPE a_BlockID ) +bool cFireSimulator::IsAllowedBlock( BLOCKTYPE a_BlockType ) { - return a_BlockID == E_BLOCK_FIRE - || IsBlockLava(a_BlockID); + return a_BlockType == E_BLOCK_FIRE + || IsBlockLava(a_BlockType); } void cFireSimulator::AddBlock(int a_X, int a_Y, int a_Z) @@ -78,26 +78,26 @@ void cFireSimulator::_AddBlock(int a_X, int a_Y, int a_Z) } -bool cFireSimulator::IsForeverBurnable( BLOCKTYPE a_BlockID ) +bool cFireSimulator::IsForeverBurnable( BLOCKTYPE a_BlockType ) { - return a_BlockID == E_BLOCK_BLOODSTONE; + return a_BlockType == E_BLOCK_BLOODSTONE; } -bool cFireSimulator::IsBurnable( BLOCKTYPE a_BlockID ) +bool cFireSimulator::IsBurnable( BLOCKTYPE a_BlockType ) { - return a_BlockID == E_BLOCK_PLANKS - || a_BlockID == E_BLOCK_LEAVES - || a_BlockID == E_BLOCK_LOG - || a_BlockID == E_BLOCK_WOOL - || a_BlockID == E_BLOCK_BOOKCASE - || a_BlockID == E_BLOCK_FENCE - || a_BlockID == E_BLOCK_TNT - || a_BlockID == E_BLOCK_VINES; + return a_BlockType == E_BLOCK_PLANKS + || a_BlockType == E_BLOCK_LEAVES + || a_BlockType == E_BLOCK_LOG + || a_BlockType == E_BLOCK_WOOL + || a_BlockType == E_BLOCK_BOOKCASE + || a_BlockType == E_BLOCK_FENCE + || a_BlockType == E_BLOCK_TNT + || a_BlockType == E_BLOCK_VINES; } -bool cFireSimulator::FiresForever( BLOCKTYPE a_BlockID ) +bool cFireSimulator::FiresForever( BLOCKTYPE a_BlockType ) { - return a_BlockID != E_BLOCK_FIRE; + return a_BlockType != E_BLOCK_FIRE; } bool cFireSimulator::BurnBlockAround(int a_X, int a_Y, int a_Z) -- cgit v1.2.3