Debian Codegraph @

src/episodes.h

raw symbols SCIP
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 EPISODES_H
20 #define EPISODES_Hcxx . . $ `src/episodes.h:20:9`!
21
22 #include "opentyr.h"cxx . . $ `<file>/src/opentyr.h`/
23
24 #include "lvlmast.h"cxx . . $ `<file>/src/lvlmast.h`/
25
26 /* Episodes and general data */
27
28 #define FIRST_LEVELcxx . . $ `src/episodes.h:28:9`! 1
29 #define EPISODE_MAXcxx . . $ `src/episodes.h:29:9`! 5
30 #define EPISODE_AVAILABLEcxx . . $ `src/episodes.h:30:9`! 4
31
32 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_0#
33 {
34 JE_wordcxx . . $ JE_word# draincxx . . $ $anonymous_type_66fcae0887b82ce8_0#drain.;
35 JE_bytecxx . . $ JE_byte# shotrepeatcxx . . $ $anonymous_type_66fcae0887b82ce8_0#shotrepeat.;
36 JE_bytecxx . . $ JE_byte# multicxx . . $ $anonymous_type_66fcae0887b82ce8_0#multi.;
37 JE_wordcxx . . $ JE_word# weapanicxx . . $ $anonymous_type_66fcae0887b82ce8_0#weapani.;
38 JE_bytecxx . . $ JE_byte# maxcxx . . $ $anonymous_type_66fcae0887b82ce8_0#max.;
39 JE_bytecxx . . $ JE_byte# txcxx . . $ $anonymous_type_66fcae0887b82ce8_0#tx., tycxx . . $ $anonymous_type_66fcae0887b82ce8_0#ty., aimcxx . . $ $anonymous_type_66fcae0887b82ce8_0#aim.;
40 JE_bytecxx . . $ JE_byte# attackcxx . . $ $anonymous_type_66fcae0887b82ce8_0#attack.[8], delcxx . . $ $anonymous_type_66fcae0887b82ce8_0#del.[8]; /* [1..8] */
41 JE_shortintcxx . . $ JE_shortint# sxcxx . . $ $anonymous_type_66fcae0887b82ce8_0#sx.[8], sycxx . . $ $anonymous_type_66fcae0887b82ce8_0#sy.[8]; /* [1..8] */
42 JE_shortintcxx . . $ JE_shortint# bxcxx . . $ $anonymous_type_66fcae0887b82ce8_0#bx.[8], bycxx . . $ $anonymous_type_66fcae0887b82ce8_0#by.[8]; /* [1..8] */
43 JE_wordcxx . . $ JE_word# sgcxx . . $ $anonymous_type_66fcae0887b82ce8_0#sg.[8]; /* [1..8] */
44 JE_shortintcxx . . $ JE_shortint# accelerationcxx . . $ $anonymous_type_66fcae0887b82ce8_0#acceleration., accelerationxcxx . . $ $anonymous_type_66fcae0887b82ce8_0#accelerationx.;
45 JE_bytecxx . . $ JE_byte# circlesizecxx . . $ $anonymous_type_66fcae0887b82ce8_0#circlesize.;
46 JE_bytecxx . . $ JE_byte# soundcxx . . $ $anonymous_type_66fcae0887b82ce8_0#sound.;
47 JE_bytecxx . . $ JE_byte# trailcxx . . $ $anonymous_type_66fcae0887b82ce8_0#trail.;
48 JE_bytecxx . . $ JE_byte# shipblastfiltercxx . . $ $anonymous_type_66fcae0887b82ce8_0#shipblastfilter.;
49 } JE_WeaponTypecxx . . $ JE_WeaponType#;
50
51 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_1#
52 {
53 char namecxx . . $ $anonymous_type_66fcae0887b82ce8_1#name.[31]; /* string [30] */
54 JE_bytecxx . . $ JE_byte# opnumcxx . . $ $anonymous_type_66fcae0887b82ce8_1#opnum.;
55 JE_wordcxx . . $ JE_word# opcxx . . $ $anonymous_type_66fcae0887b82ce8_1#op.[2][11]; /* [1..2, 1..11] */
56 JE_wordcxx . . $ JE_word# costcxx . . $ $anonymous_type_66fcae0887b82ce8_1#cost.;
57 JE_wordcxx . . $ JE_word# itemgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_1#itemgraphic.;
58 JE_wordcxx . . $ JE_word# powerusecxx . . $ $anonymous_type_66fcae0887b82ce8_1#poweruse.;
59 } JE_WeaponPortTypecxx . . $ JE_WeaponPortType#[PORT_NUMcxx . . $ `src/lvlmast.h:27:9`! + 1]; /* [0..portnum] */
60
61 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_2#
62 {
63 char namecxx . . $ $anonymous_type_66fcae0887b82ce8_2#name.[31]; /* string [30] */
64 JE_wordcxx . . $ JE_word# itemgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_2#itemgraphic.;
65 JE_bytecxx . . $ JE_byte# powercxx . . $ $anonymous_type_66fcae0887b82ce8_2#power.;
66 JE_shortintcxx . . $ JE_shortint# speedcxx . . $ $anonymous_type_66fcae0887b82ce8_2#speed.;
67 JE_wordcxx . . $ JE_word# costcxx . . $ $anonymous_type_66fcae0887b82ce8_2#cost.;
68 } JE_PowerTypecxx . . $ JE_PowerType#[POWER_NUMcxx . . $ `src/lvlmast.h:29:9`! + 1]; /* [0..powernum] */
69
70 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_3#
71 {
72 char namecxx . . $ $anonymous_type_66fcae0887b82ce8_3#name.[31]; /* string [30] */
73 JE_wordcxx . . $ JE_word# itemgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_3#itemgraphic.;
74 JE_bytecxx . . $ JE_byte# pwrcxx . . $ $anonymous_type_66fcae0887b82ce8_3#pwr.;
75 JE_bytecxx . . $ JE_byte# stypecxx . . $ $anonymous_type_66fcae0887b82ce8_3#stype.;
76 JE_wordcxx . . $ JE_word# wpncxx . . $ $anonymous_type_66fcae0887b82ce8_3#wpn.;
77 } JE_SpecialTypecxx . . $ JE_SpecialType#[SPECIAL_NUMcxx . . $ `src/lvlmast.h:34:9`! + 1]; /* [0..specialnum] */
78
79 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_4#
80 {
81 char namecxx . . $ $anonymous_type_66fcae0887b82ce8_4#name.[31]; /* string [30] */
82 JE_bytecxx . . $ JE_byte# pwrcxx . . $ $anonymous_type_66fcae0887b82ce8_4#pwr.;
83 JE_wordcxx . . $ JE_word# itemgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_4#itemgraphic.;
84 JE_wordcxx . . $ JE_word# costcxx . . $ $anonymous_type_66fcae0887b82ce8_4#cost.;
85 JE_bytecxx . . $ JE_byte# trcxx . . $ $anonymous_type_66fcae0887b82ce8_4#tr., optioncxx . . $ $anonymous_type_66fcae0887b82ce8_4#option.;
86 JE_shortintcxx . . $ JE_shortint# opspdcxx . . $ $anonymous_type_66fcae0887b82ce8_4#opspd.;
87 JE_bytecxx . . $ JE_byte# anicxx . . $ $anonymous_type_66fcae0887b82ce8_4#ani.;
88 JE_wordcxx . . $ JE_word# grcxx . . $ $anonymous_type_66fcae0887b82ce8_4#gr.[20]; /* [1..20] */
89 JE_bytecxx . . $ JE_byte# wportcxx . . $ $anonymous_type_66fcae0887b82ce8_4#wport.;
90 JE_wordcxx . . $ JE_word# wpnumcxx . . $ $anonymous_type_66fcae0887b82ce8_4#wpnum.;
91 JE_bytecxx . . $ JE_byte# ammocxx . . $ $anonymous_type_66fcae0887b82ce8_4#ammo.;
92 JE_booleancxx . . $ JE_boolean# stopcxx . . $ $anonymous_type_66fcae0887b82ce8_4#stop.;
93 JE_bytecxx . . $ JE_byte# icongrcxx . . $ $anonymous_type_66fcae0887b82ce8_4#icongr.;
94 } JE_OptionTypecxx . . $ JE_OptionType#;
95
96 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_5#
97 {
98 char namecxx . . $ $anonymous_type_66fcae0887b82ce8_5#name.[31]; /* string [30] */
99 JE_bytecxx . . $ JE_byte# tpwrcxx . . $ $anonymous_type_66fcae0887b82ce8_5#tpwr.;
100 JE_bytecxx . . $ JE_byte# mpwrcxx . . $ $anonymous_type_66fcae0887b82ce8_5#mpwr.;
101 JE_wordcxx . . $ JE_word# itemgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_5#itemgraphic.;
102 JE_wordcxx . . $ JE_word# costcxx . . $ $anonymous_type_66fcae0887b82ce8_5#cost.;
103 } JE_ShieldTypecxx . . $ JE_ShieldType#[SHIELD_NUMcxx . . $ `src/lvlmast.h:33:9`! + 1]; /* [0..shieldnum] */
104
105 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_6#
106 {
107 char namecxx . . $ $anonymous_type_66fcae0887b82ce8_6#name.[31]; /* string [30] */
108 JE_wordcxx . . $ JE_word# shipgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_6#shipgraphic.;
109 JE_wordcxx . . $ JE_word# itemgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_6#itemgraphic.;
110 JE_bytecxx . . $ JE_byte# anicxx . . $ $anonymous_type_66fcae0887b82ce8_6#ani.;
111 JE_shortintcxx . . $ JE_shortint# spdcxx . . $ $anonymous_type_66fcae0887b82ce8_6#spd.;
112 JE_bytecxx . . $ JE_byte# dmgcxx . . $ $anonymous_type_66fcae0887b82ce8_6#dmg.;
113 JE_wordcxx . . $ JE_word# costcxx . . $ $anonymous_type_66fcae0887b82ce8_6#cost.;
114 JE_bytecxx . . $ JE_byte# bigshipgraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_6#bigshipgraphic.;
115 } JE_ShipTypecxx . . $ JE_ShipType#[SHIP_NUMcxx . . $ `src/lvlmast.h:32:9`! + 1]; /* [0..shipnum] */
116
117 /* EnemyData */
118 typedef structcxx . . $ $anonymous_type_66fcae0887b82ce8_7#
119 {
120 JE_bytecxx . . $ JE_byte# anicxx . . $ $anonymous_type_66fcae0887b82ce8_7#ani.;
121 JE_bytecxx . . $ JE_byte# turcxx . . $ $anonymous_type_66fcae0887b82ce8_7#tur.[3]; /* [1..3] */
122 JE_bytecxx . . $ JE_byte# freqcxx . . $ $anonymous_type_66fcae0887b82ce8_7#freq.[3]; /* [1..3] */
123 JE_shortintcxx . . $ JE_shortint# xmovecxx . . $ $anonymous_type_66fcae0887b82ce8_7#xmove.;
124 JE_shortintcxx . . $ JE_shortint# ymovecxx . . $ $anonymous_type_66fcae0887b82ce8_7#ymove.;
125 JE_shortintcxx . . $ JE_shortint# xaccelcxx . . $ $anonymous_type_66fcae0887b82ce8_7#xaccel.;
126 JE_shortintcxx . . $ JE_shortint# yaccelcxx . . $ $anonymous_type_66fcae0887b82ce8_7#yaccel.;
127 JE_shortintcxx . . $ JE_shortint# xcaccelcxx . . $ $anonymous_type_66fcae0887b82ce8_7#xcaccel.;
128 JE_shortintcxx . . $ JE_shortint# ycaccelcxx . . $ $anonymous_type_66fcae0887b82ce8_7#ycaccel.;
129 JE_integercxx . . $ JE_integer# startxcxx . . $ $anonymous_type_66fcae0887b82ce8_7#startx.;
130 JE_integercxx . . $ JE_integer# startycxx . . $ $anonymous_type_66fcae0887b82ce8_7#starty.;
131 JE_shortintcxx . . $ JE_shortint# startxccxx . . $ $anonymous_type_66fcae0887b82ce8_7#startxc.;
132 JE_shortintcxx . . $ JE_shortint# startyccxx . . $ $anonymous_type_66fcae0887b82ce8_7#startyc.;
133 JE_bytecxx . . $ JE_byte# armorcxx . . $ $anonymous_type_66fcae0887b82ce8_7#armor.;
134 JE_bytecxx . . $ JE_byte# esizecxx . . $ $anonymous_type_66fcae0887b82ce8_7#esize.;
135 JE_wordcxx . . $ JE_word# egraphiccxx . . $ $anonymous_type_66fcae0887b82ce8_7#egraphic.[20]; /* [1..20] */
136 JE_bytecxx . . $ JE_byte# explosiontypecxx . . $ $anonymous_type_66fcae0887b82ce8_7#explosiontype.;
137 JE_bytecxx . . $ JE_byte# animatecxx . . $ $anonymous_type_66fcae0887b82ce8_7#animate.; /* 0:Not Yet 1:Always 2:When Firing Only */
138 JE_bytecxx . . $ JE_byte# shapebankcxx . . $ $anonymous_type_66fcae0887b82ce8_7#shapebank.; /* See LEVELMAK.DOC */
139 JE_shortintcxx . . $ JE_shortint# xrevcxx . . $ $anonymous_type_66fcae0887b82ce8_7#xrev., yrevcxx . . $ $anonymous_type_66fcae0887b82ce8_7#yrev.;
140 JE_wordcxx . . $ JE_word# dgrcxx . . $ $anonymous_type_66fcae0887b82ce8_7#dgr.;
141 JE_shortintcxx . . $ JE_shortint# dlevelcxx . . $ $anonymous_type_66fcae0887b82ce8_7#dlevel.;
142 JE_shortintcxx . . $ JE_shortint# danicxx . . $ $anonymous_type_66fcae0887b82ce8_7#dani.;
143 JE_bytecxx . . $ JE_byte# elaunchfreqcxx . . $ $anonymous_type_66fcae0887b82ce8_7#elaunchfreq.;
144 JE_wordcxx . . $ JE_word# elaunchtypecxx . . $ $anonymous_type_66fcae0887b82ce8_7#elaunchtype.;
145 JE_integercxx . . $ JE_integer# valuecxx . . $ $anonymous_type_66fcae0887b82ce8_7#value.;
146 JE_wordcxx . . $ JE_word# eenemydiecxx . . $ $anonymous_type_66fcae0887b82ce8_7#eenemydie.;
147 } JE_EnemyDatTypecxx . . $ JE_EnemyDatType#[ENEMY_NUMcxx . . $ `src/lvlmast.h:36:9`! + 1]; /* [0..enemynum] */
148
149 extern JE_WeaponPortTypecxx . . $ JE_WeaponPortType# weaponPortcxx . . $ weaponPort.;
150 extern JE_WeaponTypecxx . . $ JE_WeaponType# weaponscxx . . $ weapons.[WEAP_NUMcxx . . $ `src/lvlmast.h:26:9`! + 1]; /* [0..weapnum] */
151 extern JE_PowerTypecxx . . $ JE_PowerType# powerSyscxx . . $ powerSys.;
152 extern JE_ShipTypecxx . . $ JE_ShipType# shipscxx . . $ ships.;
153 extern JE_OptionTypecxx . . $ JE_OptionType# optionscxx . . $ options.[OPTION_NUMcxx . . $ `src/lvlmast.h:31:9`! + 1]; /* [0..optionnum] */
154 extern JE_ShieldTypecxx . . $ JE_ShieldType# shieldscxx . . $ shields.;
155 extern JE_SpecialTypecxx . . $ JE_SpecialType# specialcxx . . $ special.;
156 extern JE_EnemyDatTypecxx . . $ JE_EnemyDatType# enemyDatcxx . . $ enemyDat.;
157 extern JE_bytecxx . . $ JE_byte# initial_episode_numcxx . . $ initial_episode_num., episodeNumcxx . . $ episodeNum.;
158 extern JE_booleancxx . . $ JE_boolean# episodeAvailcxx . . $ episodeAvail.[EPISODE_MAXcxx . . $ `src/episodes.h:29:9`!];
159
160 extern char episode_filecxx . . $ episode_file.[13], cube_filecxx . . $ cube_file.[13];
161
162 extern JE_longintcxx . . $ JE_longint# episode1DataLoccxx . . $ episode1DataLoc.;
163 extern JE_booleancxx . . $ JE_boolean# bonusLevelcxx . . $ bonusLevel.;
164 extern JE_booleancxx . . $ JE_boolean# jumpBackToEpisode1cxx . . $ jumpBackToEpisode1.;
165
166 void JE_loadItemDatcxx . . $ JE_loadItemDat(49f6e7a06ebc5aa8).(void);
167 void JE_initEpisodecxx . . $ JE_initEpisode(ac50b47256ae7414).(JE_bytecxx . . $ JE_byte# newEpisode);
168 unsigned int JE_findNextEpisodecxx . . $ JE_findNextEpisode(db52760e79bf9054).(void);
169 void JE_scanForEpisodescxx . . $ JE_scanForEpisodes(49f6e7a06ebc5aa8).(void);
170
171 #endif /* EPISODES_H */