ScummVM API documentation
saytask.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 MUTATIONOFJB_SAYTASK_H
23
#define MUTATIONOFJB_SAYTASK_H
24
25
#include "mutationofjb/tasks/task.h"
26
27
#include "mutationofjb/timer.h"
28
29
#include "common/rect.h"
30
#include "common/str.h"
31
32
namespace
MutationOfJB
{
33
34
class
SayTask
:
public
Task
{
35
public
:
36
SayTask
(
const
Common::String
&toSay, uint8 color);
37
38
void
start()
override
;
39
void
update()
override
;
40
void
stop()
override
;
41
42
private
:
43
void
drawSubtitle(
const
Common::String
&text, int16 talkX, int16 talkY, uint8 color);
44
void
finish();
45
46
Common::String
_toSay;
47
uint8 _color;
48
Timer
_timer;
49
Common::Rect
_boundingBox;
50
};
51
52
}
53
54
#endif
MutationOfJB::Timer
Definition:
timer.h:26
Common::String
Definition:
str.h:59
Common::Rect
Definition:
rect.h:144
MutationOfJB::Task
Definition:
task.h:36
MutationOfJB
Definition:
animationdecoder.h:36
MutationOfJB::SayTask
Definition:
saytask.h:34
engines
mutationofjb
tasks
saytask.h
Generated on Mon Dec 23 2024 09:16:18 for ScummVM API documentation by
1.8.13