summaryrefslogtreecommitdiffstats
path: root/source/MCLogger.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-09 22:40:12 +0200
committermadmaxoft <github@xoft.cz>2013-08-09 22:40:12 +0200
commit8fd67cf12a584835e74c1f7a292c30c793e843e1 (patch)
tree90957142676b95290e48bf6804b107f1d296d1f2 /source/MCLogger.h
parentPiston head, when removed, removes the associated piston body, too. (diff)
downloadcuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.tar
cuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.tar.gz
cuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.tar.bz2
cuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.tar.lz
cuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.tar.xz
cuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.tar.zst
cuberite-8fd67cf12a584835e74c1f7a292c30c793e843e1.zip
Diffstat (limited to 'source/MCLogger.h')
-rw-r--r--source/MCLogger.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/source/MCLogger.h b/source/MCLogger.h
index 0c4566400..158ccc6b6 100644
--- a/source/MCLogger.h
+++ b/source/MCLogger.h
@@ -26,11 +26,20 @@ public: // tolua_export
static cMCLogger* GetInstance();
private:
- void SetColor( unsigned char a_Color );
-
+ enum eColorScheme
+ {
+ csGrayOnBlack,
+ csYellowOnBlack,
+ csRedOnBlack,
+ csBlackOnRed,
+ } ;
+
+ /// Sets the specified color scheme in the terminal (TODO: if coloring available)
+ void SetColor(eColorScheme a_Scheme);
+
cCriticalSection m_CriticalSection;
- cLog* m_Log;
- static cMCLogger* s_MCLogger;
+ cLog * m_Log;
+ static cMCLogger * s_MCLogger;
}; // tolua_export
extern void LOG(const char* a_Format, ...);