From edaba46087a5d5adf8623ecd9b3cfa16b0ea0de5 Mon Sep 17 00:00:00 2001 From: uruk Date: Fri, 28 Jun 2013 18:25:28 +0200 Subject: AVALANCHE: Logger: replace namespace with class. --- engines/avalanche/logger2.h | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'engines/avalanche/logger2.h') 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 -- cgit v1.2.3