#include "globals.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | cr_tng_func )(struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
Functions | |
DLLIMPORT short | things_verify (struct LEVEL *lvl, char *err_msg, struct IPOINT_2D *errpt) |
DLLIMPORT char * | get_search_tngtype_name (unsigned short idx) |
DLLIMPORT is_thing_subtype | get_search_tngtype_func (unsigned short idx) |
DLLIMPORT char * | get_search_objtype_name (unsigned short idx) |
DLLIMPORT unsigned short | get_search_objtype_count (void) |
DLLIMPORT unsigned char * | find_next_object_on_map (struct LEVEL *lvl, int *tx, int *ty, unsigned short srch_idx) |
DLLIMPORT short | subtl_in_effectgen_range (struct LEVEL *lvl, unsigned int sx, unsigned int sy) |
DLLIMPORT long | get_nearest_thing_idx (struct LEVEL *lvl, const unsigned int ssx, const unsigned int ssy, unsigned int *sx, unsigned int *sy, unsigned int *num) |
DLLIMPORT long | get_nearest_object_idx (struct LEVEL *lvl, const unsigned int ssx, const unsigned int ssy, unsigned int *sx, unsigned int *sy, unsigned int *z) |
DLLIMPORT unsigned char * | create_door (struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT unsigned char * | create_effectgen (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT unsigned char * | create_creature (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT unsigned char * | create_trap (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT unsigned char * | create_item_adv (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT unsigned char * | create_torch (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT unsigned char * | create_doorkey (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
DLLIMPORT short | set_door_lock (struct LEVEL *lvl, unsigned char *thing, unsigned char nlock) |
DLLIMPORT unsigned char | get_door_lock (const unsigned char *thing) |
DLLIMPORT unsigned char | compute_door_orientation (const struct LEVEL *lvl, unsigned char *thing) |
DLLIMPORT unsigned short | compute_torch_sensitile (const struct LEVEL *lvl, unsigned char *thing) |
DLLIMPORT unsigned short | compute_effectgen_sensitile (const struct LEVEL *lvl, unsigned char *thing) |
DLLIMPORT unsigned short | compute_item_sensitile (const struct LEVEL *lvl, unsigned char *thing) |
DLLIMPORT unsigned short | get_free_indexedthing_number (const struct LEVEL *lvl) |
DLLIMPORT short | owned_things_count (int *count, struct LEVEL *lvl, unsigned char type_idx, unsigned char stype_idx) |
DLLIMPORT unsigned char * | find_lit_thing_on_square_radius1 (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT unsigned char * | find_thing_on_tile (struct LEVEL *lvl, int tx, int ty, is_thing_subtype check_func) |
DLLIMPORT unsigned char * | find_next_thing_on_map (struct LEVEL *lvl, int *tx, int *ty, is_thing_subtype check_func) |
DLLIMPORT unsigned char * | find_next_actnpt_on_map (struct LEVEL *lvl, int *tx, int *ty) |
DLLIMPORT unsigned char * | find_next_stlight_on_map (struct LEVEL *lvl, int *tx, int *ty) |
DLLIMPORT unsigned short | get_free_herogate_number (const struct LEVEL *lvl) |
DLLIMPORT unsigned short | get_free_herogate_number_next (const struct LEVEL *lvl, const unsigned short start) |
DLLIMPORT unsigned short | get_free_herogate_number_prev (const struct LEVEL *lvl, const unsigned short start) |
DLLIMPORT short | create_herogate_number_used_arr (const struct LEVEL *lvl, unsigned char **used, unsigned int *used_size) |
DLLIMPORT void | update_obj_for_square (struct LEVEL *lvl, int tx_first, int tx_last, int ty_first, int ty_last) |
DLLIMPORT void | update_obj_for_square_radius1 (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | update_obj_for_whole_map (struct LEVEL *lvl) |
DLLIMPORT void | update_clmaffective_obj_for_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | remove_misplaced_objs_on_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | update_room_things_on_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | update_door_things_on_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | update_torch_things_near_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | update_obj_subpos_and_height_for_whole_map (struct LEVEL *lvl) |
DLLIMPORT void | update_obj_subpos_and_height_for_square_radius1 (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | update_obj_subpos_and_height_for_square (struct LEVEL *lvl, int tx_first, int tx_last, int ty_first, int ty_last) |
DLLIMPORT short | update_things_subpos_and_height_for_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT short | update_thing_subpos_and_height (unsigned short *clm_height, unsigned char *thing) |
DLLIMPORT void | remove_automade_obj_for_whole_map (struct LEVEL *lvl) |
DLLIMPORT void | remove_automade_obj_for_slab (struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | create_things_slb_room (cr_tng_func cr_floor, cr_tng_func cr_edge, cr_tng_func cr_corner, cr_tng_func cr_inside, cr_tng_func cr_nearinsd, struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | create_things_slb_room_simple (cr_tng_func cr_any, struct LEVEL *lvl, int tx, int ty) |
DLLIMPORT void | delete_room_things (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
DLLIMPORT void | delete_room_things_subtl (struct LEVEL *lvl, int sx, int sy) |
unsigned char * | update_thing_slb_room_one_central_item (struct LEVEL *lvl, int tx, int ty, unsigned char itm_stype_idx, short allow_create) |
unsigned char * | update_thing_slb_room_one_item_subtl (struct LEVEL *lvl, int sx, int sy, unsigned char itm_stype_idx, short torch_mode) |
void | update_things_slb_portal_inside (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_treasure_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_training_inside (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_scavenger_inside (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_graveyard_floor (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_graveyard_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_workshop_inside (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_torture_inside (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_torture_edge (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_training_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_scavenger_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_hatchery_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_barracks_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_temple_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_workshop_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_dungheart_corner (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_dungheart_inside (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_guardpost_floor (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
void | update_things_slb_prison (struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
DLLIMPORT void | remove_noncrucial_room_things (struct LEVEL *lvl, int tx, int ty) |
typedef void(* cr_tng_func)(struct LEVEL *lvl, const int tx, const int ty, const unsigned char *surr_slb, const unsigned char *surr_own, const struct UPOINT_2D corner_pos) |
Definition at line 29 of file lev_things.h.
DLLIMPORT unsigned char compute_door_orientation | ( | const struct LEVEL * | lvl, | |
unsigned char * | thing | |||
) |
Definition at line 304 of file lev_things.c.
Referenced by create_door(), and update_door_things_on_slab().
DLLIMPORT unsigned short compute_effectgen_sensitile | ( | const struct LEVEL * | lvl, | |
unsigned char * | thing | |||
) |
Definition at line 623 of file lev_things.c.
Referenced by compute_item_sensitile(), create_effectgen(), and create_thing_copy().
DLLIMPORT unsigned short compute_item_sensitile | ( | const struct LEVEL * | lvl, | |
unsigned char * | thing | |||
) |
Definition at line 635 of file lev_things.c.
Referenced by create_doorkey(), create_item_adv(), create_thing_copy(), and things_verify().
DLLIMPORT unsigned short compute_torch_sensitile | ( | const struct LEVEL * | lvl, | |
unsigned char * | thing | |||
) |
Definition at line 576 of file lev_things.c.
Referenced by compute_item_sensitile(), create_torch(), update_things_slb_barracks_corner(), and update_things_slb_graveyard_corner().
DLLIMPORT unsigned char* create_creature | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
Definition at line 797 of file lev_things.c.
DLLIMPORT unsigned char* create_door | ( | struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
DLLIMPORT unsigned char* create_doorkey | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
DLLIMPORT unsigned char* create_effectgen | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
Definition at line 781 of file lev_things.c.
Referenced by update_things_slb_graveyard_corner(), and update_things_slb_portal_inside().
DLLIMPORT short create_herogate_number_used_arr | ( | const struct LEVEL * | lvl, | |
unsigned char ** | used, | |||
unsigned int * | used_size | |||
) |
Definition at line 382 of file lev_things.c.
Referenced by dkscript_verify(), get_free_herogate_number_next(), and get_free_herogate_number_prev().
DLLIMPORT unsigned char* create_item_adv | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
Definition at line 864 of file lev_things.c.
Referenced by update_thing_slb_room_one_central_item(), update_thing_slb_room_one_item_subtl(), update_things_slb_barracks_corner(), and update_things_slb_graveyard_corner().
DLLIMPORT void create_things_slb_room | ( | cr_tng_func | cr_floor, | |
cr_tng_func | cr_edge, | |||
cr_tng_func | cr_corner, | |||
cr_tng_func | cr_inside, | |||
cr_tng_func | cr_nearinsd, | |||
struct LEVEL * | lvl, | |||
int | tx, | |||
int | ty | |||
) |
DLLIMPORT void create_things_slb_room_simple | ( | cr_tng_func | cr_any, | |
struct LEVEL * | lvl, | |||
int | tx, | |||
int | ty | |||
) |
DLLIMPORT unsigned char* create_torch | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
DLLIMPORT unsigned char* create_trap | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
Definition at line 812 of file lev_things.c.
DLLIMPORT void delete_room_things | ( | struct LEVEL * | lvl, | |
const int | tx, | |||
const int | ty, | |||
const unsigned char * | surr_slb, | |||
const unsigned char * | surr_own, | |||
const struct UPOINT_2D | corner_pos | |||
) |
Definition at line 1425 of file lev_things.c.
Referenced by update_room_things_on_slab(), update_things_slb_dungheart_corner(), and update_things_slb_dungheart_inside().
DLLIMPORT void delete_room_things_subtl | ( | struct LEVEL * | lvl, | |
int | sx, | |||
int | sy | |||
) |
Definition at line 1437 of file lev_things.c.
Referenced by delete_room_things(), and update_things_slb_prison().
DLLIMPORT unsigned char* find_lit_thing_on_square_radius1 | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
DLLIMPORT unsigned char* find_next_actnpt_on_map | ( | struct LEVEL * | lvl, | |
int * | tx, | |||
int * | ty | |||
) |
DLLIMPORT unsigned char* find_next_object_on_map | ( | struct LEVEL * | lvl, | |
int * | tx, | |||
int * | ty, | |||
unsigned short | srch_idx | |||
) |
Definition at line 232 of file lev_things.c.
DLLIMPORT unsigned char* find_next_stlight_on_map | ( | struct LEVEL * | lvl, | |
int * | tx, | |||
int * | ty | |||
) |
DLLIMPORT unsigned char* find_next_thing_on_map | ( | struct LEVEL * | lvl, | |
int * | tx, | |||
int * | ty, | |||
is_thing_subtype | check_func | |||
) |
DLLIMPORT unsigned char* find_thing_on_tile | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty, | |||
is_thing_subtype | check_func | |||
) |
Definition at line 475 of file lev_things.c.
Referenced by find_lit_thing_on_square_radius1(), and find_next_thing_on_map().
DLLIMPORT unsigned char get_door_lock | ( | const unsigned char * | thing | ) |
DLLIMPORT unsigned short get_free_herogate_number | ( | const struct LEVEL * | lvl | ) |
DLLIMPORT unsigned short get_free_herogate_number_next | ( | const struct LEVEL * | lvl, | |
const unsigned short | start | |||
) |
DLLIMPORT unsigned short get_free_herogate_number_prev | ( | const struct LEVEL * | lvl, | |
const unsigned short | start | |||
) |
Definition at line 360 of file lev_things.c.
DLLIMPORT unsigned short get_free_indexedthing_number | ( | const struct LEVEL * | lvl | ) |
Definition at line 826 of file lev_things.c.
Referenced by create_creature(), create_door(), and create_trap().
DLLIMPORT long get_nearest_object_idx | ( | struct LEVEL * | lvl, | |
const unsigned int | ssx, | |||
const unsigned int | ssy, | |||
unsigned int * | sx, | |||
unsigned int * | sy, | |||
unsigned int * | z | |||
) |
DLLIMPORT long get_nearest_thing_idx | ( | struct LEVEL * | lvl, | |
const unsigned int | ssx, | |||
const unsigned int | ssy, | |||
unsigned int * | sx, | |||
unsigned int * | sy, | |||
unsigned int * | num | |||
) |
DLLIMPORT unsigned short get_search_objtype_count | ( | void | ) |
Definition at line 251 of file lev_things.c.
DLLIMPORT char* get_search_objtype_name | ( | unsigned short | idx | ) |
Definition at line 215 of file lev_things.c.
DLLIMPORT is_thing_subtype get_search_tngtype_func | ( | unsigned short | idx | ) |
DLLIMPORT char* get_search_tngtype_name | ( | unsigned short | idx | ) |
DLLIMPORT short owned_things_count | ( | int * | count, | |
struct LEVEL * | lvl, | |||
unsigned char | type_idx, | |||
unsigned char | stype_idx | |||
) |
Definition at line 421 of file lev_things.c.
Referenced by level_verify_logic(), update_things_slb_dungheart_inside(), and write_nfo().
DLLIMPORT void remove_automade_obj_for_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
DLLIMPORT void remove_automade_obj_for_whole_map | ( | struct LEVEL * | lvl | ) |
Definition at line 919 of file lev_things.c.
DLLIMPORT void remove_misplaced_objs_on_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
DLLIMPORT void remove_noncrucial_room_things | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
Definition at line 2138 of file lev_things.c.
DLLIMPORT short set_door_lock | ( | struct LEVEL * | lvl, | |
unsigned char * | thing, | |||
unsigned char | nlock | |||
) |
DLLIMPORT short subtl_in_effectgen_range | ( | struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy | |||
) |
Definition at line 2158 of file lev_things.c.
DLLIMPORT void update_clmaffective_obj_for_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
Definition at line 1039 of file lev_things.c.
Referenced by update_obj_for_square(), update_obj_for_square_radius1(), and update_obj_for_whole_map().
DLLIMPORT void update_door_things_on_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
DLLIMPORT void update_obj_for_square | ( | struct LEVEL * | lvl, | |
int | tx_first, | |||
int | tx_last, | |||
int | ty_first, | |||
int | ty_last | |||
) |
Definition at line 958 of file lev_things.c.
Referenced by user_set_owner_rect(), user_set_slab_rect(), and user_set_slabown_rect().
DLLIMPORT void update_obj_for_square_radius1 | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
Definition at line 944 of file lev_things.c.
Referenced by user_set_slab(), and user_set_tile_owner().
DLLIMPORT void update_obj_for_whole_map | ( | struct LEVEL * | lvl | ) |
Definition at line 932 of file lev_things.c.
DLLIMPORT void update_obj_subpos_and_height_for_square | ( | struct LEVEL * | lvl, | |
int | tx_first, | |||
int | tx_last, | |||
int | ty_first, | |||
int | ty_last | |||
) |
Definition at line 2006 of file lev_things.c.
Referenced by user_set_owner_rect(), user_set_slab_rect(), and user_set_slabown_rect().
DLLIMPORT void update_obj_subpos_and_height_for_square_radius1 | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
Definition at line 1991 of file lev_things.c.
Referenced by user_set_slab(), and user_set_tile_owner().
DLLIMPORT void update_obj_subpos_and_height_for_whole_map | ( | struct LEVEL * | lvl | ) |
Definition at line 1979 of file lev_things.c.
DLLIMPORT void update_room_things_on_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
unsigned char* update_thing_slb_room_one_central_item | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty, | |||
unsigned char | itm_stype_idx, | |||
short | allow_create | |||
) |
Definition at line 1504 of file lev_things.c.
Referenced by update_things_slb_dungheart_corner(), update_things_slb_dungheart_inside(), update_things_slb_graveyard_floor(), update_things_slb_guardpost_floor(), update_things_slb_hatchery_corner(), update_things_slb_scavenger_corner(), update_things_slb_scavenger_inside(), update_things_slb_temple_corner(), update_things_slb_torture_edge(), update_things_slb_torture_inside(), update_things_slb_training_corner(), update_things_slb_training_inside(), update_things_slb_treasure_corner(), update_things_slb_workshop_corner(), and update_things_slb_workshop_inside().
unsigned char* update_thing_slb_room_one_item_subtl | ( | struct LEVEL * | lvl, | |
int | sx, | |||
int | sy, | |||
unsigned char | itm_stype_idx, | |||
short | torch_mode | |||
) |
Definition at line 1558 of file lev_things.c.
Referenced by update_things_slb_prison(), and update_torch_things_near_slab().
DLLIMPORT short update_thing_subpos_and_height | ( | unsigned short * | clm_height, | |
unsigned char * | thing | |||
) |
Definition at line 2054 of file lev_things.c.
Referenced by update_things_subpos_and_height_for_slab().
DLLIMPORT short update_things_subpos_and_height_for_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |
Definition at line 2022 of file lev_things.c.
Referenced by update_obj_subpos_and_height_for_square(), update_obj_subpos_and_height_for_square_radius1(), and update_obj_subpos_and_height_for_whole_map().
DLLIMPORT void update_torch_things_near_slab | ( | struct LEVEL * | lvl, | |
int | tx, | |||
int | ty | |||
) |