00001 // struct_constdata.h 00006 00007 #ifndef CONSTDATA_H 00008 #define CONSTDATA_H 00009 00010 //{{{ 00012 struct world_descriptor 00013 { 00017 struct filelink tileoffset; 00018 00029 struct filelink itemoffset; 00030 00037 struct filelink generate_item; 00038 00044 struct filelink generate_currency; 00045 00053 struct filelink startinginventory; 00054 00060 struct filelink spelllist; 00061 00069 struct filelink playerclasses; 00070 struct filelink stsizes; 00071 struct filelink stdata; 00072 struct filelink shopdescs; 00073 struct filelink titlescreen_light_plane; 00074 struct filelink titlescreen_dark_plane; 00075 00076 uint itementries; 00077 uint numspells; 00078 uint numplayerclasses; 00079 uint tutorialclass; 00080 uint numshuffletabs; 00081 uint shuffletabsize; 00082 uint numshoptypes; 00083 uint padding; 00084 00085 struct filelink mainmap; 00086 struct filelink tutorialmap; 00087 00088 struct filelink misc_links; 00089 }; 00090 //}}} 00091 00092 //{{{ 00093 struct tiledesc 00094 { 00095 uchar transparent; 00096 uchar drawchar; 00097 uchar passable; 00098 uchar is_connection; 00099 uchar allow_item; 00100 uchar is_wall; 00101 uchar is_door; 00102 uchar padding; 00103 #ifdef SUPPORT_COLOR 00104 struct colorinfo color; 00105 short pad2; 00106 #else 00107 long pad2; 00108 #endif 00109 struct filelink step_function; 00110 }; 00111 //}}} 00112 //{{{ 00113 struct spelldesc 00114 { 00115 struct filelink name; 00116 uint num; 00117 uint pp_cost; 00118 uint difficulty; 00119 struct filelink learn_func; 00120 struct filelink function; 00121 }; 00122 //}}} 00123 #define NUM_BASE_STATS 5 00124 #define SPELLTYPE_ARCANE 0 00125 #define SPELLTYPE_DIVINE 1 00126 #define SPELLTYPE_NECROMANCY 2 00127 //{{{ 00133 struct classdesc 00134 { 00135 struct filelink name; 00136 00137 uint base_stat[NUM_BASE_STATS]; 00138 uint max_stat[NUM_BASE_STATS]; 00139 uint free_points; 00140 00141 uint spellcasting[3]; 00142 00143 00144 uint weapon_skill_factor; 00145 00146 uint weapon_skill_start; 00147 00148 }; 00149 //}}} 00150 //{{{ 00151 struct shopdesc 00152 { 00153 struct filelink name; 00154 struct filelink shopkeeper; 00155 struct filelink generate_item; 00156 }; 00157 //}}} 00158 00159 #endif //CONSTDATA_H 00160
1.3.6