diff options
author | Peter Kohaut | 2016-10-02 02:47:12 +0200 |
---|---|---|
committer | Peter Kohaut | 2016-10-02 02:47:12 +0200 |
commit | 89d1805b37a6283d90a7dd5b4dbbdffd7950f5ab (patch) | |
tree | 0c6caa275cf8a404d2c82745d00d0543a1f263f5 /engines/bladerunner/adq.h | |
parent | 2c15b164d736d1339998f9dcf7a4a230984cdff5 (diff) | |
download | scummvm-rg350-89d1805b37a6283d90a7dd5b4dbbdffd7950f5ab.tar.gz scummvm-rg350-89d1805b37a6283d90a7dd5b4dbbdffd7950f5ab.tar.bz2 scummvm-rg350-89d1805b37a6283d90a7dd5b4dbbdffd7950f5ab.zip |
BLADERUNNER: added ADQ, fixed some minor memory leaks
Diffstat (limited to 'engines/bladerunner/adq.h')
-rw-r--r-- | engines/bladerunner/adq.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/engines/bladerunner/adq.h b/engines/bladerunner/adq.h new file mode 100644 index 0000000000..20a4c191e2 --- /dev/null +++ b/engines/bladerunner/adq.h @@ -0,0 +1,74 @@ +/* ScummVM - Graphic Adventure Engine +* +* ScummVM is the legal property of its developers, whose names +* are too numerous to list here. Please refer to the COPYRIGHT +* file distributed with this source distribution. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +*/ + +#ifndef BLADERUNNER_ADQ_H +#define BLADERUNNER_ADQ_H +#include "common/array.h" + +namespace BladeRunner { + +class BladeRunnerEngine; + +// actor dialogue queue?? +class ADQ { + BladeRunnerEngine *_vm; + + class ADQEntry { + public: + bool _isNotPause; + bool _isPause; + int _actorId; + int _sentenceId; + int _animationMode; + int _delay; + + ADQEntry(); + }; + + Common::Array<ADQEntry> _entries; + + bool _isNotPause; + int _actorId; + int _sentenceId; + int _animationMode; + int _animationModePrevious; + bool _isPause; + int _delay; + int _timeLast; + + +public: + ADQ(BladeRunnerEngine *vm); + ~ADQ(); + + void add(int actorId, int speechId, int animationMode); + void addPause(int delay); + void flush(int a1, bool callScript); + void tick(); + +private: + void clear(); +}; + +} // End of namespace BladeRunner + +#endif |