OSDN Git Service

[Refactor] #37353 quest_text と quest_text_line を quest.c/h へ移動.
[hengband/hengband.git] / src / variable.c
index ef0a708..b5a9992 100644 (file)
@@ -36,13 +36,6 @@ concptr macro_trigger_keycode[2][MAX_MACRO_TRIG];  /*!< マクロの内容 */
 int level_up = 0; /*!< レベルアップの際に遅延してcalc_mana()関数上で上昇量を表示するかどうかの判定フラグ */
 
 
-/* 
- * 自動拾い/破壊設定のリストに関する変数 / List for auto-picker/destroyer entries
- */
-int max_autopick = 0; /*!< 現在登録している自動拾い/破壊設定の数 */
-int max_max_autopick = 0; /*!< 自動拾い/破壊設定の限界数 */
-autopick_type *autopick_list = NULL; /*!< 自動拾い/破壊設定構造体のポインタ配列 */
-
 /*
  * Savefile version
  */
@@ -91,9 +84,6 @@ bool character_xtra;          /* The game is in an icky startup mode */
 
 bool creating_savefile;                /* New savefile is currently created */
 
-u32b seed_flavor;              /* Hack -- consistent object colors */
-u32b seed_town;                        /* Hack -- consistent town layout */
-
 s16b command_cmd;              /* Current "Angband Command" */
 
 COMMAND_ARG command_arg;       /*!< 各種コマンドの汎用的な引数として扱う / Gives argument of current command */
@@ -139,16 +129,6 @@ bool repair_monsters;      /* Hack -- optimize detect monsters */
 bool repair_objects;   /* Hack -- optimize detect objects */
 
 bool is_loading_now;   /*!< ロード直後にcalc_bonus()時の徳変化、及びsanity_blast()による異常を抑止する */
-bool hack_mutation;
-
-s16b inven_cnt; /* Number of items in inventory */
-s16b equip_cnt; /* Number of items in equipment */
-
-OBJECT_IDX o_max = 1; /* Number of allocated objects */
-OBJECT_IDX o_cnt = 0; /* Number of live objects */
-
-MONSTER_IDX m_max = 1; /* Number of allocated monsters */
-MONSTER_IDX m_cnt = 0; /* Number of live monsters */
 
 MONSTER_IDX hack_m_idx = 0;    /* Hack -- see "process_monsters()" */
 MONSTER_IDX hack_m_idx_ii = 0;
@@ -160,15 +140,6 @@ int total_friends = 0;
 int leaving_quest = 0;
 bool reinit_wilderness = FALSE;
 
-
-
-/*
- * Dungeon variables
- */
-
-bool closing_flag;             /* Dungeon is closing */
-
-
 /*
  * Dungeon size info
  */
@@ -431,26 +402,10 @@ const concptr angband_music_basic_name[MUSIC_BASIC_MAX] =
 
 
 /*
- * The array of "current_floor_ptr->grid_array grids" [MAX_WID][MAX_HGT].
- * Not completely allocated, that would be inefficient
- * Not completely hardcoded, that would overflow memory
- */
-floor_type floor_info;
-floor_type *current_floor_ptr = &floor_info;
-
-/*
- * The array of saved floors
- */
-saved_floor_type saved_floors[MAX_SAVED_FLOORS];
-
-/*
  * Number of floor_id used from birth
  */
 FLOOR_IDX max_floor_id;
 
-world_type world;
-world_type *current_world_ptr = &world;
-
 /*
  * Sign for current process used in temporal files.
  * Actually it is the start time of current process.
@@ -458,45 +413,6 @@ world_type *current_world_ptr = &world;
 u32b saved_floor_file_sign;
 
 /*
- * Maximum number of towns
- */
-TOWN_IDX max_towns;
-
-/*
- * The towns [max_towns]
- */
-town_type *town_info;
-
-
-/*
- * The player's inventory [INVEN_TOTAL]
- */
-object_type *inventory;
-
-
-/*
- * The size of "alloc_kind_table" (at most max_k_idx * 4)
- */
-s16b alloc_kind_size;
-
-/*
- * The entries in the "kind allocator table"
- */
-alloc_entry *alloc_kind_table;
-
-
-/*
- * The size of "alloc_race_table" (at most max_r_idx)
- */
-s16b alloc_race_size;
-
-/*
- * The entries in the "race allocator table"
- */
-alloc_entry *alloc_race_table;
-
-
-/*
  * Specify attr/char pairs for visual special effects
  * Be sure to use "index & 0x7F" to avoid illegal access
  */
