Definition in file globals.h.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | IPOINT_2D |
struct | IPOINT_3D |
struct | UPOINT_2D |
struct | UPOINT_3D |
struct | USPOINT_2D |
struct | IRECT_2D |
struct | SCRIPT_OPTIONS |
struct | MAPDRAW_OPTIONS |
struct | VERIFY_OPTIONS |
struct | LEVOPTIONS |
Defines | |
#define | DLLIMPORT __declspec (dllimport) |
#define | SEPARATOR "\\" |
#define | false 0 |
#define | true 1 |
#define | max(a, b) ((a)>(b)?(a):(b)) |
#define | min(a, b) ((a)<(b)?(a):(b)) |
#define | DISKPATH_SIZE 256 |
#define | LINEMSG_SIZE 160 |
#define | READ_BUFSIZE 256 |
#define | PROGRAM_NAME "ADiKtEd" |
#define | VERIF_ERROR 0 |
#define | VERIF_OK 1 |
#define | VERIF_WARN 2 |
#define | ERR_NONE 0 |
#define | ERR_BASE_RNC -90 |
#define | THING_CATEGR_COUNT 0x16 |
Typedefs | |
typedef short(* | is_thing_subtype )(const unsigned char *thing) |
typedef short(* | is_item_subtype )(const unsigned char stype_idx) |
typedef int(* | thing_subtype_arrayindex )(const unsigned char stype_idx) |
typedef unsigned char(* | thing_subtype_switch )(const unsigned char stype_idx) |
typedef unsigned char(* | thing_subtype_arrayitem )(const int arr_itm) |
#define DISKPATH_SIZE 256 |
Definition at line 73 of file globals.h.
Referenced by format_data_fname(), format_lvl_fname(), format_lvl_savfname(), level_init(), load_dk1_map(), load_dke_map(), load_map_preview(), save_dk1_map(), and save_dke_map().
#define ERR_NONE 0 |
Definition at line 85 of file globals.h.
Referenced by alloc_cubedata(), alloc_datfile_data(), alloc_jtytabfile_data(), change_draw_data_texture(), create_images_dattab_enc(), create_images_dattab_idx(), create_images_jtytab_enc(), create_images_jtytab_idx(), draw_map_on_buffer(), draw_map_on_buffer_fast(), draw_rect_mul_on_buffer(), draw_rect_sum_on_buffer(), draw_text_on_buffer(), draw_texture_on_buffer_avg2(), draw_texture_on_buffer_avg2_fast(), draw_texture_on_buffer_avg2_fast_unsafe(), draw_texture_on_buffer_avg4(), draw_texture_on_buffer_avg4_unsafe(), draw_texture_on_buffer_noavg(), draw_texture_on_buffer_noavg_unsafe(), draw_texture_on_buffer_noscale(), draw_things_on_buffer(), free_cubedata(), free_datfile_data(), free_dattab_encimages(), free_draw_data(), free_jtytabfile_data(), free_tabfile_data(), generate_map_bitmap(), generate_map_bitmap_mapfname(), get_draw_subtile_rect(), get_draw_tile_rect(), get_full_draw_dimensions(), get_full_draw_dimensions_opt(), get_object_with_circle_at(), get_subtile_from_draw_coords(), get_subtile_from_draw_coords_adv(), get_subtile_from_draw_coords_adv_fast(), get_subtile_from_draw_coords_ip(), get_thing_with_circle_at(), get_top_texture_pos(), level_clear_options(), level_free_graffiti(), level_set_mapdraw_options(), level_set_options(), load_apt(), load_clm(), load_cubedata(), load_dat(), load_dk1_map(), load_dke_map(), load_draw_data(), load_flg(), load_inf(), load_lgt(), load_lif(), load_map_preview(), load_mapfile(), load_mapfile_msg(), load_own(), load_palette(), load_slb(), load_text_file(), load_texture(), load_textureanim(), load_tng(), load_txt(), load_vsn(), load_wib(), load_wlb(), place_sprite_cntr_on_buf_rgb(), read_datfile_data(), read_jtytabfile_data(), read_tabfile_data(), save_dk1_map(), save_dke_map(), save_mapfile(), save_nfo_file(), script_load_and_execute(), set_draw_data_rect(), set_graffiti_orientation(), switch_cubedata_entries(), switch_encimage_entries(), switch_jtytabfile_entries(), texture_index_to_texture_pos(), update_dat_last_column(), user_load_map(), write_apt(), write_clm(), write_cubedata(), write_dat(), write_datfile_data(), write_dattab_images_enc(), write_encimages_dattab(), write_encimages_jtytab(), write_flg(), write_inf(), write_jtytab_images_enc(), write_jtytabfile_data(), write_lgt(), write_own(), write_slb(), write_tabfile_data(), write_text_file(), write_tng(), write_vsn(), write_wib(), and write_wlb().
#define LINEMSG_SIZE 160 |
Definition at line 74 of file globals.h.
Referenced by add_custom_clms_to_script(), add_graffiti_to_script(), add_stats_to_script(), dkscript_verify(), get_thing_subtype_fullname(), level_verify(), level_verify_struct(), load_mapfile_msg(), message_error(), message_info(), message_info_force(), script_load_and_execute(), script_load_and_execute_file(), write_lif(), and write_nfo().
#define max | ( | a, | |||
b | ) | ((a)>(b)?(a):(b)) |
Definition at line 65 of file globals.h.
Referenced by add_stats_to_script(), create_actnpt_number_used_arr(), create_herogate_number_used_arr(), get_nearest_object_idx(), get_nearest_thing_idx(), and recompute_script_levels().
#define min | ( | a, | |||
b | ) | ((a)<(b)?(a):(b)) |
Definition at line 68 of file globals.h.
Referenced by draw_pixel_mul_offs(), draw_rect_sum_on_buffer(), get_objcircle_ranged_radius(), get_objcircle_std_radius(), and level_verify_logic().
#define PROGRAM_NAME "ADiKtEd" |
Definition at line 77 of file globals.h.
Referenced by add_stats_to_script(), dkscript_verify(), execute_script_line(), and set_msglog_fname().
#define READ_BUFSIZE 256 |
#define SEPARATOR "\\" |
Definition at line 55 of file globals.h.
Referenced by format_data_fname(), format_map_fname(), and prepare_short_fname().
#define THING_CATEGR_COUNT 0x16 |
Definition at line 170 of file globals.h.
Referenced by level_clear_stats(), and update_thing_stats().
#define VERIF_ERROR 0 |
Definition at line 80 of file globals.h.
Referenced by dat_verify(), level_verify(), level_verify_struct(), and user_save_map().
#define VERIF_OK 1 |
Definition at line 81 of file globals.h.
Referenced by actnpts_verify(), clm_verify_entry(), columns_verify(), creature_verify(), dat_verify(), dkscript_verify(), door_verify(), effectgen_verify(), item_verify(), level_verify(), level_verify_logic(), level_verify_struct(), script_cmd_verify_avail(), script_cmd_verify_commnt(), script_cmd_verify_condit(), script_cmd_verify_crtradj(), script_cmd_verify_custobj(), script_cmd_verify_obsol(), script_cmd_verify_party(), script_cmd_verify_setup(), script_cmd_verify_triger(), slab_verify_entry(), slabs_verify(), things_verify(), trap_verify(), and txt_verify().
#define VERIF_WARN 2 |
Definition at line 82 of file globals.h.
Referenced by actnpts_verify(), clm_verify_entry(), creature_verify(), dkscript_verify(), door_verify(), effectgen_verify(), item_verify(), level_verify(), level_verify_logic(), level_verify_struct(), script_cmd_verify_avail(), script_cmd_verify_commnt(), script_cmd_verify_condit(), script_cmd_verify_crtradj(), script_cmd_verify_custobj(), script_cmd_verify_obsol(), script_cmd_verify_party(), script_cmd_verify_setup(), script_cmd_verify_triger(), slab_verify_entry(), thing_verify(), things_verify(), and trap_verify().
typedef short(* is_item_subtype)(const unsigned char stype_idx) |
typedef short(* is_thing_subtype)(const unsigned char *thing) |
typedef int(* thing_subtype_arrayindex)(const unsigned char stype_idx) |
typedef unsigned char(* thing_subtype_arrayitem)(const int arr_itm) |
typedef unsigned char(* thing_subtype_switch)(const unsigned char stype_idx) |