diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-07-12 12:30:43 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-07-12 12:30:43 +0200 |
commit | b61898c30c1e1049e8767ca98fd38e7010a32e45 (patch) | |
tree | 51df04d644da1f344e0781bf70a7c426b45d91ae /src/Color.h | |
parent | Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843) (diff) | |
download | cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.gz cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.bz2 cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.lz cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.xz cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.zst cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.zip |
Diffstat (limited to 'src/Color.h')
-rw-r--r-- | src/Color.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Color.h b/src/Color.h index 3680193ab..059729bcf 100644 --- a/src/Color.h +++ b/src/Color.h @@ -9,13 +9,12 @@ #pragma once - // tolua_begin - +// tolua_begin class cColor { public: - enum : unsigned int + enum eColorLimits : unsigned int { COLOR_MIN = 0, COLOR_MAX = 255, @@ -28,6 +27,7 @@ public: /** Returns whether the color is a valid color */ bool IsValid() const { return m_Color != COLOR_NONE; } + /** Changes the color */ void SetColor(unsigned char a_Red, unsigned char a_Green, unsigned char a_Blue); @@ -35,10 +35,10 @@ public: void SetRed(unsigned char a_Red); /** Alters the green value of the color */ - void SetGreen(unsigned char a_Red); + void SetGreen(unsigned char a_Green); /** Alters the blue value of the color */ - void SetBlue(unsigned char a_Red); + void SetBlue(unsigned char a_Blue); /** Returns the red value of the color */ unsigned char GetRed() const; @@ -55,4 +55,4 @@ public: unsigned int m_Color; -}; +}; // tolua_export |