2 * Elite - The New Kind.
4 * Reverse engineered from the BBC disk version of Elite.
5 * Additional material by C.J.Pinder.
7 * The original Elite code is (C) I.Bell & D.Braben 1984.
8 * This version re-engineered in C by C.J.Pinder 1999-2001.
10 * email: <christian@newkind.co.uk>
24 struct galaxy_seed docked_planet
;
26 struct galaxy_seed hyperspace_planet
;
28 struct planet_data current_planet_data
;
30 int curr_galaxy_num
= 1;
33 int current_screen
= 0;
37 int anti_alias_gfx
= 0;
38 int hoopy_casinos
= 0;
43 char scanner_filename
[256];
49 int planet_render_style
= 0;
64 int condition_x
, condition_y
, condition_r
;
67 int condition
= COND_DOCKED
;
69 struct commander saved_cmdr
=
72 0, /* Mission Number */
73 0x14,0xAD, /* Ship X,Y */
74 {0x4a, 0x5a, 0x48, 0x02, 0x53, 0xb7}, /* Galaxy Seed */
75 1000, /* Credits * 10 */
79 PULSE_LASER
, /* Front Laser */
84 20, /* Cargo Capacity */
85 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, /* Current Cargo */
90 0, /* Docking Computer */
91 0, /* Galactic H'Drive */
94 3, /* No. of Missiles */
96 {0x10, 0x0F, 0x11, 0x00, 0x03, 0x1C, /* Station Stock */
97 0x0E, 0x00, 0x00, 0x0A, 0x00, 0x11,
98 0x3A, 0x07, 0x09, 0x08, 0x00},
104 struct commander cmdr
;
106 struct player_ship myship
;
109 struct ship_data
*ship_list
[NO_OF_SHIPS
+ 1] =
149 void restore_saved_commander (void)
153 docked_planet
= find_planet (cmdr
.ship_x
, cmdr
.ship_y
);
154 hyperspace_planet
= docked_planet
;
156 generate_planet_data (¤t_planet_data
, docked_planet
);
157 generate_stock_market ();
158 set_stock_quantities (cmdr
.station_stock
);