ScummVM API documentation
mline.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_MLINE_H
23#define MTROPOLIS_PLUGIN_MLINE_H
24
25#include "mtropolis/modifiers.h"
26#include "mtropolis/modifier_factory.h"
27#include "mtropolis/runtime.h"
28#include "mtropolis/plugin/mline_data.h"
29
30namespace MTropolis {
31
32namespace MLine {
33
35public:
38
39 bool load(const PlugInModifierLoaderContext &context, const Data::MLine::MLineLauncherModifier &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 "mLine Launcher Modifier"; }
48 void debugInspect(IDebugInspectionReport *report) const override;
49#endif
50
51private:
52 Common::SharedPtr<Modifier> shallowClone() const override;
53 const char *getDefaultName() const override;
54};
55
57public:
60
61 void registerModifiers(IPlugInModifierRegistrar *registrar) const override;
62
63private:
65};
66
67} // End of namespace MLine
68
69} // End of namespace MTropolis
70
71#endif
Definition: ptr.h:159
Definition: mline.h:56
Definition: runtime.h:3035
Definition: runtime.h:1185
Definition: modifier_factory.h:57
Definition: runtime.h:1575
Definition: actions.h:25
Definition: runtime.h:369
Definition: debug.h:59
Definition: runtime.h:1180
Definition: modifier_factory.h:48