@@ -505,7 +421,7 @@ SYMBOL_CODE misc_to_char[256];
 
 
 /*
- * Specify attr/char pairs for inventory items (by tval)
+ * Specify attr/char pairs for p_ptr->inventory_list items (by tval)
  * Be sure to use "index & 0x7F" to avoid illegal access
  */
 TERM_COLOR tval_to_attr[128];
@@ -531,110 +447,6 @@ player_type p_body;
  */
 player_type *p_ptr = &p_body;
 
-/*
- * Pointer to the player tables
- * (sex, race, class, magic)
- */
-const player_sex *sp_ptr;
-const player_race *rp_ptr;
-const player_class *cp_ptr;
-const player_seikaku *ap_ptr;
-const player_magic *mp_ptr;
-
-
-/*
- * The last character rolled,
- * holded for quick start
- */
-birther previous_char;
-
-
-/*
- * The vault generation arrays
- */
-vault_type *v_info;
-char *v_name;
-char *v_text;
-
-/*
- * The skill table
- */
-skill_table *s_info;
-
-/*
- * The magic info
- */
-player_magic *m_info;
-
-/*
- * The terrain feature arrays
- */
-feature_type *f_info;
-char *f_name;
-char *f_tag;
-
-/*
- * The object kind arrays
- */
-object_kind *k_info;
-char *k_name;
-char *k_text;
-
-/*
- * The artifact arrays
- */
-artifact_type *a_info;
-char *a_name;
-char *a_text;
-
-/*
- * The ego-item arrays
- */
-ego_item_type *e_info;
-char *e_name;
-char *e_text;
-
-
-/*
- * The monster race arrays
- */
-monster_race *r_info;
-char *r_name;
-char *r_text;
-
-
-/*
- * The dungeon arrays
- */
-dungeon_type *d_info;
-char *d_name;
-char *d_text;
-
-
-concptr ANGBAND_SYS = "xxx"; //!< Hack -- The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file
-
-
-#ifdef JP
-concptr ANGBAND_KEYBOARD = "JAPAN"; //!< Hack -- The special Angband "Keyboard Suffix" This variable is used to choose an appropriate macro-trigger definition
-#else
-concptr ANGBAND_KEYBOARD = "0";
-#endif
-
-concptr ANGBAND_GRAF = "ascii"; //!< Hack -- The special Angband "Graphics Suffix" This variable is used to choose an appropriate "graf-xxx" file
-concptr ANGBAND_DIR; //!< Path name: The main "lib" directory This variable is not actually used anywhere in the code
-concptr ANGBAND_DIR_APEX; //!< High score files (binary) These files may be portable between platforms
-concptr ANGBAND_DIR_BONE; //!< Bone files for player ghosts (ascii) These files are portable between platforms
-concptr ANGBAND_DIR_DATA; //!< Binary image files for the "*_info" arrays (binary) These files are not portable between platforms
-concptr ANGBAND_DIR_EDIT; //!< Textual template files for the "*_info" arrays (ascii) These files are portable between platforms
-concptr ANGBAND_DIR_SCRIPT; //!< Script files These files are portable between platforms.
-concptr ANGBAND_DIR_FILE; //!< Various extra files (ascii) These files may be portable between platforms
-concptr ANGBAND_DIR_HELP; //!< Help files (normal) for the online help (ascii) These files are portable between platforms
-concptr ANGBAND_DIR_INFO; //!< Help files (spoilers) for the online help (ascii) These files are portable between platforms
-concptr ANGBAND_DIR_PREF; //!< Default user "preference" files (ascii) These files are rarely portable between platforms
-concptr ANGBAND_DIR_SAVE; //!< Savefiles for current characters (binary)
-concptr ANGBAND_DIR_USER; //!< User "preference" files (ascii) These files are rarely portable between platforms
-concptr ANGBAND_DIR_XTRA; //!< Various extra files (binary) These files are rarely portable between platforms
-
 
 /*
  * Here is a "pseudo-hook" used during calls to "get_item()" and
@@ -665,27 +477,6 @@ monsterrace_hook_type get_mon_num2_hook;
 bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
 
 /*
- * Buildings
- */
-building_type building[MAX_BLDG];
-
-
-/*
- * Maximum number of quests
- */
-QUEST_IDX max_q_idx;
-
-/*
- * Maximum number of monsters in r_info.txt
- */
-MONRACE_IDX max_r_idx;
-
-/*
- * Maximum number of items in k_info.txt
- */
-KIND_OBJECT_IDX max_k_idx;
-
-/*
  * Maximum number of vaults in v_info.txt
  */
 VAULT_IDX max_v_idx;
