Using Super.
This commit is contained in:
committed by
Alexander Harkness
parent
f931590bf0
commit
9ee47e5999
@@ -66,7 +66,7 @@ cDelayedFluidSimulatorChunkData::~cDelayedFluidSimulatorChunkData()
|
||||
// cDelayedFluidSimulator:
|
||||
|
||||
cDelayedFluidSimulator::cDelayedFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid, int a_TickDelay) :
|
||||
super(a_World, a_Fluid, a_StationaryFluid),
|
||||
Super(a_World, a_Fluid, a_StationaryFluid),
|
||||
m_TickDelay(a_TickDelay),
|
||||
m_AddSlotNum(a_TickDelay - 1),
|
||||
m_SimSlotNum(0),
|
||||
|
||||
@@ -45,12 +45,13 @@ public:
|
||||
|
||||
|
||||
|
||||
class cDelayedFluidSimulator :
|
||||
class cDelayedFluidSimulator:
|
||||
public cFluidSimulator
|
||||
{
|
||||
typedef cFluidSimulator super;
|
||||
using Super = cFluidSimulator;
|
||||
|
||||
public:
|
||||
|
||||
cDelayedFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid, int a_TickDelay);
|
||||
|
||||
// cSimulator overrides:
|
||||
|
||||
@@ -38,7 +38,7 @@ cFloodyFluidSimulator::cFloodyFluidSimulator(
|
||||
int a_TickDelay,
|
||||
int a_NumNeighborsForSource
|
||||
) :
|
||||
super(a_World, a_Fluid, a_StationaryFluid, a_TickDelay),
|
||||
Super(a_World, a_Fluid, a_StationaryFluid, a_TickDelay),
|
||||
m_Falloff(a_Falloff),
|
||||
m_NumNeighborsForSource(a_NumNeighborsForSource)
|
||||
{
|
||||
|
||||
@@ -16,15 +16,17 @@
|
||||
|
||||
|
||||
|
||||
class cFloodyFluidSimulator :
|
||||
class cFloodyFluidSimulator:
|
||||
public cDelayedFluidSimulator
|
||||
{
|
||||
typedef cDelayedFluidSimulator super;
|
||||
using Super = cDelayedFluidSimulator;
|
||||
|
||||
public:
|
||||
|
||||
cFloodyFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid, NIBBLETYPE a_Falloff, int a_TickDelay, int a_NumNeighborsForSource);
|
||||
|
||||
protected:
|
||||
|
||||
NIBBLETYPE m_Falloff;
|
||||
int m_NumNeighborsForSource;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
cFluidSimulator::cFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid) :
|
||||
super(a_World),
|
||||
Super(a_World),
|
||||
m_FluidBlock(a_Fluid),
|
||||
m_StationaryFluidBlock(a_StationaryFluid)
|
||||
{
|
||||
|
||||
@@ -34,12 +34,13 @@ public:
|
||||
|
||||
|
||||
|
||||
class cFluidSimulator :
|
||||
class cFluidSimulator:
|
||||
public cSimulator
|
||||
{
|
||||
typedef cSimulator super;
|
||||
using Super = cSimulator;
|
||||
|
||||
public:
|
||||
|
||||
cFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid);
|
||||
|
||||
// cSimulator overrides:
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cCommandBlockHandler : public cRedstoneHandler
|
||||
class cCommandBlockHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cDoorHandler : public cRedstoneHandler
|
||||
class cDoorHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cDropSpenserHandler : public cRedstoneHandler
|
||||
class cDropSpenserHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
inline static bool IsActivated(NIBBLETYPE a_Meta)
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cHopperHandler : public cRedstoneHandler
|
||||
class cHopperHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,13 +8,15 @@
|
||||
|
||||
|
||||
|
||||
class cIncrementalRedstoneSimulator :
|
||||
class cIncrementalRedstoneSimulator:
|
||||
public cRedstoneSimulator
|
||||
{
|
||||
typedef cRedstoneSimulator super;
|
||||
using Super = cRedstoneSimulator;
|
||||
|
||||
public:
|
||||
cIncrementalRedstoneSimulator(cWorld & a_World) :
|
||||
super(a_World)
|
||||
|
||||
cIncrementalRedstoneSimulator(cWorld & a_World):
|
||||
Super(a_World)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cNoteBlockHandler : public cRedstoneHandler
|
||||
class cNoteBlockHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cPistonHandler : public cRedstoneHandler
|
||||
class cPistonHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
|
||||
class cPoweredRailHandler : public cRedstoneHandler
|
||||
class cPoweredRailHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
static Vector3i GetPoweredRailAdjacentXZCoordinateOffset(NIBBLETYPE a_Meta) // Not in cBlockRailHandler since specific to powered rails
|
||||
|
||||
@@ -9,9 +9,11 @@
|
||||
|
||||
|
||||
|
||||
class cPressurePlateHandler : public cRedstoneHandler
|
||||
class cPressurePlateHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
|
||||
class cRedstoneBlockHandler : public cRedstoneHandler
|
||||
class cRedstoneBlockHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cRedstoneComparatorHandler : public cRedstoneHandler
|
||||
class cRedstoneComparatorHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
unsigned char GetFrontPowerLevel(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, unsigned char a_HighestSidePowerLevel, unsigned char a_HighestRearPowerLevel) const
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cRedstoneRepeaterHandler : public cRedstoneHandler
|
||||
class cRedstoneRepeaterHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
inline static bool IsOn(BLOCKTYPE a_Block)
|
||||
|
||||
@@ -9,9 +9,11 @@
|
||||
|
||||
|
||||
|
||||
class cRedstoneToggleHandler : public cRedstoneHandler
|
||||
class cRedstoneToggleHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
inline static Vector3i GetPositionAttachedTo(Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta)
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
|
||||
class cRedstoneWireHandler : public cRedstoneHandler
|
||||
class cRedstoneWireHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
inline static bool IsDirectlyConnectingMechanism(BLOCKTYPE a_Block)
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
|
||||
class cSmallGateHandler : public cRedstoneHandler
|
||||
class cSmallGateHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
|
||||
class cSolidBlockHandler : public cRedstoneHandler
|
||||
class cSolidBlockHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
|
||||
class cTNTHandler : public cRedstoneHandler
|
||||
class cTNTHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cTrappedChestHandler : public cRedstoneHandler
|
||||
class cTrappedChestHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -8,9 +8,11 @@
|
||||
|
||||
|
||||
|
||||
class cTripwireHookHandler : public cRedstoneHandler
|
||||
class cTripwireHookHandler:
|
||||
public cRedstoneHandler
|
||||
{
|
||||
typedef cRedstoneHandler super;
|
||||
using Super = cRedstoneHandler;
|
||||
|
||||
public:
|
||||
|
||||
virtual unsigned char GetPowerDeliveredToPosition(cWorld & a_World, Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta, Vector3i a_QueryPosition, BLOCKTYPE a_QueryBlockType) const override
|
||||
|
||||
@@ -15,14 +15,15 @@
|
||||
|
||||
|
||||
|
||||
class cNoopFluidSimulator :
|
||||
class cNoopFluidSimulator:
|
||||
public cFluidSimulator
|
||||
{
|
||||
typedef cFluidSimulator super;
|
||||
using Super = cFluidSimulator;
|
||||
|
||||
public:
|
||||
cNoopFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid) :
|
||||
super(a_World, a_Fluid, a_StationaryFluid)
|
||||
|
||||
cNoopFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid):
|
||||
Super(a_World, a_Fluid, a_StationaryFluid)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
|
||||
|
||||
|
||||
class cRedstoneNoopSimulator :
|
||||
class cRedstoneNoopSimulator:
|
||||
public cRedstoneSimulator
|
||||
{
|
||||
typedef cRedstoneSimulator super;
|
||||
using Super = cRedstoneSimulator;
|
||||
|
||||
public:
|
||||
|
||||
cRedstoneNoopSimulator(cWorld & a_World) :
|
||||
super(a_World)
|
||||
cRedstoneNoopSimulator(cWorld & a_World):
|
||||
Super(a_World)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -19,14 +19,15 @@ inline cRedstoneSimulatorChunkData::~cRedstoneSimulatorChunkData() {}
|
||||
|
||||
|
||||
|
||||
class cRedstoneSimulator :
|
||||
class cRedstoneSimulator:
|
||||
public cSimulator
|
||||
{
|
||||
typedef cSimulator super;
|
||||
using Super = cSimulator;
|
||||
|
||||
public:
|
||||
|
||||
cRedstoneSimulator(cWorld & a_World) :
|
||||
super(a_World)
|
||||
cRedstoneSimulator(cWorld & a_World):
|
||||
Super(a_World)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ cVanillaFluidSimulator::cVanillaFluidSimulator(
|
||||
NIBBLETYPE a_Falloff,
|
||||
int a_TickDelay,
|
||||
int a_NumNeighborsForSource
|
||||
) : super(a_World, a_Fluid, a_StationaryFluid, a_Falloff, a_TickDelay, a_NumNeighborsForSource)
|
||||
):
|
||||
Super(a_World, a_Fluid, a_StationaryFluid, a_Falloff, a_TickDelay, a_NumNeighborsForSource)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -13,13 +13,21 @@
|
||||
|
||||
|
||||
|
||||
class cVanillaFluidSimulator :
|
||||
class cVanillaFluidSimulator:
|
||||
public cFloodyFluidSimulator
|
||||
{
|
||||
typedef cFloodyFluidSimulator super;
|
||||
using Super = cFloodyFluidSimulator;
|
||||
|
||||
public:
|
||||
cVanillaFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid, NIBBLETYPE a_Falloff, int a_TickDelay, int a_NumNeighborsForSource);
|
||||
|
||||
cVanillaFluidSimulator(
|
||||
cWorld & a_World,
|
||||
BLOCKTYPE a_Fluid,
|
||||
BLOCKTYPE a_StationaryFluid,
|
||||
NIBBLETYPE a_Falloff,
|
||||
int a_TickDelay,
|
||||
int a_NumNeighborsForSource
|
||||
);
|
||||
|
||||
protected:
|
||||
// cFloodyFluidSimulator overrides:
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
|
||||
cVaporizeFluidSimulator::cVaporizeFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid) :
|
||||
super(a_World, a_Fluid, a_StationaryFluid)
|
||||
Super(a_World, a_Fluid, a_StationaryFluid)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -16,12 +16,13 @@
|
||||
|
||||
|
||||
|
||||
class cVaporizeFluidSimulator :
|
||||
class cVaporizeFluidSimulator:
|
||||
public cFluidSimulator
|
||||
{
|
||||
typedef cFluidSimulator super;
|
||||
using Super = cFluidSimulator;
|
||||
|
||||
public:
|
||||
|
||||
cVaporizeFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid);
|
||||
|
||||
// cSimulator overrides:
|
||||
|
||||
Reference in New Issue
Block a user