diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-15 22:16:43 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-15 22:16:43 +0200 |
commit | f9dab57d8b4b98ec0f624212452c48769c8441d1 (patch) | |
tree | d62abda0578d60686466c04c15416646c2e6c643 /source/Simulator/DelayedFluidSimulator.h | |
parent | Floody fluid sim: reads params from world.ini; water and lava react together into cobblestone / stone / obsidian (diff) | |
download | cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.gz cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.bz2 cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.lz cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.xz cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.zst cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Simulator/DelayedFluidSimulator.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/Simulator/DelayedFluidSimulator.h b/source/Simulator/DelayedFluidSimulator.h index b9c180580..51fe2a514 100644 --- a/source/Simulator/DelayedFluidSimulator.h +++ b/source/Simulator/DelayedFluidSimulator.h @@ -34,7 +34,13 @@ protected: int m_TickDelay; // Count of the m_Slots array
CoordsArray * m_Slots; // Slots, one for each delay tick
int m_CurrentSlotNum; // Index into m_Slots[] where to insert new blocks
-
+
+ /*
+ Slots:
+ | 0 | 1 | ... | m_CurrentSlotNum | m_CurrentSlotNum + 1 | ... | m_TickDelay - 1 |
+ adding blocks here ^ | ^ simulating here
+ */
+
/// Called from Simulate() to simulate each block in one slot of blocks. Descendants override this method to provide custom simulation.
virtual void SimulateBlock(int a_BlockX, int a_BlockY, int a_BlockZ) = 0;
} ;
|