ScummVM API documentation
text.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#ifndef TEXT_H
22#define TEXT_H
23
24namespace Hugo {
25
27public:
30
31 const char *getNoun(int idx1, int idx2) const;
32 const char *getScreenNames(int screenIndex) const;
33 const char *getStringtData(int stringIndex) const;
34 const char *getTextData(int textIndex) const;
35 const char *getTextEngine(int engineIndex) const;
36 const char *getTextIntro(int introIndex) const;
37 const char *getTextMouse(int mouseIndex) const;
38 const char *getTextParser(int parserIndex) const;
39 const char *getTextUtil(int utilIndex) const;
40 const char *getVerb(int idx1, int idx2) const;
41 char **getNounArray(int idx1) const;
42 char **getVerbArray(int idx1) const;
43
44 void loadAllTexts(Common::ReadStream &in);
45 void freeAllTexts();
46
47private:
48 HugoEngine *_vm;
49
50 char ***_arrayNouns;
51 char ***_arrayVerbs;
52
53 char **_screenNames;
54 char **_stringtData;
55 char **_textData;
56 char **_textEngine;
57 char **_textIntro;
58 char **_textMouse;
59 char **_textParser;
60 char **_textUtil;
61
62 char ***loadTextsArray(Common::ReadStream &in);
63 char **loadTextsVariante(Common::ReadStream &in, uint16 *arraySize);
64 char **loadTexts(Common::ReadStream &in);
65
66 void freeTexts(char **ptr);
67
68};
69
70} // End of namespace Hugo
71#endif // TEXT_H
Definition: stream.h:385
Definition: hugo.h:219
Definition: text.h:26
Definition: console.h:27