Proper Subversion configuration.
[newkind] / planet.h
1 /*
2 * Elite - The New Kind.
3 *
4 * Reverse engineered from the BBC disk version of Elite.
5 * Additional material by C.J.Pinder.
6 *
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.
9 *
10 * email: <christian@newkind.co.uk>
11 *
12 *
13 */
14
15 #ifndef PLANET_H
16 #define PLANET_H
17
18
19 struct galaxy_seed
20 {
21 unsigned char a; /* 6c */
22 unsigned char b; /* 6d */
23 unsigned char c; /* 6e */
24 unsigned char d; /* 6f */
25 unsigned char e; /* 70 */
26 unsigned char f; /* 71 */
27 };
28
29
30 struct planet_data
31 {
32 int government;
33 int economy;
34 int techlevel;
35 int population;
36 int productivity;
37 int radius;
38 };
39
40
41
42
43
44 char *describe_planet (struct galaxy_seed);
45 void capitalise_name (char *name);
46 void name_planet (char *gname, struct galaxy_seed glx);
47 struct galaxy_seed find_planet (int cx, int cy);
48 int find_planet_number (struct galaxy_seed planet);
49 void waggle_galaxy (struct galaxy_seed *glx_ptr);
50 void describe_inhabitants (char *str, struct galaxy_seed planet);
51 void generate_planet_data (struct planet_data *pl, struct galaxy_seed planet_seed);
52 void set_current_planet (struct galaxy_seed new_planet);
53
54 #endif
55