summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-18 00:05:27 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-18 00:05:27 +0100
commit09c47fabd2ebfdd929a0e237070b1a3d5e1968b3 (patch)
treea21126869b25ac406dc45fa447f6c92e7ebed802 /src/Simulator/RedstoneSimulator.h
parentFixed player falling through the floor on spawn. (diff)
downloadcuberite-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.h3
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); }