<ClCompile Include="..\..\src\cmd-zaprod.c" />\r
<ClCompile Include="..\..\src\cmd-zapwand.c" />\r
<ClInclude Include="..\..\src\artifact.h" />\r
+ <ClInclude Include="..\..\src\autopick.h" />\r
<ClInclude Include="..\..\src\avatar.h" />\r
<ClInclude Include="..\..\src\birth.h" />\r
<ClInclude Include="..\..\src\bldg.h" />\r
<ClInclude Include="..\..\src\monsterrace.h">
<Filter>monster</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\autopick.h">
+ <Filter>object</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\angband.rc" />
hengband_SOURCES = \
artifact.c artifact.h \
\
- angband.h autopick.c \
+ angband.h autopick.c autopick.h\
\
avatar.h avatar.c birth.c birth.h \
\
#include "angband.h"
#include "util.h"
+#include "autopick.h"
#include "mind.h"
/*
+ * 自動拾い/破壊設定のリストに関する変数 / List for auto-picker/destroyer entries
+ */
+int max_autopick = 0; /*!< 現在登録している自動拾い/破壊設定の数 */
+int max_max_autopick = 0; /*!< 自動拾い/破壊設定の限界数 */
+autopick_type *autopick_list = NULL; /*!< 自動拾い/破壊設定構造体のポインタ配列 */
+
+/*
* A function to create new entry
*/
static bool autopick_new_entry(autopick_type *entry, concptr str, bool allow_default)
--- /dev/null
+#pragma once
+
+/*!
+ * @struct autopick_type
+ * @brief 自動拾い/破壊設定データの構造体 / A structure type for entry of auto-picker/destroyer
+ */
+typedef struct {
+ concptr name; /*!< 自動拾い/破壊定義の名称一致基準 / Items which have 'name' as part of its name match */
+ concptr insc; /*!< 対象となったアイテムに自動で刻む内容 / Items will be auto-inscribed as 'insc' */
+ BIT_FLAGS flag[2]; /*!< キーワードに関する汎用的な条件フラグ / Misc. keyword to be matched */
+ byte action; /*!< 対象のアイテムを拾う/破壊/放置するかの指定フラグ / Auto-pickup or Destroy or Leave items */
+ byte dice; /*!< 武器のダイス値基準値 / Weapons which have more than 'dice' dice match */
+ byte bonus; /*!< アイテムのボーナス基準値 / Items which have more than 'bonus' magical bonus match */
+} autopick_type;
+
+/*
+ * List for auto-picker/destroyer entries
+ */
+extern int max_autopick;
+extern int max_max_autopick;
+extern autopick_type *autopick_list;
+
+/* 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);
#include "world.h"
#include "objectkind.h"
#include "monsterrace.h"
+#include "autopick.h"
/*!
* オートローラーの内容を描画する間隔 /
#include "floor.h"
#include "floor-events.h"
#include "floor-save.h"
+#include "autopick.h"
#include "objectkind.h"
#include "object-boost.h"
#include "object-flavor.h"
#include "shoot.h"
#include "view-mainwindow.h"
#include "monsterrace.h"
+#include "autopick.h"
/*
#include "angband.h"
#include "util.h"
+#include "autopick.h"
#include "selfinfo.h"
#include "cmd-activate.h"
#include "view-mainwindow.h"
#include "spells.h"
#include "objectkind.h"
+#include "autopick.h"
/*!
#include "player-status.h"
#include "cmd-basic.h"
#include "objectkind.h"
+#include "autopick.h"
#include "cmd-basic.h"
#include "view-mainwindow.h"
#include "floor.h"
+#include "autopick.h"
/*!
* @brief
#include "angband.h"
#include "util.h"
+#include "autopick.h"
#include "birth.h"
#include "cmd-pet.h"
#include "files.h"
#include "player-effects.h"
#include "scores.h"
+#include "autopick.h"
static bool load = TRUE; /*!<ロード処理中の分岐フラグ*/
static int wild_regen = 20; /*!<広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)*/
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 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);
#include "dungeon.h"
#include "melee.h"
#include "objectkind.h"
+#include "autopick.h"
/*
#include "monster-spell.h"
#include "world.h"
#include "objectkind.h"
+#include "autopick.h"
/*!
* @brief プレイヤーの継続行動を設定する。
#include "angband.h"
#include "util.h"
+#include "autopick.h"
#include "dungeon.h"
#include "floor.h"
#include "melee.h"
#include "view-mainwindow.h"
#include "world.h"
#include "objectkind.h"
+#include "autopick.h"
#ifdef TRAVEL
#include "player-class.h"
#include "objectkind.h"
#include "monsterrace.h"
+#include "autopick.h"
/*!
* @var horror_desc
#include "player-effects.h"
#include "player-class.h"
#include "objectkind.h"
+#include "autopick.h"
typedef struct
#include "cmd-pet.h"
#include "floor.h"
#include "trap.h"
+#include "autopick.h"
#include "object-curse.h"
#include "player-damage.h"
#include "player-effects.h"
#include "spells-status.h"
#include "spells-floor.h"
#include "realm-hex.h"
+#include "autopick.h"
#include "object-flavor.h"
#include "object-hook.h"
#include "monster-status.h"
#include "wild.h"
#include "world.h"
#include "objectkind.h"
+#include "autopick.h"
/*! テレポート先探索の試行数 / Maximum number of tries for teleporting */
#include "mind.h"
#include "world.h"
#include "objectkind.h"
+#include "autopick.h"
#define MIN_STOCK 12
}
feat_prob;
-
-/*!
- * @struct autopick_type
- * @brief 自動拾い/破壊設定データの構造体 / A structure type for entry of auto-picker/destroyer
- */
-typedef struct {
- concptr name; /*!< 自動拾い/破壊定義の名称一致基準 / Items which have 'name' as part of its name match */
- concptr insc; /*!< 対象となったアイテムに自動で刻む内容 / Items will be auto-inscribed as 'insc' */
- BIT_FLAGS flag[2]; /*!< キーワードに関する汎用的な条件フラグ / Misc. keyword to be matched */
- byte action; /*!< 対象のアイテムを拾う/破壊/放置するかの指定フラグ / Auto-pickup or Destroy or Leave items */
- byte dice; /*!< 武器のダイス値基準値 / Weapons which have more than 'dice' dice match */
- byte bonus; /*!< アイテムのボーナス基準値 / Items which have more than 'bonus' magical bonus match */
-} autopick_type;
-
typedef struct {
int flag;
int type;
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
*/
#include "angband.h"
#include "util.h"
+#include "autopick.h"
#include "files.h"
#include "world.h"