summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-28 21:44:34 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-28 21:44:34 +0200
commit61cb08b54698e9b70f629858a6a9c5b389db8b3e (patch)
tree6d43e221dd0e883c653fc22a3a27628f64b3d294 /src/Simulator/IncrementalRedstoneSimulator.h
parentAdded more block exceptions to torches (diff)
downloadcuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar
cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.gz
cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.bz2
cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.lz
cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.xz
cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.tar.zst
cuberite-61cb08b54698e9b70f629858a6a9c5b389db8b3e.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.h b/src/Simulator/IncrementalRedstoneSimulator.h
index 9c1f9460c..6cefdebf2 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.h
+++ b/src/Simulator/IncrementalRedstoneSimulator.h
@@ -102,6 +102,11 @@ private:
void HandleDaylightSensor(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
/** Handles pressure plates */
void HandlePressurePlate(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ, BLOCKTYPE a_MyType);
+ /** Handles tripwire hooks
+ Performs correct meta and power setting for self by going in the direction it faces and looking for a continous line of tripwire bounded by another oppositely facing hook
+ If this line is complete, it verifies that at least on wire reports an entity is on top (via its meta), and performs its task
+ */
+ void HandleTripwireHook(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
/* ==================== */
/* ====== CARRIERS ====== */
@@ -134,6 +139,8 @@ private:
void HandleFenceGate(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
/** Handles noteblocks */
void HandleNoteBlock(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
+ /** Handles tripwires */
+ void HandleTripwire(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
/* ===================== */
/* ====== Helper functions ====== */
@@ -271,6 +278,7 @@ private:
case E_BLOCK_TNT:
case E_BLOCK_TRAPDOOR:
case E_BLOCK_TRIPWIRE_HOOK:
+ case E_BLOCK_TRIPWIRE:
case E_BLOCK_WOODEN_BUTTON:
case E_BLOCK_WOODEN_DOOR:
case E_BLOCK_WOODEN_PRESSURE_PLATE: