Crossfire Server, Trunk
|
#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) |
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.cpp.
int apply_auto | ( | object * | op | ) |
Definition at line 211 of file main.cpp.
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 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, 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 365 of file main.cpp.
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 308 of file main.cpp.
References flags, logfile, diamondslots::message, altar_valkyrie::pl, 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 318 of file main.cpp.
References flags, logfile, altar_valkyrie::pl, is_valid_types_gen::type, and nlohmann::detail::void().
void emergency_save | ( | int | x | ) |
Definition at line 347 of file main.cpp.
References nlohmann::detail::void(), and diamondslots::x.
Definition at line 381 of file main.cpp.
References guildjoin::ob, altar_valkyrie::pl, and nlohmann::detail::void().
Definition at line 354 of file main.cpp.
References guildjoin::ob, and nlohmann::detail::void().
Definition at line 359 of file main.cpp.
References flags, give::op, altar_valkyrie::pl, and nlohmann::detail::void().
void esrv_update_spells | ( | player * | pl | ) |
Definition at line 386 of file main.cpp.
References altar_valkyrie::pl, and nlohmann::detail::void().
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 smoking_pipe::color, logfile, disinfect::map, is_valid_types_gen::type, and nlohmann::detail::void().
Definition at line 375 of file main.cpp.
References nlohmann::detail::void(), and autojail::who.
|
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(), 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 343 of file main.cpp.
References guildjoin::ob, and nlohmann::detail::void().
|
static |
Print the human-readable layout of a map.
Definition at line 60 of file main.cpp.
Referenced by test_layout().
|
static |
|
static |
void rod_adjust | ( | object * | rod | ) |
Definition at line 390 of file main.cpp.
References nlohmann::detail::void().
void set_darkness_map | ( | mapstruct * | m | ) |
Definition at line 371 of file main.cpp.
References m, and nlohmann::detail::void().
void set_map_timeout | ( | mapstruct * | oldmap | ) |
Definition at line 304 of file main.cpp.
References nlohmann::detail::void().
|
static |
Test the map layout produced by the specified generator.
Definition at line 113 of file main.cpp.
References print_map(), and SRANDOM.
Referenced by main().
|
static |
Definition at line 89 of file main.cpp.
Referenced by main().