@@ -696,11 +487,6 @@ VAULT_IDX max_v_idx;
 FEAT_IDX max_f_idx;
 
 /*
- * Maximum number of artifacts in a_info.txt
- */
-ARTIFACT_IDX max_a_idx;
-
-/*
  * Maximum number of ego-items in e_info.txt
  */
 EGO_IDX max_e_idx;
@@ -710,23 +496,6 @@ EGO_IDX max_e_idx;
  */
 DUNGEON_IDX max_d_idx;
 
-
-
-/*
- * Quest info
- */
-quest_type *quest;
-
-/*
- * Quest text
- */
-char quest_text[10][80];
-
-/*
- * Current line of the quest text
- */
-int quest_text_line;
-
 /*
  * Flags for initialization
  */
@@ -771,96 +540,12 @@ bool generate_encounter;
 
 concptr screen_dump = NULL;
 
-/*** Terrain feature variables ***/
-
-/* Nothing */
-FEAT_IDX feat_none;
-
-/* Floor */
-FEAT_IDX feat_floor;
-
-/* Objects */
-FEAT_IDX feat_glyph;
-FEAT_IDX feat_explosive_rune;
-FEAT_IDX feat_mirror;
-
-/* Stairs */
-FEAT_IDX feat_up_stair;
-FEAT_IDX feat_down_stair;
-FEAT_IDX feat_entrance;
-
-/* Special traps */
-FEAT_IDX feat_trap_open;
-FEAT_IDX feat_trap_armageddon;
-FEAT_IDX feat_trap_piranha;
-
-/* Rubble */
-FEAT_IDX feat_rubble;
-
-/* Seams */
-FEAT_IDX feat_magma_vein;
-FEAT_IDX feat_quartz_vein;
-
-/* Walls */
-FEAT_IDX feat_granite;
-FEAT_IDX feat_permanent;
-
-/* Glass floor */
-FEAT_IDX feat_glass_floor;
-
-/* Glass walls */
-FEAT_IDX feat_glass_wall;
-FEAT_IDX feat_permanent_glass_wall;
-
-/* Pattern */
-FEAT_IDX feat_pattern_start;
-FEAT_IDX feat_pattern_1;
-FEAT_IDX feat_pattern_2;
-FEAT_IDX feat_pattern_3;
-FEAT_IDX feat_pattern_4;
-FEAT_IDX feat_pattern_end;
-FEAT_IDX feat_pattern_old;
-FEAT_IDX feat_pattern_exit;
-FEAT_IDX feat_pattern_corrupted;
-
-/* Various */
-FEAT_IDX feat_black_market;
-FEAT_IDX feat_town;
-
-/* Terrains */
-FEAT_IDX feat_deep_water;
-FEAT_IDX feat_shallow_water;
-FEAT_IDX feat_deep_lava;
-FEAT_IDX feat_shallow_lava;
-FEAT_IDX feat_heavy_cold_zone;
-FEAT_IDX feat_cold_zone;
-FEAT_IDX feat_heavy_electrical_zone;
-FEAT_IDX feat_electrical_zone;
-FEAT_IDX feat_deep_acid_puddle;
-FEAT_IDX feat_shallow_acid_puddle;
-FEAT_IDX feat_deep_poisonous_puddle;
-FEAT_IDX feat_shallow_poisonous_puddle;
-FEAT_IDX feat_dirt;
-FEAT_IDX feat_grass;
-FEAT_IDX feat_flower;
-FEAT_IDX feat_brake;
-FEAT_IDX feat_tree;
-FEAT_IDX feat_mountain;
-FEAT_IDX feat_swamp;
-
-/* Unknown grid (not detected) */
-FEAT_IDX feat_undetected;
 
 /*
  * Which dungeon ?
  */
 DEPTH *max_dlv;
 
-FEAT_IDX feat_wall_outer;
-FEAT_IDX feat_wall_inner;
-FEAT_IDX feat_wall_solid;
-FEAT_IDX feat_ground_type[100], feat_wall_type[100];
-
 COMMAND_CODE now_message;
 bool use_menu;
 
@@ -874,10 +559,6 @@ int server_port;
 /* for movie */
 bool browsing_movie;
 
-#ifdef TRAVEL
-/* for travel */
-travel_type travel;
-#endif
 
 /* for snipers */
 bool reset_concent = FALSE;   /* Concentration reset flag */