diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-08-05 23:54:36 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-08-05 23:54:36 +0200 |
commit | 9272bd627c732771b81e6dcf6b8465404917a9d6 (patch) | |
tree | 617cb2f8d97901df9e9a47df813c63c6d724563e /src/BlockEntities/RedstonePoweredEntity.h | |
parent | Refactored Redstone simulator not to depend on TNTEntity or DropSpenserENtity Directly (diff) | |
download | cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.tar cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.tar.gz cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.tar.bz2 cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.tar.lz cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.tar.xz cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.tar.zst cuberite-9272bd627c732771b81e6dcf6b8465404917a9d6.zip |
Diffstat (limited to 'src/BlockEntities/RedstonePoweredEntity.h')
-rw-r--r-- | src/BlockEntities/RedstonePoweredEntity.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/BlockEntities/RedstonePoweredEntity.h b/src/BlockEntities/RedstonePoweredEntity.h index aebba771f..7d6904442 100644 --- a/src/BlockEntities/RedstonePoweredEntity.h +++ b/src/BlockEntities/RedstonePoweredEntity.h @@ -1,9 +1,13 @@ +#pragma once // Interface class representing a blockEntity that responds 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; }; |