summaryrefslogtreecommitdiffstats
path: root/src/ChunkData.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-28 11:35:55 +0200
committermadmaxoft <github@xoft.cz>2014-05-28 16:34:25 +0200
commit7ec44951a0841734be53e81088dcdbc79a104d02 (patch)
tree6a49fedc5ca3c03d20f5ef96782526dbd6bf5914 /src/ChunkData.h
parentFix cmake errors in msvc (diff)
downloadcuberite-7ec44951a0841734be53e81088dcdbc79a104d02.tar
cuberite-7ec44951a0841734be53e81088dcdbc79a104d02.tar.gz
cuberite-7ec44951a0841734be53e81088dcdbc79a104d02.tar.bz2
cuberite-7ec44951a0841734be53e81088dcdbc79a104d02.tar.lz
cuberite-7ec44951a0841734be53e81088dcdbc79a104d02.tar.xz
cuberite-7ec44951a0841734be53e81088dcdbc79a104d02.tar.zst
cuberite-7ec44951a0841734be53e81088dcdbc79a104d02.zip
Diffstat (limited to 'src/ChunkData.h')
-rw-r--r--src/ChunkData.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ChunkData.h b/src/ChunkData.h
index 16fcc4d37..6544b246e 100644
--- a/src/ChunkData.h
+++ b/src/ChunkData.h
@@ -25,12 +25,12 @@ public:
#if __cplusplus < 201103L
// auto_ptr style interface for memory management
- cChunkData(const cChunkData& other);
- cChunkData& operator=(const cChunkData& other);
+ cChunkData(const cChunkData & other);
+ cChunkData & operator =(const cChunkData & other);
#else
// unique_ptr style interface for memory management
- cChunkData(cChunkData&& other);
- cChunkData& operator=(cChunkData&& other);
+ cChunkData(cChunkData && other);
+ cChunkData & operator =(cChunkData && other);
#endif
BLOCKTYPE GetBlock(int a_X, int a_Y, int a_Z) const;
@@ -43,15 +43,15 @@ public:
NIBBLETYPE GetSkyLight(int a_RelX, int a_RelY, int a_RelZ) const;
- cChunkData Copy() const;
+ cChunkData Copy(void) const;
void CopyBlocks (BLOCKTYPE * a_dest, size_t a_Idx = 0, size_t length = cChunkDef::NumBlocks) const;
void CopyMeta (NIBBLETYPE * a_dest) const;
- void CopyBlockLight (NIBBLETYPE * a_dest) const;
+ void CopyBlockLight(NIBBLETYPE * a_dest) const;
void CopySkyLight (NIBBLETYPE * a_dest) const;
void SetBlocks (const BLOCKTYPE * a_src);
void SetMeta (const NIBBLETYPE * a_src);
- void SetBlockLight (const NIBBLETYPE * a_src);
+ void SetBlockLight(const NIBBLETYPE * a_src);
void SetSkyLight (const NIBBLETYPE * a_src);
private:
@@ -61,19 +61,19 @@ private:
#if __cplusplus < 201103L
// auto_ptr style interface for memory management
- mutable bool IsOwner;
+ mutable bool m_IsOwner;
#endif
struct sChunkSection {
- BLOCKTYPE m_BlockTypes [CHUNK_SECTION_HEIGHT * 16 * 16] ;
+ BLOCKTYPE m_BlockTypes [CHUNK_SECTION_HEIGHT * 16 * 16];
NIBBLETYPE m_BlockMeta [CHUNK_SECTION_HEIGHT * 16 * 16 / 2];
NIBBLETYPE m_BlockLight [CHUNK_SECTION_HEIGHT * 16 * 16 / 2];
NIBBLETYPE m_BlockSkyLight[CHUNK_SECTION_HEIGHT * 16 * 16 / 2];
};
- sChunkSection *m_Sections[CHUNK_SECTION_COUNT];
+ sChunkSection * m_Sections[CHUNK_SECTION_COUNT];
- sChunkSection * Allocate() const;
+ sChunkSection * Allocate(void) const;
void Free(sChunkSection * ptr) const;
void ZeroSection(sChunkSection * ptr) const;