2
* OpenTyrian: A modern cross-platform port of Tyrian
3
* Copyright (C) 2007-2009 The OpenTyrian Development Team
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.
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.
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.
27
/* Episodes and general data */
32
#define EPISODE_AVAILABLE 5
34
#define EPISODE_AVAILABLE 4
45
JE_byte attack[8], del[8]; /* [1..8] */
46
JE_shortint sx[8], sy[8]; /* [1..8] */
47
JE_shortint bx[8], by[8]; /* [1..8] */
48
JE_word sg[8]; /* [1..8] */
49
JE_shortint acceleration, accelerationx;
53
JE_byte shipblastfilter;
58
char name[31]; /* string [30] */
60
JE_word op[2][11]; /* [1..2, 1..11] */
64
} JE_WeaponPortType[PORT_NUM + 1]; /* [0..portnum] */
68
char name[31]; /* string [30] */
73
} JE_PowerType[POWER_NUM + 1]; /* [0..powernum] */
77
char name[31]; /* string [30] */
82
} JE_SpecialType[SPECIAL_NUM + 1]; /* [0..specialnum] */
86
char name[31]; /* string [30] */
93
JE_word gr[20]; /* [1..20] */
103
char name[31]; /* string [30] */
108
} JE_ShieldType[SHIELD_NUM + 1]; /* [0..shieldnum] */
112
char name[31]; /* string [30] */
119
JE_byte bigshipgraphic;
120
} JE_ShipType[SHIP_NUM + 1]; /* [0..shipnum] */
126
JE_byte tur[3]; /* [1..3] */
127
JE_byte freq[3]; /* [1..3] */
140
JE_word egraphic[20]; /* [1..20] */
141
JE_byte explosiontype;
142
JE_byte animate; /* 0:Not Yet 1:Always 2:When Firing Only */
143
JE_byte shapebank; /* See LEVELMAK.DOC */
144
JE_shortint xrev, yrev;
152
} JE_EnemyDatType[ENEMY_NUM + 1]; /* [0..enemynum] */
154
extern JE_WeaponPortType weaponPort;
155
extern JE_WeaponType weapons[WEAP_NUM + 1]; /* [0..weapnum] */
156
extern JE_PowerType powerSys;
157
extern JE_ShipType ships;
158
extern JE_OptionType options[OPTION_NUM + 1]; /* [0..optionnum] */
159
extern JE_ShieldType shields;
160
extern JE_SpecialType special;
161
extern JE_EnemyDatType enemyDat;
162
extern JE_byte initial_episode_num, episodeNum;
163
extern JE_boolean episodeAvail[EPISODE_MAX];
165
extern char episode_file[13], cube_file[13];
167
extern JE_longint episode1DataLoc;
168
extern JE_boolean bonusLevel;
169
extern JE_boolean jumpBackToEpisode1;
171
void JE_loadItemDat( void );
172
void JE_initEpisode( JE_byte newEpisode );
173
unsigned int JE_findNextEpisode( void );
174
void JE_scanForEpisodes( void );
176
#endif /* EPISODES_H */