diff options
author | Paul Gilbert | 2010-07-31 06:23:38 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 21:55:38 +0000 |
commit | e78b19a650e27fe9a24d0e4c9c938294c7b08650 (patch) | |
tree | d61751dd6dbefe6834742ff9cc5d10f61be4dc02 /engines/sword25/kernel/service.h | |
parent | 1842de4b0035854f271a40dcaa514cdba66bcf57 (diff) | |
download | scummvm-rg350-e78b19a650e27fe9a24d0e4c9c938294c7b08650.tar.gz scummvm-rg350-e78b19a650e27fe9a24d0e4c9c938294c7b08650.tar.bz2 scummvm-rg350-e78b19a650e27fe9a24d0e4c9c938294c7b08650.zip |
SWORD25: Converted kernel/kernel.cpp to compile under ScummVM
This commit creates a skeleton detection and engine class, as well as code necessary to call the kernel initiation.
The kernel/kernel.cpp has been converted to compile under ScummVM, along with all dependant header files.
svn-id: r53184
Diffstat (limited to 'engines/sword25/kernel/service.h')
-rwxr-xr-x | engines/sword25/kernel/service.h | 76 |
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 |