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 
22 #ifndef STARTREK_TEXT_H
23 #define STARTREK_TEXT_H
24 
25 #include "common/language.h"
26 
27 namespace StarTrek {
28 
29 // The type to use for text references (values of "GameStringIDs" enum).
30 // NOTE: if this typedef is changed, certain lines in "saveload.cpp" would also need to be
31 // changed. Better to leave this as-is.
32 typedef int32 TextRef;
33 
34 // Text that's loaded from "GROUND.TXT". First 0x40 pieces of text are for items.
35 // TODO: Floppy version has different numbers for this.
36 enum GroundTextIDs {
37  // Generic "perform undefined action" text (ie. look at nothing, talk to wall)
38  GROUNDTX_LOOK_KIRK = 0x49,
39  GROUNDTX_LOOK_SPOCK = 0x4a,
40  GROUNDTX_LOOK_MCCOY = 0x4b,
41  GROUNDTX_LOOK_REDSHIRT = 0x4c,
42  GROUNDTX_LOOK_ANYWHERE = 0x4d,
43  GROUNDTX_TALK_TO_CREWMAN = 0x4e,
44  GROUNDTX_NO_RESPONSE = 0x4f,
45 
46  GROUNDTX_KIRK_USE = 0x50,
47  GROUNDTX_SPOCK_USE = 0x51,
48  GROUNDTX_MCCOY_USE = 0x52,
49  GROUNDTX_REDSHIRT_USE = 0x53,
50  GROUNDTX_SPOCK_SCAN = 0x54,
51  GROUNDTX_MCCOY_SCAN = 0x55,
52  GROUNDTX_USE_MEDKIT = 0x56,
53 
54  GROUNDTX_PHASER_ON_MCCOY = 0x57, // 8 variations
55  GROUNDTX_PHASER_ON_SPOCK = 0x5f, // 8 variations
56  GROUNDTX_PHASER_ON_REDSHIRT = 0x67, // 8 variations
57  GROUNDTX_PHASER_ANYWHERE = 0x6f, // 7 variations
58 
59  GROUNDTX_USE_COMMUNICATOR = 0x76,
60  GROUNDTX_NOTHING_HAPPENS = 0x77,
61  GROUNDTX_FAIL_TO_OBTAIN_ANYTHING = 0x78
62 };
63 
64 enum GlobalGameStringIDs {
65  TX_END = -2,
66  TX_EMPTY = -1
67 };
68 
69 Common::String patchRoomMessage(const char *text);
70 
72  int16 id;
73  uint16 offsetEnglishCD;
74  uint16 offsetEnglishFloppy;
75  uint16 offsetFrenchCD;
76  uint16 offsetGermanCD;
77 };
78 
79 struct RoomText {
80  int16 id;
81  Common::Language language;
82  const char *text;
83 };
84 
85 // defined in text.cpp
86 extern const char *const g_gameStrings[];
87 
88 } // End of namespace StarTrek
89 
90 #endif
Definition: str.h:59
Definition: action.h:27
Definition: text.h:71
Definition: text.h:79
Language
Definition: language.h:45