ScummVM API documentation
kw.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef MTROPOLIS_PLUGIN_KW_H
23
#define MTROPOLIS_PLUGIN_KW_H
24
25
#include "mtropolis/modifiers.h"
26
#include "mtropolis/modifier_factory.h"
27
#include "mtropolis/runtime.h"
28
#include "mtropolis/plugin/kw_data.h"
29
30
namespace
MTropolis
{
31
32
namespace
KW {
33
34
class
StrUtilModifier
:
public
Modifier
{
35
public
:
36
StrUtilModifier
();
37
~
StrUtilModifier
();
38
39
bool
load(
const
PlugInModifierLoaderContext
&context,
const
Data::KW::StrUtilModifier
&data);
40
41
bool
respondsToEvent(
const
Event
&evt)
const override
;
42
VThreadState consumeMessage(
Runtime
*runtime,
const
Common::SharedPtr<MessageProperties>
&msg)
override
;
43
44
void
disable(
Runtime
*runtime)
override
;
45
46
#ifdef MTROPOLIS_DEBUG_ENABLE
47
const
char
*debugGetTypeName()
const override
{
return
"StrUtil Modifier"
; }
48
void
debugInspect(
IDebugInspectionReport
*report)
const override
;
49
#endif
50
51
private
:
52
Common::SharedPtr<Modifier>
shallowClone()
const override
;
53
const
char
*getDefaultName()
const override
;
54
};
55
56
class
KnowWonderPlugIn
:
public
MTropolis::PlugIn
{
57
public
:
58
KnowWonderPlugIn
();
59
~
KnowWonderPlugIn
();
60
61
void
registerModifiers(
IPlugInModifierRegistrar
*registrar)
const override
;
62
63
private
:
64
PlugInModifierFactory<StrUtilModifier, Data::KW::StrUtilModifier>
_strUtilModifierFactory;
65
};
66
67
}
// End of namespace KW
68
69
}
// End of namespace MTropolis
70
71
#endif
MTropolis::Runtime
Definition:
runtime.h:1575
MTropolis::PlugIn
Definition:
runtime.h:1185
MTropolis::Modifier
Definition:
runtime.h:3035
MTropolis::PlugInModifierFactory
Definition:
modifier_factory.h:57
MTropolis::PlugInModifierLoaderContext
Definition:
modifier_factory.h:48
MTropolis::KW::StrUtilModifier
Definition:
kw.h:34
MTropolis::Event
Definition:
runtime.h:369
MTropolis::IPlugInModifierRegistrar
Definition:
runtime.h:1180
MTropolis::IDebugInspectionReport
Definition:
debug.h:59
MTropolis::KW::KnowWonderPlugIn
Definition:
kw.h:56
MTropolis
Definition:
actions.h:25
Common::SharedPtr
Definition:
ptr.h:159
MTropolis::Data::KW::StrUtilModifier
Definition:
kw_data.h:40
engines
mtropolis
plugin
kw.h
Generated on Fri Nov 22 2024 09:20:25 for ScummVM API documentation by
1.8.13