ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ftts.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_FTTS_H
23
#define MTROPOLIS_PLUGIN_FTTS_H
24
25
#include "mtropolis/modifiers.h"
26
#include "mtropolis/modifier_factory.h"
27
#include "mtropolis/runtime.h"
28
#include "mtropolis/plugin/ftts_data.h"
29
30
namespace
MTropolis
{
31
32
namespace
FTTS {
33
34
class
MotionModifier
:
public
Modifier
{
35
public
:
36
MotionModifier
();
37
~
MotionModifier
();
38
39
bool
load(
const
PlugInModifierLoaderContext
&context,
const
Data::FTTS::MotionModifier
&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
"Motion 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
SparkleModifier
:
public
Modifier
{
57
public
:
58
SparkleModifier
();
59
~
SparkleModifier
();
60
61
bool
load(
const
PlugInModifierLoaderContext
&context,
const
Data::FTTS::SparkleModifier
&data);
62
63
bool
respondsToEvent(
const
Event
&evt)
const override
;
64
VThreadState consumeMessage(
Runtime
*runtime,
const
Common::SharedPtr<MessageProperties>
&msg)
override
;
65
66
void
disable(
Runtime
*runtime)
override
;
67
68
#ifdef MTROPOLIS_DEBUG_ENABLE
69
const
char
*debugGetTypeName()
const override
{
return
"Sparkle Modifier"
; }
70
void
debugInspect(
IDebugInspectionReport
*report)
const override
;
71
#endif
72
73
private
:
74
Common::SharedPtr<Modifier>
shallowClone()
const override
;
75
const
char
*getDefaultName()
const override
;
76
};
77
78
class
FTTSPlugIn
:
public
MTropolis::PlugIn
{
79
public
:
80
FTTSPlugIn
();
81
~
FTTSPlugIn
();
82
83
void
registerModifiers(
IPlugInModifierRegistrar
*registrar)
const override
;
84
85
private
:
86
PlugInModifierFactory<MotionModifier, Data::FTTS::MotionModifier>
_motionModifierFactory;
87
PlugInModifierFactory<SparkleModifier, Data::FTTS::SparkleModifier>
_sparkleModifierFactory;
88
};
89
90
}
// End of namespace FTTS
91
92
}
// End of namespace MTropolis
93
94
#endif
MTropolis::FTTS::SparkleModifier
Definition:
ftts.h:56
MTropolis::FTTS::MotionModifier
Definition:
ftts.h:34
MTropolis::Runtime
Definition:
runtime.h:1575
MTropolis::PlugIn
Definition:
runtime.h:1185
MTropolis::Modifier
Definition:
runtime.h:3035
MTropolis::Data::FTTS::SparkleModifier
Definition:
ftts_data.h:55
MTropolis::PlugInModifierFactory
Definition:
modifier_factory.h:57
MTropolis::PlugInModifierLoaderContext
Definition:
modifier_factory.h:48
MTropolis::Data::FTTS::MotionModifier
Definition:
ftts_data.h:38
MTropolis::Event
Definition:
runtime.h:369
MTropolis::IPlugInModifierRegistrar
Definition:
runtime.h:1180
MTropolis::IDebugInspectionReport
Definition:
debug.h:59
MTropolis
Definition:
actions.h:25
MTropolis::FTTS::FTTSPlugIn
Definition:
ftts.h:78
Common::SharedPtr
Definition:
ptr.h:159
engines
mtropolis
plugin
ftts.h
Generated on Thu Apr 10 2025 09:16:42 for ScummVM API documentation by
1.8.13