1
0

Removed place on top and side preventions

This commit is contained in:
Tiger Wang 2013-09-13 20:17:39 +01:00
parent f300ed54e5
commit 1cbb38fb02
13 changed files with 0 additions and 113 deletions

View File

@ -37,12 +37,6 @@ public:
}
virtual bool DoesAllowBlockOnTop() override
{
return false;
}
// Bed specific helper functions
static NIBBLETYPE RotationToMetaData(double a_Rotation)
{

View File

@ -63,12 +63,6 @@ public:
return true;
}
virtual bool CanBePlacedOnSide(void) override
{
return false;
}
void OnUpdate(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override

View File

@ -20,12 +20,6 @@ public:
}
virtual bool DoesAllowBlockOnTop() override
{
return false;
}
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_Meta) override
{
MTRand rand;

View File

@ -28,18 +28,6 @@ public:
{
return (a_RelY > 0) && (a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ) == E_BLOCK_SAND);
}
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
virtual bool CanBePlacedOnSide() override
{
return false;
}
} ;

View File

@ -68,12 +68,6 @@ public:
}
virtual bool CanBePlacedOnSide(void) override
{
return false;
}
virtual bool CanBeAt(int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
{
return ((a_RelY > 0) && (a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ) != E_BLOCK_AIR));

View File

@ -30,18 +30,6 @@ public:
}
virtual bool DoesAllowBlockOnTop(void) override
{
return true;
}
virtual bool CanBePlacedOnSide(void) override
{
return false;
}
virtual const char * GetStepSound(void) override
{
return "step.grass";

View File

@ -42,12 +42,6 @@ public:
a_BlockMeta = cRedstoneSimulator::LeverDirectionToMetaData(a_BlockFace);
return true;
}
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
virtual const char * GetStepSound(void) override

View File

@ -46,18 +46,6 @@ public:
}
return true;
}
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
virtual bool CanBePlacedOnSide(void) override
{
return false;
}
virtual const char * GetStepSound(void) override

View File

@ -16,11 +16,6 @@ public:
virtual void OnDestroyed(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override;
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
virtual bool CanBeAt(int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
{
@ -33,12 +28,6 @@ public:
// Reset meta to 0
a_Pickups.push_back(cItem(E_ITEM_REDSTONE_DUST, 1));
}
virtual bool CanBePlacedOnSide(void) override
{
return false;
}
} ;

View File

@ -32,23 +32,11 @@ public:
}
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
virtual bool CanBeAt(int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
{
return ((a_RelY > 0) && (a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ) != E_BLOCK_AIR));
}
virtual bool CanBePlacedOnSide(void) override
{
return false;
}
virtual const char * GetStepSound(void) override
{
return "step.wood";

View File

@ -29,12 +29,6 @@ public:
{
return (a_RelY > 0) && IsBlockTypeOfDirt(a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ));
}
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
void OnUpdate(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override
@ -50,12 +44,6 @@ public:
a_World->SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta | 0x08);
}
}
virtual bool CanBePlacedOnSide() override
{
return false;
}
virtual const char * GetStepSound(void) override

View File

@ -23,12 +23,6 @@ public:
{
a_Pickups.push_back(cItem(E_ITEM_SIGN, 1, 0));
}
virtual bool DoesAllowBlockOnTop(void) override
{
return false;
}
virtual const char * GetStepSound(void) override

View File

@ -77,12 +77,6 @@ public:
{
a_World->GrowSugarcane(a_BlockX, a_BlockY, a_BlockZ, 1);
}
virtual bool CanBePlacedOnSide() override
{
return false;
}
virtual const char * GetStepSound(void) override