From 5b62c4c3145c08b093521e42c565922fa85de4ad Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 26 Jun 2015 17:24:51 -0500 Subject: Reorganised the redstone simulator -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved --- src/BlockEntities/RedstonePoweredEntity.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/BlockEntities/RedstonePoweredEntity.h (limited to 'src/BlockEntities/RedstonePoweredEntity.h') diff --git a/src/BlockEntities/RedstonePoweredEntity.h b/src/BlockEntities/RedstonePoweredEntity.h deleted file mode 100644 index 06856f3ea..000000000 --- a/src/BlockEntities/RedstonePoweredEntity.h +++ /dev/null @@ -1,30 +0,0 @@ - -// RedstonePoweredEntity.h - -// Declares the cRedstonePoweredEntity class representing a mix-in for block entities that respond to redstone - - - - - -#pragma once - - - - - -/** Interface class representing a mix-in for block entities that respond to redstone */ -class cRedstonePoweredEntity -{ -public: - - virtual ~cRedstonePoweredEntity() {} - - /** Sets the internal redstone power flag to "on" or "off", depending on the parameter. - Calls Activate() if appropriate */ - virtual void SetRedstonePower(bool a_IsPowered) = 0; -}; - - - - -- cgit v1.2.3