~case/dbns

ref: 85d3c74215baa48cb2fd97d3c85ff6060e7c42b1 dbns/src/planes.h -rw-r--r-- 1.7 KiB
85d3c742Zerhyn SBC oopsie 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* Copy this into MUD.H once planes.c is in working order and ready to
   be linked.. -- Altrag */
   
typedef struct plane_data   PLANE_DATA;
typedef struct afswap_data  AFSWAP_DATA;
typedef struct snswap_data  SNSWAP_DATA;

struct weather_data
{
  int mmhg;
  int change;
  int sky;
  int sunlight;
  int temp;
};

struct plane_data
{
  PLANE_DATA         *next;
  PLANE_DATA         *prev;
  AFSWAP_DATA        *first_afswap;
  AFSWAP_DATA        *last_afswap;
  SNSWAP_DATA        *first_snswap;
  SNSWAP_DATA        *last_snswap;
  char               *name;
  int                 stronger;
  int                 weaker;
  int                 nullified;
  int                 reverse;
  int                 reflected;
  sh_int              month_ofs;
  sh_int              mintemp;
  sh_int              maxtemp;
  sh_int              climate;
  sh_int              gravity;
  TIME_INFO_DATA      time_info;
  WEATHER_DATA        weather_data;
};

#define CLIMATE_ARCTIC       0  /* VERY cold */
#define CLIMATE_SUBARCTIC    1  /* cold, some rainfall */
#define CLIMATE_COASTAL      2  /* cold, lots of rainfall */
#define CLIMATE_TROPICAL     4  /* warm, lots of rainfall */
#define CLIMATE_HUMID        3  /* warm, some rainfall */
#define CLIMATE_ARID         5  /* warm, dry */
#define CLIMATE_DESERT       6  /* VERY hot */

#define GRAVITY_NORMAL       0
#define GRAVITY_ZERO         1
#define GRAVITY_REVERSE      2

struct snswap_data
{
  SNSWAP_DATA *next;
  SNSWAP_DATA *prev;
  sh_int       old_sn;
  sh_int       new_sn;
  sh_int       swap_chance;
};

struct afswap_data
{
  AFSWAP_DATA *next;
  AFSWAP_DATA *prev;
  int          old_af;
  int          new_af;
  sh_int       swap_chance;
};