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/NoteEntity.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/BlockEntities/NoteEntity.h') diff --git a/src/BlockEntities/NoteEntity.h b/src/BlockEntities/NoteEntity.h index 3a70ffec5..2cd703c52 100644 --- a/src/BlockEntities/NoteEntity.h +++ b/src/BlockEntities/NoteEntity.h @@ -2,7 +2,6 @@ #pragma once #include "BlockEntity.h" -#include "RedstonePoweredEntity.h" @@ -25,9 +24,6 @@ enum ENUM_NOTE_INSTRUMENTS class cNoteEntity : public cBlockEntity - // tolua_end - , public cRedstonePoweredEntity - // tolua_begin { typedef cBlockEntity super; public: @@ -51,14 +47,6 @@ public: virtual bool UsedBy(cPlayer * a_Player) override; virtual void SendTo(cClientHandle &) override {} - - virtual void SetRedstonePower(bool a_Value) override - { - if (a_Value) - { - MakeSound(); - } - } private: char m_Pitch; -- cgit v1.2.3