1:
2:
3: #define bool char
4:
5: #define phbool char
6:
7:
8:
9:
10:
11: struct player
12: {
13: double p_experience;
14: double p_level;
15: double p_strength;
16: double p_sword;
17: double p_might;
18: double p_energy;
19: double p_maxenergy;
20: double p_shield;
21: double p_quickness;
22: double p_quksilver;
23: double p_speed;
24: double p_magiclvl;
25: double p_mana;
26: double p_brains;
27: double p_poison;
28: double p_gold;
29: double p_gems;
30: double p_sin;
31: double p_x;
32: double p_y;
33: double p_1scratch,
34: p_2scratch;
35:
36: struct
37: {
38: short ring_type;
39: short ring_duration;
40: bool ring_inuse;
41: } p_ring;
42:
43: long p_age;
44:
45: int p_degenerated;
46:
47: short p_type;
48: short p_specialtype;
49: short p_lives;
50: short p_crowns;
51: short p_charms;
52: short p_amulets;
53: short p_holywater;
54: short p_lastused;
55: short p_status;
56: short p_tampered;
57: short p_istat;
58:
59: bool p_palantir;
60: bool p_blessing;
61: bool p_virgin;
62: bool p_blindness;
63:
64: char p_name[SZ_NAME];
65: char p_password[SZ_PASSWORD];
66: char p_login[SZ_LOGIN];
67: };
68:
69: struct monster
70: {
71: double m_strength;
72: double m_brains;
73: double m_speed;
74: double m_energy;
75: double m_experience;
76: double m_flock;
77:
78: double m_o_strength;
79: double m_o_speed;
80: double m_maxspeed;
81: double m_o_energy;
82: double m_melee;
83: double m_skirmish;
84:
85: int m_treasuretype;
86: int m_type;
87:
88: char m_name[26];
89: };
90:
91: struct energyvoid
92: {
93: double ev_x;
94: double ev_y;
95: bool ev_active;
96: };
97:
98: struct scoreboard
99: {
100: double sb_level;
101: char sb_type[4];
102: char sb_name[SZ_NAME];
103: char sb_login[SZ_LOGIN];
104: };
105:
106: struct charstats
107: {
108: double c_maxbrains;
109: double c_maxmana;
110: double c_weakness;
111: double c_goldtote;
112: int c_ringduration;
113: struct
114: {
115: double base;
116: double interval;
117: double increase;
118: } c_quickness,
119: c_strength,
120: c_mana,
121: c_energy,
122: c_brains,
123: c_magiclvl;
124: };
125:
126: struct menuitem
127: {
128: const char *item;
129: double cost;
130: };