aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/service.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/kernel/service.h')
-rwxr-xr-xengines/sword25/kernel/service.h76
1 files changed, 40 insertions, 36 deletions
diff --git a/engines/sword25/kernel/service.h b/engines/sword25/kernel/service.h
index c5ca98f747..3fe5b06a79 100755
--- a/engines/sword25/kernel/service.h
+++ b/engines/sword25/kernel/service.h
@@ -1,34 +1,35 @@
-// -----------------------------------------------------------------------------
-// This file is part of Broken Sword 2.5
-// Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdörfer
-//
-// Broken Sword 2.5 is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// Broken Sword 2.5 is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Broken Sword 2.5; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-// -----------------------------------------------------------------------------
-
-/*
- BS_Service
- -------------
- Dies ist die Basisklasse für alle Services der Engine.
- Ein Service ist ein wesentlicher Bestandteil des Engine, z.B. die Graphiksystem.
- Das Servicesystem macht es möglich mehrere verschiedene Services für ein System zu haben,
- und je nach Betriebssystem einen passenden auszuwählen.
- Denkbar wären z.B. zwei Graphiksysteme von denen eines hardwarebeschleunigt ist und ein
- anderes nicht.
- Die Services werden zur Laufzeit über die Kernelmethode NewService und NIEMALS mit new erzeugt.
-
- Autor: Malte Thiesen
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ * BS_Service
+ * -------------
+ * This is the base class for all engine services.
+ * A serivce is an essential part of the engine, ex. the graphics system.
+ * This was intended to allow, for example, different plug in modules for
+ * different kinds of hardware and/or systems.
+ * The services are created at runtime via the kernel method NewService and NEVER with new.
+ *
+ * Autor: Malte Thiesen
*/
#ifndef SWORD25_SERVICE_H
@@ -37,21 +38,24 @@
// Includes
#include "sword25/kernel/common.h"
+namespace Sword25 {
+
// Klassendefinition
class BS_Kernel;
-class BS_Service
-{
+class BS_Service {
private:
- BS_Kernel* _pKernel;
+ BS_Kernel * _pKernel;
protected:
- BS_Service(BS_Kernel* pKernel) : _pKernel(pKernel) {};
+ BS_Service(BS_Kernel *pKernel) : _pKernel(pKernel) {};
BS_Kernel* GetKernel() const { return _pKernel; }
public:
- virtual ~BS_Service(){};
+ virtual ~BS_Service() {};
};
+} // End of namespace Sword25
+
#endif