#include "obj_things.h"
#include <math.h>
#include "globals.h"
#include "lev_data.h"
#include "obj_slabs.h"
#include "lev_things.h"
Go to the source code of this file.
Typedefs | |
typedef unsigned int(* | thing_subtype_counter )(void) |
Functions | |
unsigned char | get_thing_type (const unsigned char *thing) |
short | set_thing_type (unsigned char *thing, unsigned char type_idx) |
unsigned char | get_thing_subtype (const unsigned char *thing) |
short | set_thing_subtype (unsigned char *thing, const unsigned char stype_idx) |
unsigned char | get_thing_owner (const unsigned char *thing) |
short | set_thing_owner (unsigned char *thing, unsigned char ownr_idx) |
unsigned char | get_thing_subtile_x (const unsigned char *thing) |
short | set_thing_subtile_x (unsigned char *thing, unsigned char pos_x) |
unsigned char | get_thing_subtile_y (const unsigned char *thing) |
short | set_thing_subtile_y (unsigned char *thing, unsigned char pos_y) |
short | set_thing_subtile (unsigned char *thing, unsigned char pos_x, unsigned char pos_y) |
unsigned char | get_thing_subtile_h (const unsigned char *thing) |
short | set_thing_subtile_h (unsigned char *thing, unsigned char pos_h) |
unsigned char | get_thing_subtpos_x (const unsigned char *thing) |
unsigned short | get_thing_pos_x_adv (const unsigned char *thing) |
short | set_thing_subtpos_x (unsigned char *thing, unsigned char pos_x) |
unsigned char | get_thing_subtpos_y (const unsigned char *thing) |
unsigned short | get_thing_pos_y_adv (const unsigned char *thing) |
short | set_thing_subtpos_y (unsigned char *thing, unsigned char pos_y) |
short | set_thing_subtpos (unsigned char *thing, unsigned char pos_x, unsigned char pos_y) |
unsigned char | get_thing_subtpos_h (const unsigned char *thing) |
short | set_thing_subtpos_h (unsigned char *thing, unsigned char pos_h) |
unsigned char | get_thing_range_subtpos (const unsigned char *thing) |
short | set_thing_range_subtpos (unsigned char *thing, unsigned char rng) |
unsigned char | get_thing_range_subtile (const unsigned char *thing) |
short | set_thing_range_subtile (unsigned char *thing, unsigned char rng) |
unsigned int | get_thing_range_adv (const unsigned char *thing) |
unsigned long | get_thing_distance_sqr_adv (const unsigned char *thing, const int ssx, const int ssy) |
unsigned long | get_thing_distance_adv (const unsigned char *thing, const int ssx, const int ssy) |
unsigned char | get_thing_level (const unsigned char *thing) |
short | set_thing_level (unsigned char *thing, unsigned char lev_num) |
unsigned short | get_thing_sensitile (const unsigned char *thing) |
short | set_thing_sensitile (unsigned char *thing, unsigned short til_num) |
unsigned char | get_door_orientation (const unsigned char *thing) |
short | set_door_orientation (unsigned char *thing, unsigned char orient) |
short | switch_thing_subtype (unsigned char *thing, const short forward) |
int | get_thing_subtypes_arridx (const unsigned char *thing) |
unsigned int | get_thing_subtypes_count (const unsigned short arr_idx) |
unsigned int | get_thing_subtypes_arritem (const unsigned short arr_idx, const int arr_itm) |
int | get_thing_subtypes_arritmidx (const unsigned short arr_idx, const unsigned short stype_idx) |
thing_subtype_arrayitem | get_thing_subtypes_arritem_func (const unsigned short arr_idx) |
unsigned short | get_thing_subtypes_next (const unsigned short arr_idx, const unsigned short stype_idx) |
unsigned short | get_thing_subtypes_prev (const unsigned short arr_idx, const unsigned short stype_idx) |
char * | get_thing_type_fullname (unsigned short type_idx) |
char * | get_thing_type_shortname (const unsigned short type_idx) |
char * | get_thing_subtype_fullname (const unsigned short type_idx, const unsigned short stype_idx) |
unsigned char | get_usual_thing_slab (unsigned char *thing) |
unsigned char | get_usual_item_slab (unsigned char stype_idx) |
unsigned char * | create_thing_empty (void) |
unsigned char * | create_thing (unsigned int sx, unsigned int sy) |
unsigned char * | create_thing_copy (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char *src) |
unsigned char * | create_item (const struct LEVEL *lvl, unsigned int sx, unsigned int sy, unsigned char stype_idx) |
short | is_spellbook (const unsigned char *thing) |
short | is_spellbook_stype (const unsigned char stype_idx) |
int | get_spellbook_arridx (const unsigned char stype_idx) |
unsigned char | get_spellbook_arritm (const int arr_itm) |
unsigned int | get_spellbook_count (void) |
unsigned char | get_spellbook_next (const unsigned char stype_idx) |
unsigned char | get_spellbook_prev (const unsigned char stype_idx) |
short | is_dngspecbox (const unsigned char *thing) |
short | is_dngspecbox_stype (const unsigned char stype_idx) |
int | get_dngspecbox_arridx (const unsigned char stype_idx) |
unsigned char | get_dngspecbox_arritm (const int arr_itm) |
unsigned int | get_dngspecbox_count (void) |
unsigned char | get_dngspecbox_next (const unsigned char stype_idx) |
unsigned char | get_dngspecbox_prev (const unsigned char stype_idx) |
short | is_crtrlair (const unsigned char *thing) |
short | is_crtrlair_stype (const unsigned char stype_idx) |
int | get_crtrlair_arridx (const unsigned char stype_idx) |
unsigned char | get_crtrlair_arritm (const int arr_itm) |
unsigned int | get_crtrlair_count (void) |
unsigned char | get_crtrlair_next (const unsigned char stype_idx) |
unsigned char | get_crtrlair_prev (const unsigned char stype_idx) |
short | is_trapbox (const unsigned char *thing) |
short | is_trapbox_stype (const unsigned char stype_idx) |
int | get_trapbox_arridx (const unsigned char stype_idx) |
unsigned char | get_trapbox_arritm (const int arr_itm) |
unsigned int | get_trapbox_count (void) |
unsigned char | get_trapbox_next (const unsigned char stype_idx) |
unsigned char | get_trapbox_prev (const unsigned char stype_idx) |
short | is_trap (const unsigned char *thing) |
int | get_trap_arridx (const unsigned char stype_idx) |
unsigned char | get_trap_arritm (const int arr_itm) |
unsigned int | get_trap_count (void) |
short | is_creature (const unsigned char *thing) |
int | get_creature_arridx (const unsigned char stype_idx) |
unsigned char | get_creature_arritm (const int arr_itm) |
unsigned int | get_creature_count (void) |
unsigned char | get_creature_next (const unsigned char stype_idx) |
unsigned char | get_creature_prev (const unsigned char stype_idx) |
short | is_doorbox (const unsigned char *thing) |
short | is_doorbox_stype (const unsigned char stype_idx) |
int | get_doorbox_arridx (const unsigned char stype_idx) |
unsigned char | get_doorbox_arritm (const int arr_itm) |
unsigned int | get_doorbox_count (void) |
unsigned char | get_doorbox_next (const unsigned char stype_idx) |
unsigned char | get_doorbox_prev (const unsigned char stype_idx) |
short | is_door (const unsigned char *thing) |
int | get_door_arridx (const unsigned char stype_idx) |
unsigned char | get_door_arritm (const int arr_itm) |
unsigned int | get_door_count (void) |
unsigned char | get_door_next (const unsigned char stype_idx) |
unsigned char | get_door_prev (const unsigned char stype_idx) |
short | is_effectgen (const unsigned char *thing) |
int | get_effectgen_arridx (const unsigned char stype_idx) |
unsigned char | get_effectgen_arritm (const int arr_itm) |
unsigned int | get_effectgen_count (void) |
unsigned char | get_effectgen_next (const unsigned char stype_idx) |
unsigned char | get_effectgen_prev (const unsigned char stype_idx) |
short | is_statue (const unsigned char *thing) |
short | is_statue_stype (const unsigned char stype_idx) |
int | get_statue_arridx (const unsigned char stype_idx) |
unsigned char | get_statue_arritm (const int arr_itm) |
unsigned int | get_statue_count (void) |
unsigned char | get_statue_next (const unsigned char stype_idx) |
unsigned char | get_statue_prev (const unsigned char stype_idx) |
short | is_food (const unsigned char *thing) |
short | is_food_stype (const unsigned char stype_idx) |
int | get_food_arridx (const unsigned char stype_idx) |
unsigned char | get_food_arritm (const int arr_itm) |
unsigned int | get_food_count (void) |
unsigned char | get_food_next (const unsigned char stype_idx) |
unsigned char | get_food_prev (const unsigned char stype_idx) |
short | is_gold (const unsigned char *thing) |
short | is_gold_stype (const unsigned char stype_idx) |
int | get_gold_arridx (const unsigned char stype_idx) |
unsigned char | get_gold_arritm (const int arr_itm) |
unsigned int | get_gold_count (void) |
unsigned char | get_gold_next (const unsigned char stype_idx) |
unsigned char | get_gold_prev (const unsigned char stype_idx) |
short | is_torch (const unsigned char *thing) |
short | is_torch_stype (const unsigned char stype_idx) |
int | get_torch_arridx (const unsigned char stype_idx) |
unsigned char | get_torch_arritm (const int arr_itm) |
unsigned int | get_torch_count (void) |
unsigned char | get_torch_next (const unsigned char stype_idx) |
unsigned char | get_torch_prev (const unsigned char stype_idx) |
short | is_heartflame (const unsigned char *thing) |
short | is_heartflame_stype (const unsigned char stype_idx) |
int | get_heartflame_arridx (const unsigned char stype_idx) |
unsigned char | get_heartflame_arritm (const int arr_itm) |
unsigned int | get_heartflame_count (void) |
unsigned char | get_heartflame_next (const unsigned char stype_idx) |
unsigned char | get_heartflame_prev (const unsigned char stype_idx) |
short | is_polebar (const unsigned char *thing) |
short | is_polebar_stype (const unsigned char stype_idx) |
int | get_polebar_arridx (const unsigned char stype_idx) |
unsigned char | get_polebar_arritm (const int arr_itm) |
unsigned int | get_polebar_count (void) |
short | is_lit_thing (const unsigned char *thing) |
short | is_lit_thing_stype (const unsigned char stype_idx) |
int | get_lit_thing_arridx (const unsigned char stype_idx) |
unsigned char | get_lit_thing_arritm (const int arr_itm) |
unsigned int | get_lit_thing_count (void) |
unsigned char | get_lit_thing_next (const unsigned char stype_idx) |
unsigned char | get_lit_thing_prev (const unsigned char stype_idx) |
short | is_spinningtng (const unsigned char *thing) |
short | is_spinningtng_stype (const unsigned char stype_idx) |
int | get_spinningtng_arridx (const unsigned char stype_idx) |
unsigned char | get_spinningtng_arritm (const int arr_itm) |
unsigned int | get_spinningtng_count (void) |
unsigned char | get_spinningtng_next (const unsigned char stype_idx) |
unsigned char | get_spinningtng_prev (const unsigned char stype_idx) |
short | is_nulltng (const unsigned char *thing) |
short | is_nulltng_stype (const unsigned char stype_idx) |
int | get_nulltng_arridx (const unsigned char stype_idx) |
unsigned char | get_nulltng_arritm (const int arr_itm) |
unsigned int | get_nulltng_count (void) |
short | is_false_stype (const unsigned char stype_idx) |
short | is_itemeffect (const unsigned char *thing) |
short | is_itemeffect_stype (const unsigned char stype_idx) |
int | get_itemeffect_arridx (const unsigned char stype_idx) |
unsigned char | get_itemeffect_arritm (const int arr_itm) |
unsigned int | get_itemeffect_count (void) |
short | is_wrkshopbox (const unsigned char *thing) |
short | is_wrkshopbox_stype (const unsigned char stype_idx) |
int | get_wrkshopbox_arridx (const unsigned char stype_idx) |
unsigned char | get_wrkshopbox_arritm (const int arr_itm) |
unsigned int | get_wrkshopbox_count (void) |
short | is_torchcndl (const unsigned char *thing) |
short | is_torchcndl_stype (const unsigned char stype_idx) |
int | get_torchcndl_arridx (const unsigned char stype_idx) |
unsigned char | get_torchcndl_arritm (const int arr_itm) |
unsigned int | get_torchcndl_count (void) |
short | is_roomequip (const unsigned char *thing) |
short | is_roomequip_stype (const unsigned char stype_idx) |
int | get_roomequip_arridx (const unsigned char stype_idx) |
unsigned char | get_roomequip_arritm (const int arr_itm) |
unsigned int | get_roomequip_count (void) |
short | is_pwhand (const unsigned char *thing) |
short | is_pwhand_stype (const unsigned char stype_idx) |
int | get_pwhand_arridx (const unsigned char stype_idx) |
unsigned char | get_pwhand_arritm (const int arr_itm) |
unsigned int | get_pwhand_count (void) |
short | is_dncrucial (const unsigned char *thing) |
short | is_dncrucial_stype (const unsigned char stype_idx) |
int | get_dncrucial_arridx (const unsigned char stype_idx) |
unsigned char | get_dncrucial_arritm (const int arr_itm) |
unsigned int | get_dncrucial_count (void) |
short | is_furniture (const unsigned char *thing) |
short | is_furniture_stype (const unsigned char stype_idx) |
int | get_furniture_arridx (const unsigned char stype_idx) |
unsigned char | get_furniture_arritm (const int arr_itm) |
unsigned int | get_furniture_count (void) |
unsigned char | get_furniture_next (const unsigned char stype_idx) |
unsigned char | get_furniture_prev (const unsigned char stype_idx) |
short | is_herogate (const unsigned char *thing) |
short | is_dnheart (const unsigned char *thing) |
short | is_doorkey (const unsigned char *thing) |
short | is_trainpost (const unsigned char *thing) |
short | is_room_inventory (const unsigned char *thing) |
short | is_clmaffective_thing (const unsigned char *thing) |
char * | get_item_subtype_fullname (const unsigned short stype_idx) |
char * | get_item_subtype_shortname (const unsigned short stype_idx) |
int | get_item_category (unsigned char stype_idx) |
char * | get_creature_subtype_fullname (const unsigned short stype_idx) |
char * | get_creature_subtype_shortname (const unsigned short stype_idx) |
char * | get_trap_subtype_fullname (const unsigned short stype_idx) |
char * | get_door_subtype_fullname (const unsigned short stype_idx) |
char * | get_thing_category_fullname (const unsigned short arr_idx) |
char * | get_thing_category_shortname (const unsigned short arr_idx) |
char * | get_effectgen_subtype_fullname (const unsigned short stype_idx) |
short | item_verify (unsigned char *thing, struct VERIFY_OPTIONS *verif_opt) |
short | creature_verify (unsigned char *thing, struct VERIFY_OPTIONS *verif_opt) |
short | effectgen_verify (unsigned char *thing, struct VERIFY_OPTIONS *verif_opt) |
short | door_verify (unsigned char *thing, struct VERIFY_OPTIONS *verif_opt) |
short | trap_verify (unsigned char *thing, struct VERIFY_OPTIONS *verif_opt) |
short | thing_verify (unsigned char *thing, struct VERIFY_OPTIONS *verif_opt) |
short | subtl_in_thing_range (const unsigned char *thing, unsigned int sx, unsigned int sy) |
Variables | |
const char * | thing_fullnames [] |
const char * | thing_shortnames [] |
const char * | traps [] |
const char * | doors [] = {"", "Wooden", "Braced", "Iron", "Magic"} |
const char * | creature_names [] |
const char * | creature_fullnames [] |
const char * | effectgenrts [] |
const unsigned char | creatr_types [] |
const unsigned char | trap_types [] |
const unsigned char | door_types [] |
const unsigned char | efctgen_types [] |
const unsigned char | items_nullthings [] |
const unsigned char | items_effcts [] |
const unsigned char | items_crtrlairs [] |
const unsigned char | items_specboxes [] |
const unsigned char | items_spellbooks [] |
const unsigned char | items_wrkshpbxs [] |
const unsigned char | items_spinnthings [] |
const unsigned char | items_gold [] |
const unsigned char | items_food [] |
const unsigned char | items_torchcandls [] |
const unsigned char | items_heartflames [] |
const unsigned char | items_polebars [] |
const unsigned char | items_statues [] |
const unsigned char | items_furniture [] |
const unsigned char | items_roomequip [] |
const unsigned char | items_pwhand [] |
const unsigned char | items_dncrucial [] |
const unsigned char | items_litthings [] |
const unsigned char | items_trapbxs [] |
const unsigned char | items_doorboxes [] |
const unsigned char | items_torches [] |
const is_thing_subtype | thing_subtype_tests [] |
const is_item_subtype | item_subtype_tests [] |
const char * | thing_subtype_fullnames [] |
const char * | thing_subtype_shortnames [] |
const thing_subtype_counter | thing_subtype_count [] |
const thing_subtype_arrayindex | thing_subtype_arridx [] |
const thing_subtype_arrayitem | thing_subtype_arritm [] |
typedef unsigned int(* thing_subtype_counter)(void) |
Definition at line 209 of file obj_things.c.
unsigned char* create_item | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char | stype_idx | |||
) |
unsigned char* create_thing | ( | unsigned int | sx, | |
unsigned int | sy | |||
) |
Definition at line 844 of file obj_things.c.
Referenced by create_creature(), create_door(), create_doorkey(), create_effectgen(), create_item(), create_torch(), and create_trap().
unsigned char* create_thing_copy | ( | const struct LEVEL * | lvl, | |
unsigned int | sx, | |||
unsigned int | sy, | |||
unsigned char * | src | |||
) |
Definition at line 863 of file obj_things.c.
unsigned char* create_thing_empty | ( | void | ) |
Definition at line 828 of file obj_things.c.
Referenced by create_thing(), create_thing_copy(), and load_tng().
short creature_verify | ( | unsigned char * | thing, | |
struct VERIFY_OPTIONS * | verif_opt | |||
) |
short door_verify | ( | unsigned char * | thing, | |
struct VERIFY_OPTIONS * | verif_opt | |||
) |
short effectgen_verify | ( | unsigned char * | thing, | |
struct VERIFY_OPTIONS * | verif_opt | |||
) |
int get_creature_arridx | ( | const unsigned char | stype_idx | ) |
Definition at line 1244 of file obj_things.c.
unsigned char get_creature_arritm | ( | const int | arr_itm | ) |
Definition at line 1254 of file obj_things.c.
unsigned int get_creature_count | ( | void | ) |
Definition at line 1265 of file obj_things.c.
Referenced by get_creature_arridx(), and get_creature_arritm().
unsigned char get_creature_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1273 of file obj_things.c.
unsigned char get_creature_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1287 of file obj_things.c.
char* get_creature_subtype_fullname | ( | const unsigned short | stype_idx | ) |
Definition at line 3070 of file obj_things.c.
Referenced by get_thing_subtype_fullname(), and write_nfo().
char* get_creature_subtype_shortname | ( | const unsigned short | stype_idx | ) |
Definition at line 3082 of file obj_things.c.
int get_crtrlair_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_crtrlair_arritm | ( | const int | arr_itm | ) |
Definition at line 1080 of file obj_things.c.
unsigned int get_crtrlair_count | ( | void | ) |
Definition at line 1091 of file obj_things.c.
Referenced by get_crtrlair_arridx(), and get_crtrlair_arritm().
unsigned char get_crtrlair_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1099 of file obj_things.c.
unsigned char get_crtrlair_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1113 of file obj_things.c.
int get_dncrucial_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_dncrucial_arritm | ( | const int | arr_itm | ) |
Definition at line 2368 of file obj_things.c.
unsigned int get_dncrucial_count | ( | void | ) |
Definition at line 2379 of file obj_things.c.
Referenced by get_dncrucial_arridx(), and get_dncrucial_arritm().
int get_dngspecbox_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_dngspecbox_arritm | ( | const int | arr_itm | ) |
Definition at line 1006 of file obj_things.c.
unsigned int get_dngspecbox_count | ( | void | ) |
Definition at line 1017 of file obj_things.c.
Referenced by get_dngspecbox_arridx(), and get_dngspecbox_arritm().
unsigned char get_dngspecbox_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1025 of file obj_things.c.
unsigned char get_dngspecbox_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1039 of file obj_things.c.
int get_door_arridx | ( | const unsigned char | stype_idx | ) |
Definition at line 1386 of file obj_things.c.
unsigned char get_door_arritm | ( | const int | arr_itm | ) |
Definition at line 1396 of file obj_things.c.
unsigned int get_door_count | ( | void | ) |
Definition at line 1407 of file obj_things.c.
Referenced by get_door_arridx(), and get_door_arritm().
unsigned char get_door_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1415 of file obj_things.c.
unsigned char get_door_orientation | ( | const unsigned char * | thing | ) |
Definition at line 541 of file obj_things.c.
Referenced by compute_door_orientation(), create_columns_slb_doorbrace(), create_columns_slb_dooriron(), create_columns_slb_doormagic(), and create_columns_slb_doorwood().
unsigned char get_door_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1429 of file obj_things.c.
char* get_door_subtype_fullname | ( | const unsigned short | stype_idx | ) |
Definition at line 3106 of file obj_things.c.
Referenced by get_thing_subtype_fullname(), things_verify(), and write_def_tng_source().
int get_doorbox_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_doorbox_arritm | ( | const int | arr_itm | ) |
Definition at line 1328 of file obj_things.c.
unsigned int get_doorbox_count | ( | void | ) |
Definition at line 1339 of file obj_things.c.
Referenced by get_doorbox_arridx(), and get_doorbox_arritm().
unsigned char get_doorbox_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1347 of file obj_things.c.
unsigned char get_doorbox_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1363 of file obj_things.c.
int get_effectgen_arridx | ( | const unsigned char | stype_idx | ) |
Definition at line 1450 of file obj_things.c.
unsigned char get_effectgen_arritm | ( | const int | arr_itm | ) |
Definition at line 1460 of file obj_things.c.
unsigned int get_effectgen_count | ( | void | ) |
Definition at line 1471 of file obj_things.c.
Referenced by get_effectgen_arridx(), and get_effectgen_arritm().
unsigned char get_effectgen_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1479 of file obj_things.c.
unsigned char get_effectgen_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1493 of file obj_things.c.
char* get_effectgen_subtype_fullname | ( | const unsigned short | stype_idx | ) |
int get_food_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_food_arritm | ( | const int | arr_itm | ) |
Definition at line 1608 of file obj_things.c.
unsigned int get_food_count | ( | void | ) |
Definition at line 1619 of file obj_things.c.
Referenced by get_food_arridx(), and get_food_arritm().
unsigned char get_food_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1627 of file obj_things.c.
unsigned char get_food_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1641 of file obj_things.c.
int get_furniture_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_furniture_arritm | ( | const int | arr_itm | ) |
Definition at line 2414 of file obj_things.c.
unsigned int get_furniture_count | ( | void | ) |
Definition at line 2425 of file obj_things.c.
Referenced by get_furniture_arridx(), and get_furniture_arritm().
unsigned char get_furniture_next | ( | const unsigned char | stype_idx | ) |
Definition at line 2433 of file obj_things.c.
unsigned char get_furniture_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 2447 of file obj_things.c.
int get_gold_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_gold_arritm | ( | const int | arr_itm | ) |
Definition at line 1676 of file obj_things.c.
unsigned int get_gold_count | ( | void | ) |
Definition at line 1687 of file obj_things.c.
Referenced by get_gold_arridx(), and get_gold_arritm().
unsigned char get_gold_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1695 of file obj_things.c.
unsigned char get_gold_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1709 of file obj_things.c.
int get_heartflame_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_heartflame_arritm | ( | const int | arr_itm | ) |
Definition at line 1818 of file obj_things.c.
unsigned int get_heartflame_count | ( | void | ) |
Definition at line 1829 of file obj_things.c.
Referenced by get_heartflame_arridx(), and get_heartflame_arritm().
unsigned char get_heartflame_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1837 of file obj_things.c.
unsigned char get_heartflame_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1854 of file obj_things.c.
int get_item_category | ( | unsigned char | stype_idx | ) |
Definition at line 3055 of file obj_things.c.
Referenced by get_usual_item_slab(), is_clmaffective_thing(), is_room_inventory(), and item_verify().
char* get_item_subtype_fullname | ( | const unsigned short | stype_idx | ) |
Definition at line 2559 of file obj_things.c.
Referenced by get_thing_subtype_fullname(), things_verify(), and write_def_tng_source().
char* get_item_subtype_shortname | ( | const unsigned short | stype_idx | ) |
Definition at line 2860 of file obj_things.c.
int get_itemeffect_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_itemeffect_arritm | ( | const int | arr_itm | ) |
Definition at line 2143 of file obj_things.c.
unsigned int get_itemeffect_count | ( | void | ) |
Definition at line 2154 of file obj_things.c.
Referenced by get_itemeffect_arridx(), and get_itemeffect_arritm().
int get_lit_thing_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_lit_thing_arritm | ( | const int | arr_itm | ) |
Definition at line 1936 of file obj_things.c.
unsigned int get_lit_thing_count | ( | void | ) |
Definition at line 1947 of file obj_things.c.
Referenced by get_lit_thing_arridx(), and get_lit_thing_arritm().
unsigned char get_lit_thing_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1955 of file obj_things.c.
unsigned char get_lit_thing_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1972 of file obj_things.c.
int get_nulltng_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_nulltng_arritm | ( | const int | arr_itm | ) |
Definition at line 2093 of file obj_things.c.
unsigned int get_nulltng_count | ( | void | ) |
Definition at line 2104 of file obj_things.c.
Referenced by get_nulltng_arridx(), and get_nulltng_arritm().
int get_polebar_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_polebar_arritm | ( | const int | arr_itm | ) |
Definition at line 1894 of file obj_things.c.
unsigned int get_polebar_count | ( | void | ) |
Definition at line 1905 of file obj_things.c.
Referenced by get_polebar_arridx(), and get_polebar_arritm().
int get_pwhand_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_pwhand_arritm | ( | const int | arr_itm | ) |
Definition at line 2323 of file obj_things.c.
unsigned int get_pwhand_count | ( | void | ) |
Definition at line 2334 of file obj_things.c.
Referenced by get_pwhand_arridx(), and get_pwhand_arritm().
int get_roomequip_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_roomequip_arritm | ( | const int | arr_itm | ) |
Definition at line 2278 of file obj_things.c.
unsigned int get_roomequip_count | ( | void | ) |
Definition at line 2289 of file obj_things.c.
Referenced by get_roomequip_arridx(), and get_roomequip_arritm().
int get_spellbook_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_spellbook_arritm | ( | const int | arr_itm | ) |
Definition at line 932 of file obj_things.c.
unsigned int get_spellbook_count | ( | void | ) |
Definition at line 943 of file obj_things.c.
Referenced by get_spellbook_arridx(), and get_spellbook_arritm().
unsigned char get_spellbook_next | ( | const unsigned char | stype_idx | ) |
Definition at line 951 of file obj_things.c.
unsigned char get_spellbook_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 965 of file obj_things.c.
int get_spinningtng_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_spinningtng_arritm | ( | const int | arr_itm | ) |
Definition at line 2014 of file obj_things.c.
unsigned int get_spinningtng_count | ( | void | ) |
Definition at line 2025 of file obj_things.c.
Referenced by get_spinningtng_arridx(), and get_spinningtng_arritm().
unsigned char get_spinningtng_next | ( | const unsigned char | stype_idx | ) |
Definition at line 2033 of file obj_things.c.
unsigned char get_spinningtng_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 2050 of file obj_things.c.
int get_statue_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_statue_arritm | ( | const int | arr_itm | ) |
Definition at line 1534 of file obj_things.c.
unsigned int get_statue_count | ( | void | ) |
Definition at line 1545 of file obj_things.c.
Referenced by get_statue_arridx(), and get_statue_arritm().
unsigned char get_statue_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1553 of file obj_things.c.
unsigned char get_statue_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1567 of file obj_things.c.
char* get_thing_category_fullname | ( | const unsigned short | arr_idx | ) |
char* get_thing_category_shortname | ( | const unsigned short | arr_idx | ) |
unsigned long get_thing_distance_adv | ( | const unsigned char * | thing, | |
const int | ssx, | |||
const int | ssy | |||
) |
Definition at line 496 of file obj_things.c.
Referenced by get_nearest_object_idx(), and get_nearest_thing_idx().
unsigned long get_thing_distance_sqr_adv | ( | const unsigned char * | thing, | |
const int | ssx, | |||
const int | ssy | |||
) |
Definition at line 482 of file obj_things.c.
unsigned char get_thing_level | ( | const unsigned char * | thing | ) |
Definition at line 508 of file obj_things.c.
Referenced by create_herogate_number_used_arr(), and get_door_lock().
unsigned char get_thing_owner | ( | const unsigned char * | thing | ) |
unsigned short get_thing_pos_x_adv | ( | const unsigned char * | thing | ) |
Definition at line 373 of file obj_things.c.
Referenced by get_thing_distance_adv(), and get_thing_distance_sqr_adv().
unsigned short get_thing_pos_y_adv | ( | const unsigned char * | thing | ) |
Definition at line 392 of file obj_things.c.
Referenced by get_thing_distance_adv(), and get_thing_distance_sqr_adv().
unsigned int get_thing_range_adv | ( | const unsigned char * | thing | ) |
Definition at line 455 of file obj_things.c.
Referenced by draw_things_on_buffer(), and subtl_in_thing_range().
unsigned char get_thing_range_subtile | ( | const unsigned char * | thing | ) |
Definition at line 439 of file obj_things.c.
Referenced by effectgen_verify(), and get_thing_range_adv().
unsigned char get_thing_range_subtpos | ( | const unsigned char * | thing | ) |
unsigned short get_thing_sensitile | ( | const unsigned char * | thing | ) |
Definition at line 524 of file obj_things.c.
Referenced by effectgen_verify(), get_free_indexedthing_number(), item_verify(), things_verify(), and write_def_tng_source().
unsigned char get_thing_subtile_h | ( | const unsigned char * | thing | ) |
Definition at line 354 of file obj_things.c.
Referenced by create_columns_slb_torchdirt(), create_columns_slb_walltorch(), level_verify_logic(), thing_verify(), and write_def_tng_source().
unsigned char get_thing_subtile_x | ( | const unsigned char * | thing | ) |
Definition at line 321 of file obj_things.c.
Referenced by compute_door_orientation(), compute_effectgen_sensitile(), compute_item_sensitile(), compute_torch_sensitile(), effectgen_verify(), item_verify(), set_door_lock(), subtl_in_thing_range(), thing_add(), thing_verify(), update_thing_subpos_and_height(), and write_def_tng_source().
unsigned char get_thing_subtile_y | ( | const unsigned char * | thing | ) |
Definition at line 333 of file obj_things.c.
Referenced by compute_door_orientation(), compute_effectgen_sensitile(), compute_item_sensitile(), compute_torch_sensitile(), effectgen_verify(), item_verify(), set_door_lock(), subtl_in_thing_range(), thing_add(), thing_verify(), update_thing_subpos_and_height(), and write_def_tng_source().
unsigned char get_thing_subtpos_h | ( | const unsigned char * | thing | ) |
Definition at line 413 of file obj_things.c.
Referenced by create_columns_slb_torchdirt(), create_columns_slb_walltorch(), things_verify(), and write_def_tng_source().
unsigned char get_thing_subtpos_x | ( | const unsigned char * | thing | ) |
Definition at line 367 of file obj_things.c.
Referenced by draw_things_on_buffer(), level_verify_logic(), things_verify(), and write_def_tng_source().
unsigned char get_thing_subtpos_y | ( | const unsigned char * | thing | ) |
Definition at line 386 of file obj_things.c.
Referenced by draw_things_on_buffer(), level_verify_logic(), things_verify(), and write_def_tng_source().
unsigned char get_thing_subtype | ( | const unsigned char * | thing | ) |
Definition at line 294 of file obj_things.c.
Referenced by compute_item_sensitile(), create_herogate_number_used_arr(), create_thing_copy(), creature_verify(), door_verify(), draw_things_on_buffer(), effectgen_verify(), get_usual_thing_slab(), is_clmaffective_thing(), is_crtrlair(), is_dncrucial(), is_dngspecbox(), is_dnheart(), is_doorbox(), is_doorkey(), is_food(), is_furniture(), is_gold(), is_heartflame(), is_herogate(), is_itemeffect(), is_lit_thing(), is_nulltng(), is_polebar(), is_pwhand(), is_room_inventory(), is_roomequip(), is_spellbook(), is_spinningtng(), is_statue(), is_torch(), is_torchcndl(), is_trainpost(), is_trapbox(), is_wrkshopbox(), item_verify(), owned_things_count(), remove_automade_obj_for_slab(), set_door_lock(), switch_thing_subtype(), things_verify(), trap_verify(), update_thing_slb_room_one_central_item(), update_thing_slb_room_one_item_subtl(), update_thing_subpos_and_height(), update_things_slb_barracks_corner(), update_things_slb_graveyard_corner(), update_things_slb_portal_inside(), and write_def_tng_source().
char* get_thing_subtype_fullname | ( | const unsigned short | type_idx, | |
const unsigned short | stype_idx | |||
) |
int get_thing_subtypes_arridx | ( | const unsigned char * | thing | ) |
Definition at line 573 of file obj_things.c.
Referenced by compute_item_sensitile(), remove_automade_obj_for_slab(), switch_thing_subtype(), things_verify(), and update_thing_stats().
unsigned int get_thing_subtypes_arritem | ( | const unsigned short | arr_idx, | |
const int | arr_itm | |||
) |
Definition at line 600 of file obj_things.c.
thing_subtype_arrayitem get_thing_subtypes_arritem_func | ( | const unsigned short | arr_idx | ) |
Definition at line 622 of file obj_things.c.
int get_thing_subtypes_arritmidx | ( | const unsigned short | arr_idx, | |
const unsigned short | stype_idx | |||
) |
Definition at line 611 of file obj_things.c.
unsigned int get_thing_subtypes_count | ( | const unsigned short | arr_idx | ) |
Definition at line 589 of file obj_things.c.
unsigned short get_thing_subtypes_next | ( | const unsigned short | arr_idx, | |
const unsigned short | stype_idx | |||
) |
unsigned short get_thing_subtypes_prev | ( | const unsigned short | arr_idx, | |
const unsigned short | stype_idx | |||
) |
unsigned char get_thing_type | ( | const unsigned char * | thing | ) |
Definition at line 281 of file obj_things.c.
Referenced by create_thing_copy(), draw_things_on_buffer(), get_thing_range_adv(), get_usual_thing_slab(), is_clmaffective_thing(), is_creature(), is_crtrlair(), is_dncrucial(), is_dngspecbox(), is_dnheart(), is_door(), is_doorbox(), is_doorkey(), is_effectgen(), is_food(), is_furniture(), is_gold(), is_heartflame(), is_herogate(), is_itemeffect(), is_lit_thing(), is_nulltng(), is_polebar(), is_pwhand(), is_room_inventory(), is_roomequip(), is_spellbook(), is_spinningtng(), is_statue(), is_torch(), is_torchcndl(), is_trainpost(), is_trap(), is_trapbox(), is_wrkshopbox(), level_verify_logic(), owned_things_count(), set_door_lock(), surr_tng_find(), thing_verify(), things_verify(), update_thing_slb_room_one_central_item(), update_thing_slb_room_one_item_subtl(), update_thing_stats(), update_things_slb_barracks_corner(), update_things_slb_graveyard_corner(), and write_def_tng_source().
char* get_thing_type_fullname | ( | unsigned short | type_idx | ) |
Definition at line 660 of file obj_things.c.
Referenced by get_thing_subtype_fullname(), and things_verify().
char* get_thing_type_shortname | ( | const unsigned short | type_idx | ) |
int get_torch_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_torch_arritm | ( | const int | arr_itm | ) |
Definition at line 1747 of file obj_things.c.
unsigned int get_torch_count | ( | void | ) |
Definition at line 1758 of file obj_things.c.
Referenced by get_torch_arridx(), and get_torch_arritm().
unsigned char get_torch_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1766 of file obj_things.c.
unsigned char get_torch_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1780 of file obj_things.c.
int get_torchcndl_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_torchcndl_arritm | ( | const int | arr_itm | ) |
Definition at line 2233 of file obj_things.c.
unsigned int get_torchcndl_count | ( | void | ) |
Definition at line 2244 of file obj_things.c.
Referenced by get_torchcndl_arridx(), and get_torchcndl_arritm().
int get_trap_arridx | ( | const unsigned char | stype_idx | ) |
Definition at line 1208 of file obj_things.c.
unsigned char get_trap_arritm | ( | const int | arr_itm | ) |
Definition at line 1218 of file obj_things.c.
unsigned int get_trap_count | ( | void | ) |
Definition at line 1229 of file obj_things.c.
Referenced by get_trap_arridx(), and get_trap_arritm().
char* get_trap_subtype_fullname | ( | const unsigned short | stype_idx | ) |
Definition at line 3094 of file obj_things.c.
Referenced by get_thing_subtype_fullname(), and write_def_tng_source().
int get_trapbox_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_trapbox_arritm | ( | const int | arr_itm | ) |
Definition at line 1154 of file obj_things.c.
unsigned int get_trapbox_count | ( | void | ) |
Definition at line 1165 of file obj_things.c.
Referenced by get_trapbox_arridx(), and get_trapbox_arritm().
unsigned char get_trapbox_next | ( | const unsigned char | stype_idx | ) |
Definition at line 1173 of file obj_things.c.
unsigned char get_trapbox_prev | ( | const unsigned char | stype_idx | ) |
Definition at line 1187 of file obj_things.c.
unsigned char get_usual_item_slab | ( | unsigned char | stype_idx | ) |
unsigned char get_usual_thing_slab | ( | unsigned char * | thing | ) |
Definition at line 710 of file obj_things.c.
Referenced by remove_automade_obj_for_slab(), and remove_misplaced_objs_on_slab().
int get_wrkshopbox_arridx | ( | const unsigned char | stype_idx | ) |
unsigned char get_wrkshopbox_arritm | ( | const int | arr_itm | ) |
Definition at line 2188 of file obj_things.c.
unsigned int get_wrkshopbox_count | ( | void | ) |
Definition at line 2199 of file obj_things.c.
Referenced by get_wrkshopbox_arridx(), and get_wrkshopbox_arritm().
short is_clmaffective_thing | ( | const unsigned char * | thing | ) |
short is_creature | ( | const unsigned char * | thing | ) |
Definition at line 1237 of file obj_things.c.
Referenced by draw_things_on_buffer(), get_free_indexedthing_number(), and things_verify().
short is_crtrlair | ( | const unsigned char * | thing | ) |
Definition at line 1053 of file obj_things.c.
short is_crtrlair_stype | ( | const unsigned char | stype_idx | ) |
short is_dncrucial | ( | const unsigned char * | thing | ) |
Definition at line 2342 of file obj_things.c.
Referenced by remove_noncrucial_room_things(), and things_verify().
short is_dncrucial_stype | ( | const unsigned char | stype_idx | ) |
short is_dngspecbox | ( | const unsigned char * | thing | ) |
Definition at line 979 of file obj_things.c.
Referenced by draw_things_on_buffer(), and things_verify().
short is_dngspecbox_stype | ( | const unsigned char | stype_idx | ) |
short is_dnheart | ( | const unsigned char * | thing | ) |
short is_door | ( | const unsigned char * | thing | ) |
Definition at line 1379 of file obj_things.c.
Referenced by get_free_indexedthing_number(), things_verify(), update_door_things_on_slab(), and update_thing_subpos_and_height().
short is_doorbox | ( | const unsigned char * | thing | ) |
short is_doorbox_stype | ( | const unsigned char | stype_idx | ) |
short is_doorkey | ( | const unsigned char * | thing | ) |
short is_effectgen | ( | const unsigned char * | thing | ) |
Definition at line 1443 of file obj_things.c.
Referenced by subtl_in_effectgen_range(), things_verify(), and update_things_slb_portal_inside().
short is_false_stype | ( | const unsigned char | stype_idx | ) |
Definition at line 2109 of file obj_things.c.
short is_food | ( | const unsigned char * | thing | ) |
Definition at line 1581 of file obj_things.c.
Referenced by draw_things_on_buffer(), and things_verify().
short is_food_stype | ( | const unsigned char | stype_idx | ) |
short is_furniture | ( | const unsigned char * | thing | ) |
short is_furniture_stype | ( | const unsigned char | stype_idx | ) |
short is_gold | ( | const unsigned char * | thing | ) |
Definition at line 1652 of file obj_things.c.
Referenced by draw_things_on_buffer(), and things_verify().
short is_gold_stype | ( | const unsigned char | stype_idx | ) |
short is_heartflame | ( | const unsigned char * | thing | ) |
short is_heartflame_stype | ( | const unsigned char | stype_idx | ) |
short is_herogate | ( | const unsigned char * | thing | ) |
short is_itemeffect | ( | const unsigned char * | thing | ) |
Definition at line 2117 of file obj_things.c.
short is_itemeffect_stype | ( | const unsigned char | stype_idx | ) |
short is_lit_thing | ( | const unsigned char * | thing | ) |
Definition at line 1913 of file obj_things.c.
Referenced by find_lit_thing_on_square_radius1(), and things_verify().
short is_lit_thing_stype | ( | const unsigned char | stype_idx | ) |
short is_nulltng | ( | const unsigned char * | thing | ) |
Definition at line 2067 of file obj_things.c.
short is_nulltng_stype | ( | const unsigned char | stype_idx | ) |
short is_polebar | ( | const unsigned char * | thing | ) |
Definition at line 1870 of file obj_things.c.
short is_polebar_stype | ( | const unsigned char | stype_idx | ) |
short is_pwhand | ( | const unsigned char * | thing | ) |
Definition at line 2297 of file obj_things.c.
short is_pwhand_stype | ( | const unsigned char | stype_idx | ) |
short is_room_inventory | ( | const unsigned char * | thing | ) |
Definition at line 2490 of file obj_things.c.
Referenced by delete_room_things_subtl(), remove_automade_obj_for_slab(), remove_noncrucial_room_things(), update_thing_slb_room_one_central_item(), update_thing_slb_room_one_item_subtl(), update_thing_stats(), update_things_slb_barracks_corner(), update_things_slb_graveyard_corner(), and update_things_slb_portal_inside().
short is_roomequip | ( | const unsigned char * | thing | ) |
Definition at line 2252 of file obj_things.c.
short is_roomequip_stype | ( | const unsigned char | stype_idx | ) |
short is_spellbook | ( | const unsigned char * | thing | ) |
Definition at line 905 of file obj_things.c.
Referenced by draw_things_on_buffer(), and things_verify().
short is_spellbook_stype | ( | const unsigned char | stype_idx | ) |
short is_spinningtng | ( | const unsigned char * | thing | ) |
short is_spinningtng_stype | ( | const unsigned char | stype_idx | ) |
short is_statue | ( | const unsigned char * | thing | ) |
short is_statue_stype | ( | const unsigned char | stype_idx | ) |
short is_torch | ( | const unsigned char * | thing | ) |
Definition at line 1723 of file obj_things.c.
Referenced by compute_item_sensitile(), create_columns_slb_torchdirt(), create_columns_slb_walltorch(), delete_room_things_subtl(), and update_thing_subpos_and_height().
short is_torch_stype | ( | const unsigned char | stype_idx | ) |
Definition at line 1731 of file obj_things.c.
Referenced by create_item_adv(), is_torch(), 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().
short is_torchcndl | ( | const unsigned char * | thing | ) |
short is_torchcndl_stype | ( | const unsigned char | stype_idx | ) |
short is_trainpost | ( | const unsigned char * | thing | ) |
short is_trap | ( | const unsigned char * | thing | ) |
Definition at line 1201 of file obj_things.c.
Referenced by get_free_indexedthing_number(), and things_verify().
short is_trapbox | ( | const unsigned char * | thing | ) |
short is_trapbox_stype | ( | const unsigned char | stype_idx | ) |
short is_wrkshopbox | ( | const unsigned char * | thing | ) |
Definition at line 2162 of file obj_things.c.
short is_wrkshopbox_stype | ( | const unsigned char | stype_idx | ) |
short item_verify | ( | unsigned char * | thing, | |
struct VERIFY_OPTIONS * | verif_opt | |||
) |
short set_door_orientation | ( | unsigned char * | thing, | |
unsigned char | orient | |||
) |
Definition at line 547 of file obj_things.c.
Referenced by create_door(), and update_door_things_on_slab().
short set_thing_level | ( | unsigned char * | thing, | |
unsigned char | lev_num | |||
) |
Definition at line 514 of file obj_things.c.
Referenced by create_creature(), create_door(), create_item_adv(), and set_door_lock().
short set_thing_owner | ( | unsigned char * | thing, | |
unsigned char | ownr_idx | |||
) |
Definition at line 314 of file obj_things.c.
Referenced by create_creature(), create_door(), create_doorkey(), create_effectgen(), create_item(), create_item_adv(), create_thing(), create_torch(), create_trap(), update_thing_slb_room_one_central_item(), update_thing_slb_room_one_item_subtl(), update_things_slb_barracks_corner(), update_things_slb_graveyard_corner(), and update_things_slb_portal_inside().
short set_thing_range_subtile | ( | unsigned char * | thing, | |
unsigned char | rng | |||
) |
short set_thing_range_subtpos | ( | unsigned char * | thing, | |
unsigned char | rng | |||
) |
Definition at line 432 of file obj_things.c.
short set_thing_sensitile | ( | unsigned char * | thing, | |
unsigned short | til_num | |||
) |
Definition at line 533 of file obj_things.c.
Referenced by create_creature(), create_door(), create_doorkey(), create_effectgen(), create_item(), create_item_adv(), create_thing_copy(), create_torch(), create_trap(), update_things_slb_barracks_corner(), and update_things_slb_graveyard_corner().
short set_thing_subtile | ( | unsigned char * | thing, | |
unsigned char | pos_x, | |||
unsigned char | pos_y | |||
) |
Definition at line 346 of file obj_things.c.
Referenced by create_thing(), create_thing_copy(), update_door_things_on_slab(), update_things_slb_barracks_corner(), and update_things_slb_graveyard_corner().
short set_thing_subtile_h | ( | unsigned char * | thing, | |
unsigned char | pos_h | |||
) |
Definition at line 360 of file obj_things.c.
Referenced by create_door(), create_doorkey(), create_item_adv(), create_thing(), create_torch(), update_thing_subpos_and_height(), update_things_slb_guardpost_floor(), and update_things_slb_temple_corner().
short set_thing_subtile_x | ( | unsigned char * | thing, | |
unsigned char | pos_x | |||
) |
Definition at line 327 of file obj_things.c.
short set_thing_subtile_y | ( | unsigned char * | thing, | |
unsigned char | pos_y | |||
) |
Definition at line 339 of file obj_things.c.
short set_thing_subtpos | ( | unsigned char * | thing, | |
unsigned char | pos_x, | |||
unsigned char | pos_y | |||
) |
Definition at line 405 of file obj_things.c.
Referenced by create_door(), create_doorkey(), create_item_adv(), create_thing(), create_thing_copy(), create_torch(), and update_thing_subpos_and_height().
short set_thing_subtpos_h | ( | unsigned char * | thing, | |
unsigned char | pos_h | |||
) |
Definition at line 419 of file obj_things.c.
Referenced by create_doorkey(), create_torch(), and update_thing_subpos_and_height().
short set_thing_subtpos_x | ( | unsigned char * | thing, | |
unsigned char | pos_x | |||
) |
Definition at line 379 of file obj_things.c.
short set_thing_subtpos_y | ( | unsigned char * | thing, | |
unsigned char | pos_y | |||
) |
Definition at line 398 of file obj_things.c.
short set_thing_subtype | ( | unsigned char * | thing, | |
const unsigned char | stype_idx | |||
) |
Definition at line 300 of file obj_things.c.
Referenced by create_creature(), create_door(), create_doorkey(), create_effectgen(), create_item(), create_torch(), create_trap(), switch_thing_subtype(), and update_door_things_on_slab().
short set_thing_type | ( | unsigned char * | thing, | |
unsigned char | type_idx | |||
) |
Definition at line 287 of file obj_things.c.
Referenced by create_creature(), create_door(), create_doorkey(), create_effectgen(), create_item(), create_torch(), and create_trap().
short subtl_in_thing_range | ( | const unsigned char * | thing, | |
unsigned int | sx, | |||
unsigned int | sy | |||
) |
short switch_thing_subtype | ( | unsigned char * | thing, | |
const short | forward | |||
) |
Definition at line 554 of file obj_things.c.
short thing_verify | ( | unsigned char * | thing, | |
struct VERIFY_OPTIONS * | verif_opt | |||
) |
short trap_verify | ( | unsigned char * | thing, | |
struct VERIFY_OPTIONS * | verif_opt | |||
) |
const unsigned char creatr_types[] |
Initial value:
{ CREATR_SUBTP_WIZRD,CREATR_SUBTP_BARBARIN,CREATR_SUBTP_ARCHER, CREATR_SUBTP_MONK,CREATR_SUBTP_DWAFT,CREATR_SUBTP_KNIGHT, CREATR_SUBTP_AVATAR,CREATR_SUBTP_TUNELER,CREATR_SUBTP_WITCH, CREATR_SUBTP_GIANT,CREATR_SUBTP_FAIRY,CREATR_SUBTP_THEFT, CREATR_SUBTP_SMURI,CREATR_SUBTP_HORNY,CREATR_SUBTP_SKELETON, CREATR_SUBTP_TROLL,CREATR_SUBTP_DRAGON,CREATR_SUBTP_SPAWN, CREATR_SUBTP_FLY,CREATR_SUBTP_MISTRESS,CREATR_SUBTP_WARLOCK, CREATR_SUBTP_BILEDEMN,CREATR_SUBTP_IMP,CREATR_SUBTP_BEETLE, CREATR_SUBTP_VAMPIRE,CREATR_SUBTP_SPIDER,CREATR_SUBTP_HOUND, CREATR_SUBTP_GHOST,CREATR_SUBTP_TENTCL,CREATR_SUBTP_ORC, CREATR_SUBTP_FLOAT}
Definition at line 78 of file obj_things.c.
Referenced by get_creature_arridx(), get_creature_arritm(), get_creature_count(), get_creature_next(), and get_creature_prev().
const char* creature_fullnames[] |
Initial value:
{"", "Wizard", "Barbarian", "Archer", "Monk", "Dwarf", "Knight", "Avatar", "Tunneller", "Witch", "Giant", "Fairy", "Thief", "Samurai", "Horned Reaper", "Skeleton", "Troll", "Dragon", "Demon Spawn", "Fly", "Dark Mistress", "Warlock", "Bile Demon", "Imp", "Beetle", "Vampire", "Spider", "Hell Hound", "Ghost", "Tentacle", "Orc", "Floating spirit"}
Definition at line 68 of file obj_things.c.
Referenced by get_creature_subtype_fullname().
const char* creature_names[] |
Initial value:
{"", "Wizrd", "Barb ", "Archr", "Monk ", "Dwarf", "Knigt", "Avtar", "Tunlr", "Witch", "Giant", "Fairy", "Thief", "Smuri", "Horny", "Skel ", "Troll", "Drgon", "Spawn", " Fly ", "DrkMs", "Warlk", "BileD", " Imp ", "Beetl", "Vamp ", "Spder", "Hound", "Ghost", "Tntcl", " Orc ", "Float"}
Definition at line 62 of file obj_things.c.
Referenced by get_creature_subtype_shortname().
const unsigned char door_types[] |
Initial value:
Definition at line 97 of file obj_things.c.
Referenced by get_door_arridx(), get_door_arritm(), get_door_count(), get_door_next(), and get_door_prev().
const char* doors[] = {"", "Wooden", "Braced", "Iron", "Magic"} |
const unsigned char efctgen_types[] |
Initial value:
{ EFCTGEN_SUBTP_LAVA,EFCTGEN_SUBTP_DRIPWTR,EFCTGEN_SUBTP_ROCKFAL, EFCTGEN_SUBTP_ENTRICE,EFCTGEN_SUBTP_DRYICE, }
Definition at line 101 of file obj_things.c.
Referenced by get_effectgen_arridx(), get_effectgen_arritm(), get_effectgen_count(), get_effectgen_next(), and get_effectgen_prev().
const char* effectgenrts[] |
Initial value:
{"unknown 0", "Lava", "Dripping water", "Rock Fall", "Entrance Ice", "Dry ice", "unknown 6", "unknown 7", "unknown 8"}
Definition at line 74 of file obj_things.c.
Referenced by get_effectgen_subtype_fullname().
const is_item_subtype item_subtype_tests[] |
Initial value:
{ is_nulltng_stype, is_false_stype, is_itemeffect_stype, is_false_stype, is_crtrlair_stype, is_false_stype, is_false_stype, is_dngspecbox_stype, is_spellbook_stype, is_wrkshopbox_stype, is_spinningtng_stype, is_food_stype, is_gold_stype, is_torchcndl_stype, is_heartflame_stype, is_polebar_stype, is_statue_stype, is_furniture_stype, is_roomequip_stype, is_pwhand_stype, is_dncrucial_stype, }
Definition at line 221 of file obj_things.c.
Referenced by get_item_category().
const unsigned char items_crtrlairs[] |
Initial value:
{ ITEM_SUBTYPE_LAIRWIZRD,ITEM_SUBTYPE_LAIRBARBR,ITEM_SUBTYPE_LAIRARCHR, ITEM_SUBTYPE_LAIRMONK,ITEM_SUBTYPE_LAIRDWRFA,ITEM_SUBTYPE_LAIRKNGHT, ITEM_SUBTYPE_LAIRAVATR,ITEM_SUBTYPE_LAIRTUNLR,ITEM_SUBTYPE_LAIRWITCH, ITEM_SUBTYPE_LAIRGIANT,ITEM_SUBTYPE_LAIRFAIRY,ITEM_SUBTYPE_LAIRTHEFT, ITEM_SUBTYPE_LAIRSAMUR,ITEM_SUBTYPE_LAIRHORNY,ITEM_SUBTYPE_LAIRSKELT, ITEM_SUBTYPE_LAIRGOBLN,ITEM_SUBTYPE_LAIRDRAGN,ITEM_SUBTYPE_LAIRDEMSP, ITEM_SUBTYPE_LAIRFLY,ITEM_SUBTYPE_LAIRDKMIS,ITEM_SUBTYPE_LAIRSORCR, ITEM_SUBTYPE_LAIRBILDM,ITEM_SUBTYPE_LAIRIMP,ITEM_SUBTYPE_LAIRBUG, ITEM_SUBTYPE_LAIRVAMP,ITEM_SUBTYPE_LAIRSPIDR,ITEM_SUBTYPE_LAIRHLHND, ITEM_SUBTYPE_LAIRGHOST,ITEM_SUBTYPE_LAIRTENTC,ITEM_SUBTYPE_LAIRORC}
Definition at line 114 of file obj_things.c.
Referenced by get_crtrlair_arridx(), get_crtrlair_arritm(), get_crtrlair_count(), get_crtrlair_next(), and get_crtrlair_prev().
const unsigned char items_dncrucial[] |
Initial value:
Definition at line 187 of file obj_things.c.
Referenced by get_dncrucial_arridx(), get_dncrucial_arritm(), and get_dncrucial_count().
const unsigned char items_doorboxes[] |
Initial value:
Definition at line 202 of file obj_things.c.
Referenced by get_doorbox_arridx(), get_doorbox_arritm(), get_doorbox_count(), get_doorbox_next(), and get_doorbox_prev().
const unsigned char items_effcts[] |
Initial value:
Definition at line 111 of file obj_things.c.
Referenced by get_itemeffect_arridx(), get_itemeffect_arritm(), and get_itemeffect_count().
const unsigned char items_food[] |
Initial value:
{ ITEM_SUBTYPE_CHICKNGRW, ITEM_SUBTYPE_CHICKN, ITEM_SUBTYPE_CHICKNSTB, ITEM_SUBTYPE_CHICKNWOB, ITEM_SUBTYPE_CHICKNCRK, }
Definition at line 155 of file obj_things.c.
Referenced by get_food_arridx(), get_food_arritm(), get_food_count(), get_food_next(), and get_food_prev().
const unsigned char items_furniture[] |
Initial value:
{ ITEM_SUBTYPE_BARREL,ITEM_SUBTYPE_POTION1,ITEM_SUBTYPE_POTION2, ITEM_SUBTYPE_POTION3, ITEM_SUBTYPE_ANVIL, }
Definition at line 175 of file obj_things.c.
Referenced by get_furniture_arridx(), get_furniture_arritm(), get_furniture_count(), get_furniture_next(), and get_furniture_prev().
const unsigned char items_gold[] |
Initial value:
{ ITEM_SUBTYPE_GOLDCHEST,ITEM_SUBTYPE_GOLD,ITEM_SUBTYPE_GOLDL, ITEM_SUBTYPE_GLDHOARD1,ITEM_SUBTYPE_GLDHOARD2,ITEM_SUBTYPE_GLDHOARD3, ITEM_SUBTYPE_GLDHOARD4,ITEM_SUBTYPE_GLDHOARD5, }
Definition at line 150 of file obj_things.c.
Referenced by get_gold_arridx(), get_gold_arritm(), get_gold_count(), get_gold_next(), and get_gold_prev().
const unsigned char items_heartflames[] |
Initial value:
Definition at line 162 of file obj_things.c.
Referenced by get_heartflame_arridx(), get_heartflame_arritm(), get_heartflame_count(), get_heartflame_next(), and get_heartflame_prev().
const unsigned char items_litthings[] |
Initial value:
Definition at line 193 of file obj_things.c.
Referenced by get_lit_thing_arridx(), get_lit_thing_arritm(), get_lit_thing_count(), get_lit_thing_next(), and get_lit_thing_prev().
const unsigned char items_nullthings[] |
Initial value:
Definition at line 108 of file obj_things.c.
Referenced by get_nulltng_arridx(), get_nulltng_arritm(), and get_nulltng_count().
const unsigned char items_polebars[] |
Initial value:
{ ITEM_SUBTYPE_GURDFLAGR,ITEM_SUBTYPE_GURDFLAGB,ITEM_SUBTYPE_GURDFLAGG, ITEM_SUBTYPE_GURDFLAGY,ITEM_SUBTYPE_FLAGPOST,ITEM_SUBTYPE_PRISONBAR,}
Definition at line 166 of file obj_things.c.
Referenced by get_polebar_arridx(), get_polebar_arritm(), and get_polebar_count().
const unsigned char items_pwhand[] |
Initial value:
{ ITEM_SUBTYPE_PWHAND, ITEM_SUBTYPE_PWHANDGRB, ITEM_SUBTYPE_PWHANDWHP, ITEM_SUBTYPE_PWSIGHT, ITEM_SUBTYPE_PWLIGHTNG, ITEM_SUBTYPE_PWHANDGLD, }
Definition at line 183 of file obj_things.c.
Referenced by get_pwhand_arridx(), get_pwhand_arritm(), and get_pwhand_count().
const unsigned char items_roomequip[] |
Initial value:
{ ITEM_SUBTYPE_TRAINPOST, ITEM_SUBTYPE_GRAVSTONE, ITEM_SUBTYPE_SCAVNGEYE, ITEM_SUBTYPE_WRKSHPMCH, ITEM_SUBTYPE_TORTURER, ITEM_SUBTYPE_TORTSPIKE, }
Definition at line 179 of file obj_things.c.
Referenced by get_roomequip_arridx(), get_roomequip_arritm(), and get_roomequip_count().
const unsigned char items_specboxes[] |
Initial value:
{ ITEM_SUBTYPE_SPREVMAP,ITEM_SUBTYPE_SPRESURCT,ITEM_SUBTYPE_SPTRANSFR, ITEM_SUBTYPE_SPSTEALHR,ITEM_SUBTYPE_SPMULTPLY,ITEM_SUBTYPE_SPINCLEV, ITEM_SUBTYPE_SPMKSAFE,ITEM_SUBTYPE_SPHIDNWRL}
Definition at line 126 of file obj_things.c.
Referenced by get_dngspecbox_arridx(), get_dngspecbox_arritm(), get_dngspecbox_count(), get_dngspecbox_next(), and get_dngspecbox_prev().
const unsigned char items_spellbooks[] |
Initial value:
{ ITEM_SUBTYPE_SPELLHOE,ITEM_SUBTYPE_SPELLIMP,ITEM_SUBTYPE_SPELLMUST, ITEM_SUBTYPE_SPELLSLAP,ITEM_SUBTYPE_SPELLSOE,ITEM_SUBTYPE_SPELLCTA, ITEM_SUBTYPE_SPELLCAVI,ITEM_SUBTYPE_SPELLHEAL,ITEM_SUBTYPE_SPELLHLDA, ITEM_SUBTYPE_SPELLLIGH,ITEM_SUBTYPE_SPELLSPDC,ITEM_SUBTYPE_SPELLPROT, ITEM_SUBTYPE_SPELLCONC,ITEM_SUBTYPE_SPELLDISE,ITEM_SUBTYPE_SPELLCHKN, ITEM_SUBTYPE_SPELLDWAL,ITEM_SUBTYPE_SPELLTBMB,ITEM_SUBTYPE_SPELLARMG}
Definition at line 131 of file obj_things.c.
Referenced by get_spellbook_arridx(), get_spellbook_arritm(), get_spellbook_count(), get_spellbook_next(), and get_spellbook_prev().
const unsigned char items_spinnthings[] |
Initial value:
Definition at line 147 of file obj_things.c.
Referenced by get_spinningtng_arridx(), get_spinningtng_arritm(), get_spinningtng_count(), get_spinningtng_next(), and get_spinningtng_prev().
const unsigned char items_statues[] |
Initial value:
{ ITEM_SUBTYPE_TEMPLESTA,ITEM_SUBTYPE_STATUEWO,ITEM_SUBTYPE_STATUHORN, ITEM_SUBTYPE_STATUE2,ITEM_SUBTYPE_STATUE3,ITEM_SUBTYPE_STATUE4, ITEM_SUBTYPE_STATUE5,ITEM_SUBTYPE_STATUE6,}
Definition at line 170 of file obj_things.c.
Referenced by get_statue_arridx(), get_statue_arritm(), get_statue_count(), get_statue_next(), and get_statue_prev().
const unsigned char items_torchcandls[] |
Initial value:
Definition at line 159 of file obj_things.c.
Referenced by get_torchcndl_arridx(), get_torchcndl_arritm(), and get_torchcndl_count().
const unsigned char items_torches[] |
Initial value:
Definition at line 206 of file obj_things.c.
Referenced by get_torch_arridx(), get_torch_arritm(), get_torch_count(), get_torch_next(), and get_torch_prev().
const unsigned char items_trapbxs[] |
Initial value:
{ ITEM_SUBTYPE_TBBOULDER,ITEM_SUBTYPE_TBALARM,ITEM_SUBTYPE_TBPOISONG, ITEM_SUBTYPE_TBLIGHTNG,ITEM_SUBTYPE_TBWRDOFPW,ITEM_SUBTYPE_TBLAVA, ITEM_SUBTYPE_TBDUMMY2,ITEM_SUBTYPE_TBDUMMY3,ITEM_SUBTYPE_TBDUMMY4, ITEM_SUBTYPE_TBDUMMY5,ITEM_SUBTYPE_TBDUMMY6,ITEM_SUBTYPE_TBDUMMY7}
Definition at line 196 of file obj_things.c.
Referenced by get_trapbox_arridx(), get_trapbox_arritm(), get_trapbox_count(), get_trapbox_next(), and get_trapbox_prev().
const unsigned char items_wrkshpbxs[] |
Initial value:
{ ITEM_SUBTYPE_TBBOULDER,ITEM_SUBTYPE_TBALARM,ITEM_SUBTYPE_TBPOISONG, ITEM_SUBTYPE_TBLIGHTNG,ITEM_SUBTYPE_TBWRDOFPW,ITEM_SUBTYPE_TBLAVA, ITEM_SUBTYPE_TBDUMMY2,ITEM_SUBTYPE_TBDUMMY3,ITEM_SUBTYPE_TBDUMMY4, ITEM_SUBTYPE_TBDUMMY5,ITEM_SUBTYPE_TBDUMMY6,ITEM_SUBTYPE_TBDUMMY7, ITEM_SUBTYPE_DBWOOD,ITEM_SUBTYPE_DBBRACE,ITEM_SUBTYPE_DBSTEEL, ITEM_SUBTYPE_DBMAGIC, ITEM_SUBTYPE_WBITEM, }
Definition at line 139 of file obj_things.c.
Referenced by get_wrkshopbox_arridx(), get_wrkshopbox_arritm(), and get_wrkshopbox_count().
const char* thing_fullnames[] |
Initial value:
{"Nothing", "Item/decoration", "unknown 2", "unknown 3", "unknown 4", "Creature", "unknown 6", "Effect Generatr", "Trap", "Door"}
Definition at line 53 of file obj_things.c.
Referenced by get_thing_type_fullname().
const char* thing_shortnames[] |
Initial value:
{"empty", "thing", "unkn2", "unkn3", "unkn4", "crtur", "unkn6", "effct", "trap", "door"}
Definition at line 56 of file obj_things.c.
Referenced by get_thing_type_shortname().
Initial value:
{ get_nulltng_arridx, get_effectgen_arridx, get_itemeffect_arridx, get_creature_arridx, get_crtrlair_arridx, get_trap_arridx, get_door_arridx, get_dngspecbox_arridx, get_spellbook_arridx, get_wrkshopbox_arridx, get_spinningtng_arridx, get_food_arridx, get_gold_arridx, get_torchcndl_arridx, get_heartflame_arridx, get_polebar_arridx, get_statue_arridx, get_furniture_arridx, get_roomequip_arridx, get_pwhand_arridx, get_dncrucial_arridx, }
Definition at line 261 of file obj_things.c.
Referenced by get_thing_subtypes_arritmidx(), get_thing_subtypes_next(), and get_thing_subtypes_prev().
Initial value:
{ get_nulltng_arritm, get_effectgen_arritm, get_itemeffect_arritm, get_creature_arritm, get_crtrlair_arritm, get_trap_arritm, get_door_arritm, get_dngspecbox_arritm, get_spellbook_arritm, get_wrkshopbox_arritm, get_spinningtng_arritm, get_food_arritm, get_gold_arritm, get_torchcndl_arritm, get_heartflame_arritm, get_polebar_arritm, get_statue_arritm, get_furniture_arritm, get_roomequip_arritm, get_pwhand_arritm, get_dncrucial_arritm, }
Definition at line 271 of file obj_things.c.
Referenced by get_thing_subtypes_arritem(), get_thing_subtypes_arritem_func(), get_thing_subtypes_arritmidx(), get_thing_subtypes_count(), get_thing_subtypes_next(), and get_thing_subtypes_prev().
Initial value:
{ get_nulltng_count, get_effectgen_count, get_itemeffect_count, get_creature_count, get_crtrlair_count, get_trap_count, get_door_count, get_dngspecbox_count, get_spellbook_count, get_wrkshopbox_count, get_spinningtng_count, get_food_count, get_gold_count, get_torchcndl_count, get_heartflame_count, get_polebar_count, get_statue_count, get_furniture_count, get_roomequip_count, get_pwhand_count, get_dncrucial_count, }
Definition at line 251 of file obj_things.c.
Referenced by get_thing_subtypes_count().
const char* thing_subtype_fullnames[] |
Initial value:
{ "Null Things", "Effect Generator", "Item Effects", "Creatures", "Creature Lairs", "Traps", "Doors", "Dung.Special boxes","Spell Books", "Workshop Boxes", "Spinning Things", "Food (Chickens)", "Valuable (Gold)", "Torches & Candles", "Heart Flames", "Poles & Bars", "Statues", "Furniture", "Room Equipment", "Power Hands", "Dungeon Crucial", }
Definition at line 231 of file obj_things.c.
Referenced by get_thing_category_fullname().
const char* thing_subtype_shortnames[] |
Initial value:
{ "Null Tngs", "EffectGen", "Itm Effct", "Creatures", "Lairs", "Traps", "Doors", "Dn.Specls", "Spl Books", "WrkshpBxs", "Spinn.Tng", "Chickens", "Gold Tngs", "Trch/Cndl", "Heart Flm", "Pols/Bars", "Statues", "Furniture", "RoomEquip", "Pwr Hands", "Dn.Crucil", }
Definition at line 241 of file obj_things.c.
Referenced by get_thing_category_shortname().
const is_thing_subtype thing_subtype_tests[] |
Initial value:
{ is_nulltng, is_effectgen, is_itemeffect, is_creature, is_crtrlair, is_trap, is_door, is_dngspecbox, is_spellbook, is_wrkshopbox, is_spinningtng, is_food, is_gold, is_torchcndl, is_heartflame, is_polebar, is_statue, is_furniture, is_roomequip, is_pwhand, is_dncrucial, }
Definition at line 211 of file obj_things.c.
Referenced by get_thing_subtypes_arridx().
const unsigned char trap_types[] |
Initial value:
{ TRAP_SUBTYPE_BOULDER,TRAP_SUBTYPE_ALARM,TRAP_SUBTYPE_GAS, TRAP_SUBTYPE_LIGHTNG,TRAP_SUBTYPE_WORDPWR,TRAP_SUBTYPE_LAVA, TRAP_SUBTYPE_DUMMY2,TRAP_SUBTYPE_DUMMY3,TRAP_SUBTYPE_DUMMY4, TRAP_SUBTYPE_DUMMY5,TRAP_SUBTYPE_DUMMY6,TRAP_SUBTYPE_DUMMY7}
Definition at line 91 of file obj_things.c.
Referenced by get_trap_arridx(), get_trap_arritm(), and get_trap_count().
const char* traps[] |
Initial value:
{"", "Boulder", "Alarm", "Poison gas", "Lightning", "Word of power", "Lava", "Dummy 2", "Dummy 3", "Dummy 4", "Dummy 5", "Dummy 6", "Dummy 7"}
Definition at line 58 of file obj_things.c.
Referenced by get_trap_subtype_fullname().