ScummVM API documentation
text_eob_segacd.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#ifdef ENABLE_EOB
23
24#ifndef KYRA_TEXT_EOB_SEGACD_H
25#define KYRA_TEXT_EOB_SEGACD_H
26
27#include "kyra/text/text_rpg.h"
28
29namespace Kyra {
30
31class EoBEngine;
32class Screen_EoB;
33
34class TextDisplayer_SegaCD : public TextDisplayer_rpg {
35public:
36 TextDisplayer_SegaCD(EoBEngine *engine, Screen_EoB *scr);
37 virtual ~TextDisplayer_SegaCD();
38
39 void printDialogueText(int id, const char *string1, const char *string2) override;
40 void printDialogueText(const char *str, bool wait = false) override;
41 void printShadedText(const char *str, int x = -1, int y = -1, int textColor = -1, int shadowColor = -1, int pitchW = -1, int pitchH = -1, int marginRight = 0, bool screenUpdate = true) override;
42 int clearDim(int dim) override;
43
44private:
45 void displayText(char *str, ...) override;
46 uint8 fetchCharacter(char *dest, const char *&src);
47 void linefeed();
48
49 void clearTextBufferLine(uint16 y, uint16 lineHeight, uint16 pitch, uint8 col);
50 void copyTextBufferLine(uint16 srcY, uint16 dstY, uint16 lineHeight, uint16 pitch);
51
52 Screen_EoB *_screen;
53 SegaRenderer *_renderer;
54 EoBEngine *_engine;
55 uint8 *_msgRenderBuffer;
56 uint32 _msgRenderBufferSize;
57
58 int _curDim;
59 int _curPosY;
60 int _curPosX;
61 int _textColor;
62
63 static const ScreenDim _dimTable[6];
64};
65
66} // End of namespace Kyra
67
68#endif
69
70#endif // ENABLE_EOB
Definition: detection.h:27