Using Super.

This commit is contained in:
Mattes D
2020-04-16 20:07:48 +00:00
committed by Alexander Harkness
parent f931590bf0
commit 9ee47e5999
399 changed files with 1815 additions and 1381 deletions
+7 -6
View File
@@ -10,14 +10,15 @@
class cBlockAnvilHandler :
class cBlockAnvilHandler:
public cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>
{
public:
using super = cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>;
using Super = cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>;
cBlockAnvilHandler(BLOCKTYPE a_BlockType)
: super(a_BlockType)
public:
cBlockAnvilHandler(BLOCKTYPE a_BlockType):
Super(a_BlockType)
{
}
@@ -48,7 +49,7 @@ public:
BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta
) override
{
if (!super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta))
if (!Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta))
{
return false;
}
+2 -2
View File
@@ -18,12 +18,12 @@ class cWorldInterface;
class cBlockBedHandler :
public cYawRotator<cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01>
{
using super = cYawRotator<cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01>;
using Super = cYawRotator<cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01>;
public:
cBlockBedHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -12,12 +12,12 @@
class cBlockBigFlowerHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockBigFlowerHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockBrewingStandHandler :
public cBlockEntityHandler
{
using super = cBlockEntityHandler;
using Super = cBlockEntityHandler;
public:
cBlockBrewingStandHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockButtonHandler :
public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, true>>
{
using super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, true>>;
using Super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, true>>;
public:
cBlockButtonHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+3 -3
View File
@@ -10,12 +10,12 @@
class cBlockCactusHandler :
public cClearMetaOnDrop<cBlockPlant<false>>
{
using super = cClearMetaOnDrop<cBlockPlant<false>>;
using Super = cClearMetaOnDrop<cBlockPlant<false>>;
public:
cBlockCactusHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -159,7 +159,7 @@ protected:
// Only allow growing if there's an air block above:
if (((a_RelPos.y + 1) < cChunkDef::Height) && (a_Chunk.GetBlock(a_RelPos.addedY(1)) == E_BLOCK_AIR))
{
return super::CanGrow(a_Chunk, a_RelPos);
return Super::CanGrow(a_Chunk, a_RelPos);
}
return paStay;
}
+2 -2
View File
@@ -9,10 +9,10 @@
class cBlockCakeHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockCakeHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -17,12 +17,12 @@
class cBlockCarpetHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockCarpetHandler(BLOCKTYPE a_BlockType) :
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockCauldronHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockCauldronHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+3 -3
View File
@@ -13,12 +13,12 @@
class cBlockChestHandler :
public cYawRotator<cContainerEntityHandler<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05>
{
using super = cYawRotator<cContainerEntityHandler<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05>;
using Super = cYawRotator<cContainerEntityHandler<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05>;
public:
cBlockChestHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -48,7 +48,7 @@ public:
}
// Get meta as if this was a single-chest:
if (!super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta))
if (!Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta))
{
return false;
}
+2 -2
View File
@@ -10,11 +10,11 @@
class cBlockCocoaPodHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockCocoaPodHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockCommandBlockHandler :
public cBlockEntityHandler
{
using super = cBlockEntityHandler;
using Super = cBlockEntityHandler;
public:
cBlockCommandBlockHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -12,12 +12,12 @@
class cBlockComparatorHandler :
public cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>
{
using super = cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>;
using Super = cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>;
public:
cBlockComparatorHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+3 -3
View File
@@ -10,12 +10,12 @@
class cBlockConcretePowderHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockConcretePowderHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -33,7 +33,7 @@ public:
{
return;
}
super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk);
Super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk);
}
+2 -2
View File
@@ -13,12 +13,12 @@ template <NIBBLETYPE RipeMeta>
class cBlockCropsHandler:
public cBlockPlant<true>
{
using super = cBlockPlant<true>;
using Super = cBlockPlant<true>;
public:
cBlockCropsHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+13 -4
View File
@@ -7,21 +7,30 @@
class cBlockDeadBushHandler :
class cBlockDeadBushHandler:
public cBlockHandler
{
typedef cBlockHandler super;
using Super = cBlockHandler;
public:
cBlockDeadBushHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
cBlockDeadBushHandler(BLOCKTYPE a_BlockType):
Super(a_BlockType)
{
}
virtual bool DoesIgnoreBuildCollision(cChunkInterface & a_ChunkInterface, Vector3i a_Pos, cPlayer & a_Player, NIBBLETYPE a_Meta) override
{
return true;
}
virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
{
if (a_RelY <= 0)
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockDirtHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockDirtHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+3 -3
View File
@@ -8,7 +8,7 @@
cBlockDoorHandler::cBlockDoorHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -123,7 +123,7 @@ NIBBLETYPE cBlockDoorHandler::MetaRotateCCW(NIBBLETYPE a_Meta)
else
{
// Rotate the bottom block
return super::MetaRotateCCW(a_Meta);
return Super::MetaRotateCCW(a_Meta);
}
}
@@ -141,7 +141,7 @@ NIBBLETYPE cBlockDoorHandler::MetaRotateCW(NIBBLETYPE a_Meta)
else
{
// Rotate the bottom block
return super::MetaRotateCW(a_Meta);
return Super::MetaRotateCW(a_Meta);
}
}
+2 -2
View File
@@ -14,7 +14,7 @@
class cBlockDoorHandler :
public cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>
{
using super = cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>;
using Super = cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>;
public:
@@ -50,7 +50,7 @@ public:
return false;
}
return super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta);
return Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta);
}
virtual cBoundingBox GetPlacementCollisionBox(BLOCKTYPE a_XM, BLOCKTYPE a_XP, BLOCKTYPE a_YM, BLOCKTYPE a_YP, BLOCKTYPE a_ZM, BLOCKTYPE a_ZP) override;
+2 -2
View File
@@ -16,12 +16,12 @@
class cBlockDropSpenserHandler :
public cPitchYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>
{
using super = cPitchYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>;
using Super = cPitchYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>;
public:
cBlockDropSpenserHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockEnderchestHandler :
public cYawRotator<cBlockEntityHandler>
{
using super = cYawRotator<cBlockEntityHandler>;
using Super = cYawRotator<cBlockEntityHandler>;
public:
cBlockEnderchestHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -15,12 +15,12 @@ Forwards the "use" event to the block entity. */
class cBlockEntityHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockEntityHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -19,12 +19,12 @@
class cBlockFarmlandHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockFarmlandHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockFenceGateHandler :
public cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x02, 0x03, 0x00, 0x01>>
{
using super = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x02, 0x03, 0x00, 0x01>>;
using Super = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x02, 0x03, 0x00, 0x01>>;
public:
cBlockFenceGateHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockFlowerPotHandler :
public cBlockEntityHandler
{
using super = cBlockEntityHandler;
using Super = cBlockEntityHandler;
public:
cBlockFlowerPotHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+11 -9
View File
@@ -7,14 +7,15 @@
class cBlockFluidHandler :
class cBlockFluidHandler:
public cBlockHandler
{
typedef cBlockHandler super;
using Super = cBlockHandler;
public:
cBlockFluidHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
cBlockFluidHandler(BLOCKTYPE a_BlockType):
Super(a_BlockType)
{
}
@@ -61,7 +62,7 @@ public:
break;
}
}
super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk);
Super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk);
}
@@ -96,14 +97,15 @@ public:
class cBlockLavaHandler :
class cBlockLavaHandler:
public cBlockFluidHandler
{
typedef cBlockFluidHandler super;
using Super = cBlockFluidHandler;
public:
cBlockLavaHandler(BLOCKTYPE a_BlockType) :
super(a_BlockType)
cBlockLavaHandler(BLOCKTYPE a_BlockType):
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockFurnaceHandler :
public cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05>
{
using super = cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05>;
using Super = cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05>;
public:
cBlockFurnaceHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockHopperHandler :
public cPitchYawRotator<cContainerEntityHandler<cBlockEntityHandler>>
{
using super = cPitchYawRotator<cContainerEntityHandler<cBlockEntityHandler>>;
using Super = cPitchYawRotator<cContainerEntityHandler<cBlockEntityHandler>>;
public:
cBlockHopperHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockIceHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockIceHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockLadderHandler :
public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x05, 0x03, 0x04> >
{
using super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x05, 0x03, 0x04>>;
using Super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x05, 0x03, 0x04>>;
public:
cBlockLadderHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+4 -4
View File
@@ -9,12 +9,12 @@
class cBlockLeverHandler :
public cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, false>
{
using super = cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, false>;
using Super = cMetaRotator<cBlockHandler, 0x07, 0x04, 0x01, 0x03, 0x02, false>;
public:
cBlockLeverHandler(BLOCKTYPE a_BlockType) :
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -164,7 +164,7 @@ public:
case 0x05: return 0x06; // Ground rotation
case 0x06: return 0x05;
default: return super::MetaRotateCCW(a_Meta); // Wall Rotation
default: return Super::MetaRotateCCW(a_Meta); // Wall Rotation
}
}
@@ -182,7 +182,7 @@ public:
case 0x05: return 0x06; // Ground rotation
case 0x06: return 0x05;
default: return super::MetaRotateCW(a_Meta); // Wall Rotation
default: return Super::MetaRotateCW(a_Meta); // Wall Rotation
}
}
+5 -4
View File
@@ -7,14 +7,15 @@
class cBlockLilypadHandler :
class cBlockLilypadHandler:
public cClearMetaOnDrop<cBlockHandler>
{
typedef cClearMetaOnDrop<cBlockHandler> super;
using Super = cClearMetaOnDrop<cBlockHandler>;
public:
cBlockLilypadHandler(BLOCKTYPE a_BlockType) :
super(a_BlockType)
cBlockLilypadHandler(BLOCKTYPE a_BlockType):
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockMelonHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockMelonHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,11 +11,11 @@
class cBlockMobHeadHandler :
public cBlockEntityHandler
{
using super = cBlockEntityHandler;
using Super = cBlockEntityHandler;
public:
cBlockMobHeadHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockMushroomHandler:
public cClearMetaOnDrop<cBlockHandler>
{
using super = cClearMetaOnDrop<cBlockHandler>;
using Super = cClearMetaOnDrop<cBlockHandler>;
public:
cBlockMushroomHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockNetherWartHandler :
public cBlockPlant<false>
{
using super = cBlockPlant<false>;
using Super = cBlockPlant<false>;
public:
cBlockNetherWartHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -8,11 +8,11 @@
class cBlockObserverHandler:
public cClearMetaOnDrop<cPitchYawRotator<cBlockHandler>>
{
using super = cClearMetaOnDrop<cPitchYawRotator<cBlockHandler>>;
using Super = cClearMetaOnDrop<cPitchYawRotator<cBlockHandler>>;
public:
cBlockObserverHandler(BLOCKTYPE a_BlockType) : super(a_BlockType)
cBlockObserverHandler(BLOCKTYPE a_BlockType) : Super(a_BlockType)
{
}
+5 -4
View File
@@ -7,13 +7,14 @@
class cBlockOreHandler :
class cBlockOreHandler:
public cBlockHandler
{
typedef cBlockHandler super;
using Super = cBlockHandler;
public:
cBlockOreHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
cBlockOreHandler(BLOCKTYPE a_BlockType):
Super(a_BlockType)
{
}
+2 -2
View File
@@ -18,7 +18,7 @@
cBlockPistonHandler::cBlockPistonHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -320,7 +320,7 @@ void cBlockPistonHandler::RetractPiston(Vector3i a_BlockPos, cWorld & a_World)
// cBlockPistonHeadHandler:
cBlockPistonHeadHandler::cBlockPistonHeadHandler(void) :
super(E_BLOCK_PISTON_EXTENSION)
Super(E_BLOCK_PISTON_EXTENSION)
{
}
+2 -2
View File
@@ -19,7 +19,7 @@ class cWorld;
class cBlockPistonHandler:
public cClearMetaOnDrop<cPitchYawRotator<cBlockHandler, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>>
{
using super = cClearMetaOnDrop<cPitchYawRotator<cBlockHandler, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>>;
using Super = cClearMetaOnDrop<cPitchYawRotator<cBlockHandler, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>>;
public:
@@ -145,7 +145,7 @@ private:
class cBlockPistonHeadHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockPistonHeadHandler(void);
+2 -2
View File
@@ -12,13 +12,13 @@ template <bool NeedsLightToGrow>
class cBlockPlant:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockPlant(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -9,12 +9,12 @@
class cBlockPressurePlateHandler :
public cClearMetaOnDrop<cBlockHandler>
{
using super = cClearMetaOnDrop<cBlockHandler>;
using Super = cClearMetaOnDrop<cBlockHandler>;
public:
cBlockPressurePlateHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -8,11 +8,11 @@
class cBlockPumpkinHandler :
public cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>>
{
using super = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>>;
using Super = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>>;
public:
cBlockPumpkinHandler(BLOCKTYPE a_BlockType) :
super(a_BlockType)
Super(a_BlockType)
{
}
+4 -4
View File
@@ -19,12 +19,12 @@ enum ENUM_PURE
class cBlockRailHandler :
public cClearMetaOnDrop<cBlockHandler>
{
using super = cClearMetaOnDrop<cBlockHandler>;
using Super = cClearMetaOnDrop<cBlockHandler>;
public:
cBlockRailHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -57,7 +57,7 @@ public:
BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta
) override
{
super::OnPlaced(a_ChunkInterface, a_WorldInterface, a_BlockPos, a_BlockType, a_BlockMeta);
Super::OnPlaced(a_ChunkInterface, a_WorldInterface, a_BlockPos, a_BlockType, a_BlockMeta);
// Alert diagonal rails:
NeighborChanged(a_ChunkInterface, a_BlockPos + Vector3i( 1, 1, 0), BLOCK_FACE_NONE);
@@ -80,7 +80,7 @@ public:
BLOCKTYPE a_OldBlockType, NIBBLETYPE a_OldBlockMeta
) override
{
super::OnBroken(a_ChunkInterface, a_WorldInterface, a_BlockPos, a_OldBlockType, a_OldBlockMeta);
Super::OnBroken(a_ChunkInterface, a_WorldInterface, a_BlockPos, a_OldBlockType, a_OldBlockMeta);
// Alert diagonal rails:
NeighborChanged(a_ChunkInterface, a_BlockPos + Vector3i( 1, 1, 0), BLOCK_FACE_NONE);
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockRedstoneHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockRedstoneHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -14,12 +14,12 @@
class cBlockRedstoneRepeaterHandler:
public cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>
{
using super = cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>;
using Super = cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>;
public:
cBlockRedstoneRepeaterHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockRedstoneTorchHandler :
public cBlockTorchHandler
{
using super = cBlockTorchHandler;
using Super = cBlockTorchHandler;
public:
cBlockRedstoneTorchHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockSaplingHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockSaplingHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockSeaLanternHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockSeaLanternHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -13,12 +13,12 @@ Additionally supports the metadata specifying block sub-type in its lower 2 bits
class cBlockSidewaysHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockSidewaysHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockSignPostHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockSignPostHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+4 -4
View File
@@ -20,12 +20,12 @@
class cBlockSlabHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockSlabHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -239,12 +239,12 @@ public:
class cBlockDoubleSlabHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockDoubleSlabHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+3 -3
View File
@@ -10,12 +10,12 @@
class cBlockSpongeHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockSpongeHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -33,7 +33,7 @@ public:
{
return;
}
super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk);
Super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk);
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockStairsHandler :
public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x02, 0x01, true>>
{
using super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x02, 0x01, true>>;
using Super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x02, 0x01, true>>;
public:
cBlockStairsHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -14,12 +14,12 @@ template <BLOCKTYPE ProduceBlockType, ENUM_ITEM_TYPE StemPickupType>
class cBlockStemsHandler:
public cBlockPlant<true>
{
using super = cBlockPlant<true>;
using Super = cBlockPlant<true>;
public:
cBlockStemsHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -9,12 +9,12 @@
class cBlockStoneHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockStoneHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+3 -3
View File
@@ -10,12 +10,12 @@
class cBlockSugarcaneHandler :
public cBlockPlant<false>
{
using super = cBlockPlant<false>;
using Super = cBlockPlant<false>;
public:
cBlockSugarcaneHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
@@ -144,7 +144,7 @@ protected:
// Only allow growing if there's an air block above:
if (((a_RelPos.y + 1) < cChunkDef::Height) && (a_Chunk.GetBlock(a_RelPos.addedY(1)) == E_BLOCK_AIR))
{
return super::CanGrow(a_Chunk, a_RelPos);
return Super::CanGrow(a_Chunk, a_RelPos);
}
return paStay;
}
+2 -2
View File
@@ -12,12 +12,12 @@
class cBlockTallGrassHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockTallGrassHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockTorchHandler :
public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x7, 0x4, 0x1, 0x3, 0x2>>
{
using super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x7, 0x4, 0x1, 0x3, 0x2>>;
using Super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x7, 0x4, 0x1, 0x3, 0x2>>;
public:
cBlockTorchHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockTrapdoorHandler :
public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false>>
{
using super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false>>;
using Super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false>>;
public:
cBlockTrapdoorHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockTripwireHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockTripwireHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -10,12 +10,12 @@
class cBlockTripwireHookHandler :
public cMetaRotator<cClearMetaOnDrop<cBlockHandler>, 0x03, 0x02, 0x03, 0x00, 0x01>
{
using super = cMetaRotator<cClearMetaOnDrop<cBlockHandler>, 0x03, 0x02, 0x03, 0x00, 0x01>;
using Super = cMetaRotator<cClearMetaOnDrop<cBlockHandler>, 0x03, 0x02, 0x03, 0x00, 0x01>;
public:
cBlockTripwireHookHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -9,12 +9,12 @@
class cBlockVineHandler :
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockVineHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+2 -2
View File
@@ -11,12 +11,12 @@
class cBlockWallSignHandler:
public cBlockHandler
{
using super = cBlockHandler;
using Super = cBlockHandler;
public:
cBlockWallSignHandler(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{
}
+7 -7
View File
@@ -184,11 +184,11 @@ template <
class cYawRotator:
public cMetaRotator<Base, BitMask, North, East, South, West, AssertIfNotMatched>
{
using super = cMetaRotator<Base, BitMask, North, East, South, West, AssertIfNotMatched>;
using Super = cMetaRotator<Base, BitMask, North, East, South, West, AssertIfNotMatched>;
public:
cYawRotator(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{}
@@ -203,7 +203,7 @@ public:
) override
{
NIBBLETYPE BaseMeta;
if (!super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta))
if (!Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta))
{
return false;
}
@@ -258,11 +258,11 @@ template <
class cPitchYawRotator:
public cYawRotator<Base, BitMask, North, East, South, West>
{
using super = cYawRotator<Base, BitMask, North, East, South, West>;
using Super = cYawRotator<Base, BitMask, North, East, South, West>;
public:
cPitchYawRotator(BLOCKTYPE a_BlockType):
super(a_BlockType)
Super(a_BlockType)
{}
@@ -277,7 +277,7 @@ public:
) override
{
NIBBLETYPE BaseMeta;
if (!super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta))
if (!Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta))
{
return false;
}
@@ -319,6 +319,6 @@ public:
return Down;
}
return super::YawToMetaData(a_Rotation);
return Super::YawToMetaData(a_Rotation);
}
};