![]() |
Crossfire Server, Trunk
1.75.0
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "global.h"
#include "maze_gen.h"
#include "random_map.h"
#include "room_gen.h"
#include "rproto.h"
#include "sproto.h"
Go to the source code of this file.
Data Structures | |
struct | layout |
Macros | |
#define | LO_NEWFILE 2 |
Functions | |
int | apply_auto (object *op) |
void | apply_auto_fix (mapstruct *m) |
void | clean_tmp_files (void) |
void | dragon_ability_gain (object *ob, int x, int y) |
void | draw_ext_info (int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message) |
void | draw_ext_info_format (int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) |
void | emergency_save (int x) |
void | esrv_del_item (player *pl, object *ob) |
void | esrv_send_item (object *ob, object *obx) |
void | esrv_update_item (int flags, object *pl, object *op) |
void | esrv_update_spells (player *pl) |
void | ext_info_map (int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1) |
object * | find_skill_by_number (object *who, int skillno) |
static void | generate_map (char *OutFileName) |
int | main (int argc, char *argv[]) |
void | move_firewall (object *ob) |
static void | print_map (char **layout, int width, int height) |
Print the human-readable layout of a map. More... | |
static void | print_quickhelp (void) |
Print a message stating how to get help. More... | |
static void | print_usage (void) |
Print out usage information. More... | |
void | rod_adjust (object *rod) |
void | set_darkness_map (mapstruct *m) |
void | set_map_timeout (mapstruct *oldmap) |
static void | test_layout (int width, int height, char **(*layout_func)(int, int, int, int)) |
Test the map layout produced by the specified generator. More... | |
Variables | |
static layout | layout_list [NROFLAYOUTS] |
Command-line interface to the map generator used to test layouts.
Definition in file main.cpp.
int apply_auto | ( | object * | op | ) |
Definition at line 211 of file main.cpp.
References CLEAR_FLAG, create_treasure(), mapstruct::difficulty, living::exp, FLAG_AUTO_APPLY, FLAG_CURSED, FLAG_DAMNED, FLAG_UNPAID, generate_treasure(), GT_ENVIRONMENT, HAS_RANDOM_ITEMS, living::hp, identify(), object::map, object_free_drop_inventory(), object_insert_in_map_at(), object_remove(), QUERY_FLAG, object::randomitems, SET_FLAG, SHOP_FLOOR, object::stats, TREASURE, object::type, object::x, and object::y.
Referenced by apply_auto_fix().
void apply_auto_fix | ( | mapstruct * | m | ) |
Definition at line 258 of file main.cpp.
References apply_auto(), check_trigger(), CONTAINER, create_treasure(), FLAG_AUTO_APPLY, FOR_MAP_FINISH, FOR_MAP_PREPARE, HAS_RANDOM_ITEMS, m, MAP_HEIGHT, MAP_WIDTH, PLAYER, QUERY_FLAG, TREASURE, TRIGGER_BUTTON, and TRIGGER_PEDESTAL.
void draw_ext_info | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | message | ||
) |
void draw_ext_info_format | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | format, | ||
... | |||
) |
Definition at line 318 of file main.cpp.
References flags, logfile, and is_valid_types_gen::type.
void ext_info_map | ( | int | color, |
const mapstruct * | map, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | str1 | ||
) |
Definition at line 334 of file main.cpp.
References logfile, and is_valid_types_gen::type.
|
static |
Definition at line 33 of file main.cpp.
References generate_random_map(), init_globals(), init_gods(), init_library(), init_readable(), LO_NEWFILE, load_parameters(), save_map(), SAVE_MODE_INPLACE, RMParms::Xsize, and RMParms::Ysize.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 156 of file main.cpp.
References layout::func, generate_map(), layout_list, name, NROFLAYOUTS, print_quickhelp(), print_usage(), roguelike_layout_gen(), and test_layout().
|
static |
Print the human-readable layout of a map.
Definition at line 60 of file main.cpp.
Referenced by test_layout().
|
static |
|
static |
|
static |
|
static |
Definition at line 89 of file main.cpp.
Referenced by main().