Hengband  2.2.1
autopick.h
[詳解]
1 #pragma once
2 
3 #define DO_AUTOPICK 0x01
4 #define DO_AUTODESTROY 0x02
5 #define DO_DISPLAY 0x04
6 #define DONT_AUTOPICK 0x08
7 #define ITEM_DISPLAY 0x10
8 #define DO_QUERY_AUTOPICK 0x20
9 
10 /*!
11  * @struct autopick_type
12  * @brief 自動拾い/破壊設定データの構造体 / A structure type for entry of auto-picker/destroyer
13  */
14 typedef struct {
15  concptr name; /*!< 自動拾い/破壊定義の名称一致基準 / Items which have 'name' as part of its name match */
16  concptr insc; /*!< 対象となったアイテムに自動で刻む内容 / Items will be auto-inscribed as 'insc' */
17  BIT_FLAGS flag[2]; /*!< キーワードに関する汎用的な条件フラグ / Misc. keyword to be matched */
18  byte action; /*!< 対象のアイテムを拾う/破壊/放置するかの指定フラグ / Auto-pickup or Destroy or Leave items */
19  byte dice; /*!< 武器のダイス値基準値 / Weapons which have more than 'dice' dice match */
20  byte bonus; /*!< アイテムのボーナス基準値 / Items which have more than 'bonus' magical bonus match */
22 
23 /*
24  * List for auto-picker/destroyer entries
25  */
26 extern int max_autopick;
27 extern int max_max_autopick;
29 
30 /* autopick.c */
31 extern void autopick_load_pref(bool disp_mes);
34 extern int is_autopick(object_type *o_ptr);
35 extern void autopick_alter_item(INVENTORY_IDX item, bool destroy);
36 extern void autopick_delayed_alter(void);
37 extern void autopick_pickup_items(grid_type *g_ptr);
38 extern bool autopick_autoregister(object_type *o_ptr);
39 extern void do_cmd_edit_autopick(void);
byte dice
武器のダイス値基準値 / Weapons which have more than 'dice' dice match
Definition: autopick.h:19
char * buf
Definition: chuukei.c:98
concptr insc
対象となったアイテムに自動で刻む内容 / Items will be auto-inscribed as 'insc'
Definition: autopick.h:16
void autopick_pickup_items(grid_type *g_ptr)
Definition: autopick.c:1723
concptr autopick_line_from_entry(autopick_type *entry)
Definition: autopick.c:905
byte bonus
アイテムのボーナス基準値 / Items which have more than 'bonus' magical bonus match
Definition: autopick.h:20
errr process_autopick_file_command(char *buf)
Definition: autopick.c:863
const char * concptr
文字列定数用ポインタ定義 / A simple pointer (to unmodifiable strings)
Definition: h-type.h:47
byte action
対象のアイテムを拾う/破壊/放置するかの指定フラグ / Auto-pickup or Destroy or Leave items
Definition: autopick.h:18
int max_max_autopick
自動拾い/破壊設定の限界数
Definition: autopick.c:229
Definition: object.h:189
autopick_type * autopick_list
自動拾い/破壊設定構造体のポインタ配列
Definition: autopick.c:230
void autopick_alter_item(INVENTORY_IDX item, bool destroy)
Definition: autopick.c:1701
int is_autopick(object_type *o_ptr)
Definition: autopick.c:1466
void autopick_delayed_alter(void)
Definition: autopick.c:1673
void autopick_load_pref(bool disp_mes)
Definition: autopick.c:785
u32b BIT_FLAGS
32ビットのフラグ配列の型定義
Definition: h-type.h:225
int errr
エラーコードの定義 / Error codes for function return values
Definition: h-type.h:57
s16b INVENTORY_IDX
ゲーム中の所持品ID型を定義
Definition: h-type.h:139
bool autopick_autoregister(object_type *o_ptr)
Definition: autopick.c:1917
自動拾い/破壊設定データの構造体 / A structure type for entry of auto-picker/destroyer
Definition: autopick.h:14
Definition: grid.h:48
concptr name
自動拾い/破壊定義の名称一致基準 / Items which have 'name' as part of its name match
Definition: autopick.h:15
int max_autopick
現在登録している自動拾い/破壊設定の数
Definition: autopick.c:228
void do_cmd_edit_autopick(void)
Definition: autopick.c:5975