diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/Simulator/SandSimulator.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/SandSimulator.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/Simulator/SandSimulator.h b/src/Simulator/SandSimulator.h index d27fd5873..62c650b1d 100644 --- a/src/Simulator/SandSimulator.h +++ b/src/Simulator/SandSimulator.h @@ -23,11 +23,9 @@ typedef cCoordWithIntList cSandSimulatorChunkData; /** Despite the class name, this simulator takes care of all blocks that fall when suspended in the air. */ -class cSandSimulator : - public cSimulator +class cSandSimulator : public cSimulator { -public: - + public: cSandSimulator(cWorld & a_World, cIniFile & a_IniFile); /** Returns true if a falling-able block can start falling through the specified block type */ @@ -47,19 +45,22 @@ public: It either rematerializes the block (a_FallingBlockType) at the specified coords, or creates a pickup, based on the block currently present in the world at the dest specified coords. */ static void FinishFalling( - cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, - BLOCKTYPE a_FallingBlockType, NIBBLETYPE a_FallingBlockMeta + cWorld * a_World, + int a_BlockX, + int a_BlockY, + int a_BlockZ, + BLOCKTYPE a_FallingBlockType, + NIBBLETYPE a_FallingBlockMeta ); static bool IsAllowedBlock(BLOCKTYPE a_BlockType); -private: - + private: virtual void SimulateChunk(std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk * a_Chunk) override; bool m_IsInstantFall; // If set to true, blocks don't fall using cFallingBlock entity, but instantly instead - int m_TotalBlocks; // Total number of blocks currently in the queue for simulating + int m_TotalBlocks; // Total number of blocks currently in the queue for simulating virtual void AddBlock(cChunk & a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block) override; |