diff options
author | uruk | 2013-06-28 18:25:28 +0200 |
---|---|---|
committer | uruk | 2013-06-28 18:25:28 +0200 |
commit | edaba46087a5d5adf8623ecd9b3cfa16b0ea0de5 (patch) | |
tree | 18ed6fa564c1d5d6f7fe824badc1a8553df88ccf /engines/avalanche/logger2.h | |
parent | 5ce7e689b4986675a30c0336b4edb3cef69e0ce6 (diff) | |
download | scummvm-rg350-edaba46087a5d5adf8623ecd9b3cfa16b0ea0de5.tar.gz scummvm-rg350-edaba46087a5d5adf8623ecd9b3cfa16b0ea0de5.tar.bz2 scummvm-rg350-edaba46087a5d5adf8623ecd9b3cfa16b0ea0de5.zip |
AVALANCHE: Logger: replace namespace with class.
Diffstat (limited to 'engines/avalanche/logger2.h')
-rw-r--r-- | engines/avalanche/logger2.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/engines/avalanche/logger2.h b/engines/avalanche/logger2.h index a1b7882abf..bd54823495 100644 --- a/engines/avalanche/logger2.h +++ b/engines/avalanche/logger2.h @@ -25,14 +25,21 @@ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman. */ +/* LOGGER Handles the logging. */ + #ifndef LOGGER2_H #define LOGGER2_H -#include "common/system.h" +#include "common/scummsys.h" +#include "common/str.h" + namespace Avalanche { +class AvalancheEngine; - namespace Logger { +class Logger { +public: + void setParent(AvalancheEngine *vm); void log_setup(Common::String name, bool printing); @@ -62,7 +69,24 @@ namespace Avalanche { void log_score(uint16 credit, uint16 now); - } // End of namespace Logger +private: + AvalancheEngine *_vm; + + static const char divide[]; + + static const Common::String quote; + static const Common::String unquote; + static const Common::String copyright; + static const int16 divide_indent; + + Common::String scroll_line; + byte scroll_line_length; + + void centre(byte size, byte x); + + void log_addstuff(Common::String x); + +}; } // End of namespace Avalanche |