41 int main(
int argc,
char *argv[]) {
42 char InFileName[1024], OutFileName[1024];
48 printf(
"\nUsage: %s inputfile outputfile\n", argv[0]);
52 strcpy(InFileName, argv[1]);
53 strcpy(OutFileName, argv[2]);
63 memset(&rp, 0,
sizeof(
RMParms));
66 if ((fp = fopen(InFileName,
"r")) == NULL) {
67 fprintf(stderr,
"\nError: can not open %s\n", InFileName);
131 object *tmp, *above = NULL;
136 for (tmp =
GET_MAP_OB(m, x, y); tmp != NULL; tmp = above) {
178 va_start(ap, old_format);
179 vfprintf(
logfile, old_format, ap);
185 fprintf(
logfile,
"ext_info_map: %s\n", str2);
225 int execute_event(
object *op,
int eventcode,
object *activator,
object *third,
const char *message,
int fix) {
int execute_global_event(int eventcode,...)
void set_map_timeout(mapstruct *oldmap)
int main(int argc, char *argv[])
void esrv_del_item(player *pl, int tag)
mapstruct * generate_random_map(const char *OutFileName, RMParms *RP, char **use_layout)
void esrv_update_spells(player *pl)
struct treasureliststruct * randomitems
void init_archetypes(void)
void dragon_ability_gain(object *ob, int x, int y)
void fix_auto_apply(mapstruct *m)
int auto_apply(object *op)
void ext_info_map(int color, const mapstruct *map, uint8 type, uint8 subtype, const char *str1, const char *str2)
void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries)
int execute_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix)
void remove_ob(object *op)
void esrv_send_item(object *ob, object *obx)
void monster_check_apply(object *ob, object *obt)
void identify(object *op)
void esrv_update_item(int flags, object *pl, object *op)
void set_darkness_map(mapstruct *m)
void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *txt, const char *txt2)
#define QUERY_FLAG(xyz, p)
#define CLEAR_FLAG(xyz, p)
#define SAVE_MODE_INPLACE
void move_firewall(object *ob)
object * insert_ob_in_map(object *op, mapstruct *m, object *originator, int flag)
object * find_skill_by_number(object *who, int skillno)
static const flag_definition flags[]
int save_map(mapstruct *m, int flag)
void emergency_save(int x)
int load_parameters(FILE *fp, int bufstate, RMParms *RP)
#define GET_MAP_OB(M, X, Y)
object * generate_treasure(treasurelist *t, int difficulty)
void free_object(object *ob)
void trap_adjust(object *ob, int x)
void clean_tmp_files(void)
#define HAS_RANDOM_ITEMS(op)
void init_artifacts(void)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format,...)