ScummVM API documentation
text_lol.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 KYRA_TEXT_LOL_H
23#define KYRA_TEXT_LOL_H
24
25#if defined(ENABLE_EOB) || defined(ENABLE_LOL)
26#include "kyra/text/text_rpg.h"
27#endif
28#include "common/scummsys.h"
29
30#ifdef ENABLE_LOL
31
32namespace Kyra {
33
34class Screen_LoL;
35class LoLEngine;
36struct EMCState;
37
38class TextDisplayer_LoL : public TextDisplayer_rpg {
39public:
40 TextDisplayer_LoL(LoLEngine *engine, Screen_LoL *screenLoL);
41 ~TextDisplayer_LoL() override;
42
43 void setupField(bool mode);
44 void expandField();
45
46 void printDialogueText2(int dim, const char *str, EMCState *script, const uint16 *paramList, int16 paramIndex);
47 void printMessage(uint16 type, MSVC_PRINTF const char *str, ...) GCC_PRINTF(3, 4);
48
49 int16 _scriptTextParameter;
50
51private:
52 KyraRpgEngine *vm() override;
53 Screen *screen() override;
54
55 void preprocessString(const char *str, EMCState *script, const uint16 *paramList, int16 paramIndex);
56 void textPageBreak() override;
57
58 char *_stringParameters[15];
59 char *_buffer;
60
61 LoLEngine *_vm;
62 Screen_LoL *_screen;
63};
64
65} // End of namespace Kyra
66
67#endif // ENABLE_LOL
68
69#endif
int FORCEINLINE GCC_PRINTF(2, 0) int vsprintf_s(T(&dst)[N]
Definition: detection.h:27
Definition: atari-screen.h:58