scummvm/engines/kyra/text_lol.h

71 lines
1.9 KiB
C
Raw Normal View History

2009-02-01 19:27:01 +00:00
/* 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 KYRA_TEXT_LOL_H
#define KYRA_TEXT_LOL_H
2011-12-11 00:57:03 +00:00
#if defined(ENABLE_EOB) || defined(ENABLE_LOL)
#include "kyra/text_rpg.h"
2011-12-11 00:57:03 +00:00
#endif
2011-04-28 13:39:17 +00:00
#include "common/scummsys.h"
2011-12-11 00:57:03 +00:00
#ifdef ENABLE_LOL
2009-02-01 19:27:01 +00:00
namespace Kyra {
2011-04-28 13:39:17 +00:00
class Screen_LoL;
2009-02-01 19:27:01 +00:00
class LoLEngine;
struct EMCState;
class TextDisplayer_LoL : public TextDisplayer_rpg {
2009-02-01 19:27:01 +00:00
public:
2011-12-11 00:57:03 +00:00
TextDisplayer_LoL(LoLEngine *engine, Screen_LoL *screenLoL);
2009-02-01 19:27:01 +00:00
~TextDisplayer_LoL();
void setupField(bool mode);
void expandField();
void printDialogueText(int dim, char *str, EMCState *script, const uint16 *paramList, int16 paramIndex);
void printMessage(uint16 type, const char *str, ...) GCC_PRINTF(3, 4);
int16 _scriptTextParameter;
2009-02-01 19:27:01 +00:00
private:
virtual KyraRpgEngine *vm();
virtual Screen *screen();
2011-12-11 00:57:03 +00:00
void preprocessString(char *str, EMCState *script, const uint16 *paramList, int16 paramIndex);
void textPageBreak();
2009-02-01 19:27:01 +00:00
char *_stringParameters[15];
char *_buffer;
LoLEngine *_vm;
Screen_LoL *_screen;
};
} // End of namespace Kyra
2009-02-01 19:27:01 +00:00
2011-12-11 00:57:03 +00:00
#endif // ENABLE_LOL
2009-02-01 19:27:01 +00:00
#endif