diff options
author | Mattes D <github@xoft.cz> | 2013-12-18 18:59:31 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-18 18:59:31 +0100 |
commit | acf90a2c1a9ac3844f08a788479dbf697f4455f5 (patch) | |
tree | 22529857cb92670021d0cbe0622610d1609068e0 /src/Simulator/RedstoneSimulator.h | |
parent | Merge pull request #442 from mc-server/Nether_Wart (diff) | |
parent | Fixed wire powering blocks beneath (diff) | |
download | cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.tar cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.tar.gz cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.tar.bz2 cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.tar.lz cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.tar.xz cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.tar.zst cuberite-acf90a2c1a9ac3844f08a788479dbf697f4455f5.zip |
Diffstat (limited to 'src/Simulator/RedstoneSimulator.h')
-rw-r--r-- | src/Simulator/RedstoneSimulator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Simulator/RedstoneSimulator.h b/src/Simulator/RedstoneSimulator.h index 9bdeb8f32..d40d88342 100644 --- a/src/Simulator/RedstoneSimulator.h +++ b/src/Simulator/RedstoneSimulator.h @@ -62,6 +62,7 @@ private: Vector3i a_BlockPos; short a_DelayTicks; short a_ElapsedTicks; + bool ShouldPowerOn; }; typedef std::vector <sPoweredBlocks> PoweredBlocksList; @@ -127,6 +128,8 @@ private: void SetDirectionLinkedPowered(int a_BlockX, int a_BlockY, int a_BlockZ, char a_Direction, BLOCKTYPE a_SourceBlock); /// <summary>Marks all blocks immediately surrounding a coordinate as powered</summary> void SetAllDirsAsPowered(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_SourceBlock); + /// <summary>Queues a repeater to be powered or unpowered</summary> + void QueueRepeaterPowerChange(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_Meta, short a_ElapsedTicks, bool ShouldPowerOn); /// <summary>Returns if a coordinate is powered or linked powered</summary> bool AreCoordsPowered(int a_BlockX, int a_BlockY, int a_BlockZ) { return AreCoordsDirectlyPowered(a_BlockX, a_BlockY, a_BlockZ) || AreCoordsLinkedPowered(a_BlockX, a_BlockY, a_BlockZ); } |