* (z-virt.h, z-util.h, z-form.h, term.h, random.h)
*/
#include "geometry.h"
+#include "grid.h"
+#include "floor-save.h"
+#include "monster.h"
+#include "monsterrace.h"
+#include "object.h"
+#include "player-status.h"
/*
* Automatically generated "variable" declarations
extern int level_up;
-/*
- * List for auto-picker/destroyer entries
- */
-extern int max_autopick;
-extern int max_max_autopick;
-extern autopick_type *autopick_list;
/* tables.c */
extern const POSITION ddd[9];
extern const byte adj_chr_chm[];
extern const byte blows_table[12][12];
extern const byte extract_energy[200];
-extern const player_sex sex_info[MAX_SEXES];
-extern const player_race race_info[MAX_RACES];
-extern const player_class class_info[MAX_CLASS];
-extern const player_seikaku seikaku_info[MAX_SEIKAKU];
-extern const player_race mimic_info[];
+
extern const u32b fake_spell_flags[4];
-extern const s32b realm_choices1[];
-extern const s32b realm_choices2[];
extern const concptr realm_names[];
#ifdef JP
extern const concptr E_realm_names[];
extern const concptr window_flag_desc[32];
extern const concptr game_inscriptions[];
-extern const kamae kamae_shurui[MAX_KAMAE];
-extern const kamae kata_shurui[MAX_KATA];
-
extern const concptr ident_info[];
-extern const mbe_info_type mbe_info[];
extern const byte feature_action_flags[FF_FLAG_MAX];
-extern const dragonbreath_type dragonbreath_info[];
/* variable.c */
extern const concptr copyright[5];
extern const concptr angband_music_basic_name[MUSIC_BASIC_MAX];
extern FLOOR_IDX max_floor_id;
extern u32b saved_floor_file_sign;
-extern TOWN_IDX max_towns;
-extern town_type *town_info;
-extern s16b alloc_kind_size;
-extern alloc_entry *alloc_kind_table;
-extern s16b alloc_race_size;
-extern alloc_entry *alloc_race_table;
extern TERM_COLOR misc_to_attr[256];
extern SYMBOL_CODE misc_to_char[256];
extern TERM_COLOR tval_to_attr[128];
extern SYMBOL_CODE tval_to_char[128];
extern concptr keymap_act[KEYMAP_MODES][256];
extern player_type *p_ptr;
-extern const player_sex *sp_ptr;
-extern const player_race *rp_ptr;
-extern const player_class *cp_ptr;
-extern const player_seikaku *ap_ptr;
-extern birther previous_char;
extern char *f_name;
extern char *f_tag;
-extern object_kind *k_info;
-extern char *k_name;
-extern char *k_text;
-extern ego_item_type *e_info;
-extern char *e_name;
-extern char *e_text;
-extern monster_race *r_info;
-extern char *r_name;
-extern char *r_text;
extern concptr ANGBAND_SYS;
extern concptr ANGBAND_KEYBOARD;
extern COMMAND_CODE now_message;
extern bool use_menu;
-/* autopick.c */
-extern void autopick_load_pref(bool disp_mes);
-extern errr process_autopick_file_command(char *buf);
-extern concptr autopick_line_from_entry(autopick_type *entry);
-extern int is_autopick(object_type *o_ptr);
-extern void autopick_alter_item(INVENTORY_IDX item, bool destroy);
-extern void autopick_delayed_alter(void);
-extern void autopick_pickup_items(grid_type *g_ptr);
-extern bool autopick_autoregister(object_type *o_ptr);
-extern void do_cmd_edit_autopick(void);
-
/* grids.c */
extern void update_local_illumination(POSITION y, POSITION x);
extern errr rd_savefile_new(void);
extern bool load_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
-/* monster2.c */
-extern void set_target(monster_type *m_ptr, POSITION y, POSITION x);
-extern void reset_target(monster_type *m_ptr);
-extern monster_race *real_r_ptr(monster_type *m_ptr);
-extern MONRACE_IDX real_r_idx(monster_type *m_ptr);
-extern void delete_monster_idx(MONSTER_IDX i);
-extern void delete_monster(POSITION y, POSITION x);
-extern void compact_monsters(int size);
-extern void wipe_m_list(void);
-extern MONSTER_IDX m_pop(void);
-extern errr get_mon_num_prep(monsterrace_hook_type monster_hook, monsterrace_hook_type monster_hook2);
-extern MONRACE_IDX get_mon_num(DEPTH level);
-extern int lore_do_probe(MONRACE_IDX r_idx);
-extern void lore_treasure(MONSTER_IDX m_idx, ITEM_NUMBER num_item, ITEM_NUMBER num_gold);
-extern void update_monster(MONSTER_IDX m_idx, bool full);
-extern void update_monsters(bool full);
-extern bool multiply_monster(MONSTER_IDX m_idx, bool clone, BIT_FLAGS mode);
-extern void update_smart_learn(MONSTER_IDX m_idx, int what);
-extern void choose_new_monster(MONSTER_IDX m_idx, bool born, MONRACE_IDX r_idx);
-extern SPEED get_mspeed(monster_race *r_ptr);
-extern void monster_drop_carried_objects(monster_type *m_ptr);
-
-/* object1.c */
-extern void reset_visuals(void);
-extern void object_flags(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE]);
-extern void object_flags_known(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE]);
-extern concptr item_activation(object_type *o_ptr);
-extern bool screen_object(object_type *o_ptr, BIT_FLAGS mode);
-extern char index_to_label(int i);
-extern INVENTORY_IDX label_to_inven(int c);
-extern INVENTORY_IDX label_to_equip(int c);
-extern s16b wield_slot(object_type *o_ptr);
-extern concptr mention_use(int i);
-extern concptr describe_use(int i);
-extern bool check_book_realm(const OBJECT_TYPE_VALUE book_tval, const OBJECT_SUBTYPE_VALUE book_sval);
-extern bool item_tester_okay(object_type *o_ptr);
-extern void display_inven(void);
-extern void display_equip(void);
-extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode);
-extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode);
-extern void toggle_inven_equip(void);
-extern bool can_get_item(void);
-extern bool get_item(OBJECT_IDX *cp, concptr pmt, concptr str, BIT_FLAGS mode);
-extern object_type *choose_object(OBJECT_IDX *idx, concptr q, concptr s, BIT_FLAGS option);
-PERCENTAGE breakage_chance(object_type *o_ptr, SPELL_IDX snipe_type);
-
-/* object2.c */
-extern void excise_object_idx(OBJECT_IDX o_idx);
-extern void delete_object_idx(OBJECT_IDX o_idx);
-extern void delete_object(POSITION y, POSITION x);
-extern void compact_objects(int size);
-extern void wipe_o_list(void);
-extern OBJECT_IDX o_pop(void);
-extern OBJECT_IDX get_obj_num(DEPTH level);
-extern void object_known(object_type *o_ptr);
-extern void object_aware(object_type *o_ptr);
-extern void object_tried(object_type *o_ptr);
-extern byte value_check_aux1(object_type *o_ptr);
-extern byte value_check_aux2(object_type *o_ptr);
-extern PRICE object_value(object_type *o_ptr);
-extern PRICE object_value_real(object_type *o_ptr);
-extern void distribute_charges(object_type *o_ptr, object_type *q_ptr, int amt);
-extern void reduce_charges(object_type *o_ptr, int amt);
-extern int object_similar_part(object_type *o_ptr, object_type *j_ptr);
-extern bool object_similar(object_type *o_ptr, object_type *j_ptr);
-extern void object_absorb(object_type *o_ptr, object_type *j_ptr);
-extern IDX lookup_kind(OBJECT_TYPE_VALUE tval, OBJECT_SUBTYPE_VALUE sval);
-extern void object_wipe(object_type *o_ptr);
-extern void object_prep(object_type *o_ptr, KIND_OBJECT_IDX k_idx);
-extern void object_copy(object_type *o_ptr, object_type *j_ptr);
-extern void apply_magic(object_type *o_ptr, DEPTH lev, BIT_FLAGS mode);
-extern bool make_object(object_type *j_ptr, BIT_FLAGS mode);
-extern void place_object(POSITION y, POSITION x, BIT_FLAGS mode);
-extern bool make_gold(object_type *j_ptr);
-extern void place_gold(POSITION y, POSITION x);
-extern OBJECT_IDX drop_near(object_type *o_ptr, PERCENTAGE chance, POSITION y, POSITION x);
-extern void inven_item_charges(INVENTORY_IDX item);
-extern void inven_item_describe(INVENTORY_IDX item);
-extern void inven_item_increase(INVENTORY_IDX item, ITEM_NUMBER num);
-extern void inven_item_optimize(INVENTORY_IDX item);
-extern void floor_item_charges(INVENTORY_IDX item);
-extern void floor_item_describe(INVENTORY_IDX item);
-extern void floor_item_increase(INVENTORY_IDX item, ITEM_NUMBER num);
-extern void floor_item_optimize(INVENTORY_IDX item);
-extern bool inven_carry_okay(object_type *o_ptr);
-extern bool object_sort_comp(object_type *o_ptr, s32b o_value, object_type *j_ptr);
-extern s16b inven_carry(object_type *o_ptr);
-extern INVENTORY_IDX inven_takeoff(INVENTORY_IDX item, ITEM_NUMBER amt);
-extern void inven_drop(INVENTORY_IDX item, ITEM_NUMBER amt);
-extern void combine_pack(void);
-extern void reorder_pack(void);
-extern void display_koff(KIND_OBJECT_IDX k_idx);
-extern void torch_flags(object_type *o_ptr, BIT_FLAGS *flgs);
-extern void torch_dice(object_type *o_ptr, DICE_NUMBER *dd, DICE_SID *ds);
-extern void torch_lost_fuel(object_type *o_ptr);
-extern concptr essence_name[];
-
/* racial.c */
extern void do_cmd_racial_power(void);
extern void browse_movie(void);
extern bool browsing_movie;
-#ifdef TRAVEL
-/* for travel */
-extern travel_type travel;
-#endif
-
extern void kamaenaoshi(INVENTORY_IDX item);