1
0

Using Super.

This commit is contained in:
Mattes D
2020-04-13 18:38:06 +02:00
committed by Alexander Harkness
parent f931590bf0
commit 9ee47e5999
399 changed files with 1815 additions and 1381 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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)
{
}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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