aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/service.h
blob: d79194f41a7568ff35250e964b1be97febd176db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// -----------------------------------------------------------------------------
// 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
*/

#ifndef _BS_SERVICE_H
#define _BS_SERVICE_H

// Includes
#include "common.h"

// Klassendefinition
class BS_Kernel;

class BS_Service
{
private:
	BS_Kernel*	_pKernel;
		
protected:
	BS_Service(BS_Kernel* pKernel) : _pKernel(pKernel) {};
	
	BS_Kernel* GetKernel() const { return _pKernel; }
	
public:
	virtual ~BS_Service(){};
};

#endif