diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-14 19:02:06 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-14 19:02:06 +0200 |
commit | 46cb1e94294d835c8ab9003b4024c156ac6f021a (patch) | |
tree | c8ad89d02b273d01add6d0b43529d07e3495e897 /source/BlockArea.h | |
parent | Completely removed support for old style Lua plugins (can use both Plugin and NewPlugin in settings.ini for now) (diff) | |
download | cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.tar cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.tar.gz cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.tar.bz2 cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.tar.lz cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.tar.xz cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.tar.zst cuberite-46cb1e94294d835c8ab9003b4024c156ac6f021a.zip |
Diffstat (limited to 'source/BlockArea.h')
-rw-r--r-- | source/BlockArea.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/BlockArea.h b/source/BlockArea.h index 8d374eaad..0a22274ff 100644 --- a/source/BlockArea.h +++ b/source/BlockArea.h @@ -70,14 +70,14 @@ public: void SetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_BlockSkyLight);
// Getters:
- BLOCKTYPE GetRelBlockType (int a_RelX, int a_RelY, int a_RelZ);
- BLOCKTYPE GetBlockType (int a_BlockX, int a_BlockY, int a_BlockZ);
- NIBBLETYPE GetRelBlockMeta (int a_RelX, int a_RelY, int a_RelZ);
- NIBBLETYPE GetBlockMeta (int a_BlockX, int a_BlockY, int a_BlockZ);
- NIBBLETYPE GetRelBlockLight (int a_RelX, int a_RelY, int a_RelZ);
- NIBBLETYPE GetBlockLight (int a_BlockX, int a_BlockY, int a_BlockZ);
- NIBBLETYPE GetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ);
- NIBBLETYPE GetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ);
+ BLOCKTYPE GetRelBlockType (int a_RelX, int a_RelY, int a_RelZ) const;
+ BLOCKTYPE GetBlockType (int a_BlockX, int a_BlockY, int a_BlockZ) const;
+ NIBBLETYPE GetRelBlockMeta (int a_RelX, int a_RelY, int a_RelZ) const;
+ NIBBLETYPE GetBlockMeta (int a_BlockX, int a_BlockY, int a_BlockZ) const;
+ NIBBLETYPE GetRelBlockLight (int a_RelX, int a_RelY, int a_RelZ) const;
+ NIBBLETYPE GetBlockLight (int a_BlockX, int a_BlockY, int a_BlockZ) const;
+ NIBBLETYPE GetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ) const;
+ NIBBLETYPE GetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ) const;
int GetSizeX(void) const { return m_SizeX; }
int GetSizeY(void) const { return m_SizeY; }
@@ -100,7 +100,7 @@ public: NIBBLETYPE * GetBlockLight (void) { return m_BlockLight; } // NOTE: one byte per block!
NIBBLETYPE * GetBlockSkyLight(void) { return m_BlockSkyLight; } // NOTE: one byte per block!
int GetBlockCount(void) const { return m_SizeX * m_SizeY * m_SizeZ; }
- int MakeIndex(int a_RelX, int a_RelY, int a_RelZ);
+ int MakeIndex(int a_RelX, int a_RelY, int a_RelZ) const;
protected:
@@ -148,8 +148,8 @@ protected: void SetNibble (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_Value, NIBBLETYPE * a_Array);
// Basic Getters:
- NIBBLETYPE GetRelNibble(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE * a_Array);
- NIBBLETYPE GetNibble (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE * a_Array);
+ NIBBLETYPE GetRelNibble(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE * a_Array) const;
+ NIBBLETYPE GetNibble (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE * a_Array) const;
// tolua_begin
} ;
|