~ubuntu-branches/debian/stretch/opentyrian/stretch

« back to all changes in this revision

Viewing changes to src/helptext.h

  • Committer: Package Import Robot
  • Author(s): Etienne Millon
  • Date: 2015-03-31 08:48:54 UTC
  • Revision ID: package-import@ubuntu.com-20150331084854-f5a4uoz7uv3vopk6
Tags: upstream-2.1.20130907+dfsg
ImportĀ upstreamĀ versionĀ 2.1.20130907+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * OpenTyrian: A modern cross-platform port of Tyrian
 
3
 * Copyright (C) 2007-2009  The OpenTyrian Development Team
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
18
 */
 
19
#ifndef HELPTEXT_H
 
20
#define HELPTEXT_H
 
21
 
 
22
#include "opentyr.h"
 
23
 
 
24
#define MENU_MAX 14
 
25
 
 
26
#define DESTRUCT_MODES 5
 
27
 
 
28
extern const JE_byte menuHelp[MENU_MAX][11];   /* [1..14, 1..11] */
 
29
 
 
30
extern JE_byte verticalHeight;
 
31
extern JE_byte helpBoxColor, helpBoxBrightness, helpBoxShadeType;
 
32
 
 
33
#ifdef TYRIAN2000
 
34
#define HELPTEXT_MISCTEXT_COUNT 72
 
35
#define HELPTEXT_MISCTEXTB_COUNT 8
 
36
#define HELPTEXT_MISCTEXTB_SIZE 12
 
37
#define HELPTEXT_MENUTEXT_SIZE 29
 
38
#define HELPTEXT_MAINMENUHELP_COUNT 37
 
39
#define HELPTEXT_NETWORKTEXT_COUNT 5
 
40
#define HELPTEXT_NETWORKTEXT_SIZE 33
 
41
#define HELPTEXT_SUPERSHIPS_COUNT 13
 
42
#define HELPTEXT_SPECIALNAME_COUNT 11
 
43
#define HELPTEXT_SHIPINFO_COUNT 20
 
44
#define HELPTEXT_MENUINT3_COUNT 9
 
45
#define HELPTEXT_MENUINT12_COUNT 7
 
46
#else
 
47
#define HELPTEXT_MISCTEXT_COUNT 68
 
48
#define HELPTEXT_MISCTEXTB_COUNT 5
 
49
#define HELPTEXT_MISCTEXTB_SIZE 11
 
50
#define HELPTEXT_MENUTEXT_SIZE 21
 
51
#define HELPTEXT_MAINMENUHELP_COUNT 34
 
52
#define HELPTEXT_NETWORKTEXT_COUNT 4
 
53
#define HELPTEXT_NETWORKTEXT_SIZE 22
 
54
#define HELPTEXT_SUPERSHIPS_COUNT 11
 
55
#define HELPTEXT_SPECIALNAME_COUNT 9
 
56
#define HELPTEXT_SHIPINFO_COUNT 13
 
57
#endif
 
58
 
 
59
extern char helpTxt[39][231];
 
60
extern char pName[21][16];
 
61
extern char miscText[HELPTEXT_MISCTEXT_COUNT][42];
 
62
extern char miscTextB[HELPTEXT_MISCTEXTB_COUNT][HELPTEXT_MISCTEXTB_SIZE];
 
63
extern char keyName[8][18];
 
64
extern char menuText[7][HELPTEXT_MENUTEXT_SIZE];
 
65
extern char outputs[9][31];
 
66
extern char topicName[6][21];
 
67
extern char mainMenuHelp[HELPTEXT_MAINMENUHELP_COUNT][66];
 
68
extern char inGameText[6][21];
 
69
extern char detailLevel[6][13];
 
70
extern char gameSpeedText[5][13];
 
71
extern char inputDevices[3][13];
 
72
extern char networkText[HELPTEXT_NETWORKTEXT_COUNT][HELPTEXT_NETWORKTEXT_SIZE];
 
73
extern char difficultyNameB[11][21];
 
74
extern char joyButtonNames[5][21];
 
75
extern char superShips[HELPTEXT_SUPERSHIPS_COUNT][26];
 
76
extern char specialName[HELPTEXT_SPECIALNAME_COUNT][10];
 
77
extern char destructHelp[25][22];
 
78
extern char weaponNames[17][17];
 
79
extern char destructModeName[DESTRUCT_MODES][13];
 
80
extern char shipInfo[HELPTEXT_SHIPINFO_COUNT][2][256];
 
81
extern char menuInt[MENU_MAX+1][11][18];
 
82
 
 
83
void read_encrypted_pascal_string( char *s, int size, FILE *f );
 
84
void skip_pascal_string( FILE *f );
 
85
 
 
86
void JE_helpBox( SDL_Surface *screen, int x, int y, const char *message, unsigned int boxwidth );
 
87
void JE_HBox( SDL_Surface *screen, int x, int y, unsigned int  messagenum, unsigned int boxwidth );
 
88
void JE_loadHelpText( void );
 
89
 
 
90
#endif /* HELPTEXT_H */
 
91