ScummVM API documentation
lipsync.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 STARK_RESOURCES_LIPSYNC_H
23
#define STARK_RESOURCES_LIPSYNC_H
24
25
#include "common/str.h"
26
27
#include "engines/stark/resources/object.h"
28
29
namespace
Stark
{
30
31
class
VisualActor;
32
33
namespace
Formats {
34
class
XRCReadStream;
35
}
36
37
namespace
Resources {
38
39
class
ItemVisual;
40
class
ModelItem;
41
class
TextureSet;
42
46
class
LipSync
:
public
Object
{
47
public
:
48
static
const
Type::ResourceType TYPE = Type::kLipSync;
49
50
LipSync
(
Object
*parent, byte subType, uint16 index,
const
Common::String
&name);
51
virtual
~
LipSync
();
52
53
// Resource API
54
void
readData(
Formats::XRCReadStream
*stream)
override
;
55
void
onGameLoop()
override
;
56
void
saveLoadCurrent(
ResourceSerializer
*serializer)
override
;
57
59
void
setItem(
ItemVisual
*item,
bool
playTalkAnim);
60
62
void
reset();
63
64
protected
:
65
void
printData()
override
;
66
67
Common::Array<char>
_shapes;
68
ItemVisual
*_item;
69
ModelItem
*_sceneItem;
70
TextureSet
*_faceTexture;
71
VisualActor
*_visual;
72
73
bool
_checkForNewVisual;
74
bool
_enabled;
75
uint32 _positionMs;
76
};
77
78
}
// End of namespace Resources
79
}
// End of namespace Stark
80
81
#endif // STARK_RESOURCES_LIPSYNC_H
Common::String
Definition:
str.h:59
Common::Array< char >
Stark::Resources::ModelItem
Definition:
item.h:413
Stark::Resources::ItemVisual
Definition:
item.h:139
Stark::VisualActor
Definition:
actor.h:50
Stark::Resources::LipSync
Definition:
lipsync.h:46
Stark
Definition:
console.h:27
Stark::Resources::Object
Definition:
object.h:143
Stark::Resources::TextureSet
Definition:
textureset.h:47
Stark::Formats::XRCReadStream
Definition:
xrc.h:45
Stark::ResourceSerializer
Definition:
stateprovider.h:51
engines
stark
resources
lipsync.h
Generated on Mon Dec 23 2024 09:11:54 for ScummVM API documentation by
1.8.13