Crossfire Server, Trunk
|
#include "global.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.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) |
static void | print_quickhelp (void) |
static void | print_usage (void) |
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)) |
Variables | |
static layout | layout_list [NROFLAYOUTS] |
Command-line interface to the map generator used to test layouts.
Definition in file main.c.
int apply_auto | ( | object * | op | ) |
Definition at line 212 of file main.c.
References CLEAR_FLAG, create_treasure(), FLAG_AUTO_APPLY, FLAG_CURSED, FLAG_DAMNED, FLAG_UNPAID, generate_treasure(), GT_ENVIRONMENT, HAS_RANDOM_ITEMS, identify(), object_free_drop_inventory(), object_insert_in_map_at(), object_remove(), give::op, QUERY_FLAG, SET_FLAG, SHOP_FLOOR, Ice::tmp, and TREASURE.
Referenced by apply_auto_fix().
void apply_auto_fix | ( | mapstruct * | m | ) |
Definition at line 259 of file main.c.
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, Ice::tmp, TREASURE, TRIGGER_BUTTON, TRIGGER_PEDESTAL, diamondslots::x, and diamondslots::y.
void dragon_ability_gain | ( | object * | ob, |
int | x, | ||
int | y | ||
) |
Definition at line 366 of file main.c.
References guildjoin::ob, nlohmann::detail::void(), diamondslots::x, and diamondslots::y.
void draw_ext_info | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | message | ||
) |
Definition at line 309 of file main.c.
References flags, logfile, diamondslots::message, is_valid_types_gen::type, and nlohmann::detail::void().
void draw_ext_info_format | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | format, | ||
... | |||
) |
Definition at line 319 of file main.c.
References flags, logfile, is_valid_types_gen::type, and nlohmann::detail::void().
void emergency_save | ( | int | x | ) |
Definition at line 348 of file main.c.
References nlohmann::detail::void(), and diamondslots::x.
Definition at line 382 of file main.c.
References guildjoin::ob, and nlohmann::detail::void().
Definition at line 355 of file main.c.
References guildjoin::ob, and nlohmann::detail::void().
Definition at line 360 of file main.c.
References flags, give::op, and nlohmann::detail::void().
void esrv_update_spells | ( | player * | pl | ) |
Definition at line 387 of file main.c.
References nlohmann::detail::void().
void ext_info_map | ( | int | color, |
const mapstruct * | map, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | str1 | ||
) |
Definition at line 335 of file main.c.
References smoking_pipe::color, logfile, disinfect::map, is_valid_types_gen::type, and nlohmann::detail::void().
Definition at line 376 of file main.c.
References nlohmann::detail::void(), and autojail::who.
|
static |
Definition at line 34 of file main.c.
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 157 of file main.c.
References layout::func, generate_map(), make_face_from_files::int, layout_list, give::name, NROFLAYOUTS, print_quickhelp(), print_usage(), roguelike_layout_gen(), and test_layout().
void move_firewall | ( | object * | ob | ) |
Definition at line 344 of file main.c.
References guildjoin::ob, and nlohmann::detail::void().
|
static |
Print the human-readable layout of a map.
Definition at line 61 of file main.c.
Referenced by test_layout().
|
static |
|
static |
void rod_adjust | ( | object * | rod | ) |
Definition at line 391 of file main.c.
References nlohmann::detail::void().
void set_darkness_map | ( | mapstruct * | m | ) |
Definition at line 372 of file main.c.
References m, and nlohmann::detail::void().
void set_map_timeout | ( | mapstruct * | oldmap | ) |
Definition at line 305 of file main.c.
References nlohmann::detail::void().
|
static |
Test the map layout produced by the specified generator.
Definition at line 114 of file main.c.
References print_map(), and SRANDOM.
Referenced by main().
|
static |
Definition at line 90 of file main.c.
Referenced by main().