ScummVM API documentation
actor_dialogue_queue.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 BLADERUNNER_ACTOR_DIALOGUE_QUEUE_H
23#define BLADERUNNER_ACTOR_DIALOGUE_QUEUE_H
24
25#include "common/array.h"
26
27namespace BladeRunner {
28
29class BladeRunnerEngine;
30class SaveFileReadStream;
31class SaveFileWriteStream;
32
34 static const uint kMaxEntries = 25;
35
36 struct Entry {
37 bool isNotPause;
38 bool isPause;
39 int actorId;
40 int sentenceId;
41 int animationMode;
42 int32 delayMillis; // in milliseconds, TODO: Info on special values 0 and -1?
43
44 Entry();
45 };
46
48
49 Common::Array<Entry> _entries;
50 bool _isNotPause;
51 int _actorId;
52 int _sentenceId;
53 int _animationMode;
54 int _animationModePrevious;
55 bool _isPause;
56 int32 _delayMillis; // in milliseconds, TODO: Info on special values 0 and -1?
57 uint32 _timeLast; // in milliseconds
58
59public:
62
63 void add(int actorId, int sentenceId, int animationMode);
64 void addPause(int32 delayMillis);
65 void flush(int a1, bool callScript);
66 bool isEmpty();
67 void tick();
68
69 void save(SaveFileWriteStream &f);
70 void load(SaveFileReadStream &f);
71
72private:
73 void clear();
74};
75
76} // End of namespace BladeRunner
77
78#endif
Definition: actor_dialogue_queue.h:33
Definition: bladerunner.h:113
Definition: savefile.h:113
Definition: savefile.h:88