diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-18 00:05:27 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-18 00:05:27 +0100 |
commit | 09c47fabd2ebfdd929a0e237070b1a3d5e1968b3 (patch) | |
tree | a21126869b25ac406dc45fa447f6c92e7ebed802 /src/Simulator/RedstoneSimulator.h | |
parent | Fixed player falling through the floor on spawn. (diff) | |
download | cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.tar cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.tar.gz cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.tar.bz2 cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.tar.lz cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.tar.xz cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.tar.zst cuberite-09c47fabd2ebfdd929a0e237070b1a3d5e1968b3.zip |
Diffstat (limited to '')
-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); } |