|
void | reset_visuals (void) |
| オブジェクト、地形の表示シンボルなど初期化する / Reset the "visual" lists [詳細]
|
|
void | object_flags (object_type *o_ptr, u32b flgs[TR_FLAG_SIZE]) |
| オブジェクトのフラグ類を配列に与える Obtain the "flags" for an item [詳細]
|
|
void | object_flags_known (object_type *o_ptr, u32b flgs[TR_FLAG_SIZE]) |
| オブジェクトの明示されているフラグ類を取得する Obtain the "flags" for an item which are known to the player [詳細]
|
|
static cptr | item_activation_dragon_breath (object_type *o_ptr) |
| オブジェクトの発動効果名称を返す(サブルーチン/ブレス) [詳細]
|
|
static cptr | item_activation_aux (object_type *o_ptr) |
| オブジェクトの発動効果名称を返す(サブルーチン/汎用) [詳細]
|
|
cptr | item_activation (object_type *o_ptr) |
| オブジェクトの発動効果名称を返す(メインルーチン) / Determine the "Activation" (if any) for an artifact Return a string, or NULL for "no activation" [詳細]
|
|
bool | screen_object (object_type *o_ptr, u32b mode) |
| オブジェクトの*鑑定*内容を詳述して表示する / Describe a "fully identified" item [詳細]
|
|
char | index_to_label (int i) |
| オブジェクト選択時の選択アルファベットラベルを返す / Convert an inventory index into a one character label [詳細]
|
|
s16b | label_to_inven (int c) |
| 選択アルファベットラベルからプレイヤーの所持オブジェクトIDを返す / Convert a label into the index of an item in the "inven" [詳細]
|
|
static bool | is_ring_slot (int i) |
| プレイヤーの所持/装備オブジェクトIDが指輪枠かを返す / [詳細]
|
|
s16b | label_to_equip (int c) |
| 選択アルファベットラベルからプレイヤーの装備オブジェクトIDを返す / Convert a label into the index of a item in the "equip" [詳細]
|
|
s16b | wield_slot (object_type *o_ptr) |
| オブジェクトの該当装備部位IDを返す / Determine which equipment slot (if any) an item likes [詳細]
|
|
cptr | mention_use (int i) |
| 所持/装備オブジェクトIDの部位表現を返す / Return a string mentioning how a given item is carried [詳細]
|
|
cptr | describe_use (int i) |
| 所持/装備オブジェクトIDの現在の扱い方の状態表現を返す / Return a string describing how a given item is being worn. [詳細]
|
|
bool | check_book_realm (const byte book_tval, const byte book_sval) |
| tval/sval指定のベースアイテムがプレイヤーの使用可能な魔法書かどうかを返す / Hack: Check if a spellbook is one of the realms we can use. [詳細]
|
|
bool | item_tester_okay (object_type *o_ptr) |
| アイテムがitem_tester_hookグローバル関数ポインタの条件を満たしているかを返す汎用関数 Check an item against the item tester info [詳細]
|
|
void | display_inven (void) |
| 所持アイテム一覧を表示する / Choice window "shadow" of the "show_inven()" function [詳細]
|
|
void | display_equip (void) |
| 装備アイテム一覧を表示する / Choice window "shadow" of the "show_equip()" function [詳細]
|
|
static bool | get_tag (int *cp, char tag, int mode) |
| 所持/装備オブジェクトに選択タグを与える/タグに該当するオブジェクトがあるかを返す / Find the "first" inventory object with the given "tag". [詳細]
|
|
static bool | get_tag_floor (int *cp, char tag, int floor_list[], int floor_num) |
| 床オブジェクトに選択タグを与える/タグに該当するオブジェクトがあるかを返す / Find the "first" inventory object with the given "tag". [詳細]
|
|
static void | prepare_label_string (char *label, int mode) |
| タグIDにあわせてタグアルファベットのリストを返す / Move around label characters with correspond tags [詳細]
|
|
static void | prepare_label_string_floor (char *label, int floor_list[], int floor_num) |
| タグIDにあわせてタグアルファベットのリストを返す(床上アイテム用) / Move around label characters with correspond tags (floor version) [詳細]
|
|
int | show_inven (int target_item) |
| 所持アイテムの表示を行う / Display the inventory. [詳細]
|
|
int | show_equip (int target_item) |
| 装備アイテムの表示を行う / Display the equipment. [詳細]
|
|
void | toggle_inven_equip (void) |
| サブウィンドウに所持品、装備品リストの表示を行う / Flip "inven" and "equip" in any sub-windows [詳細]
|
|
static bool | verify (cptr prompt, int item) |
| 選択したアイテムの確認処理の補助 / Verify the choice of an item. [詳細]
|
|
static bool | get_item_allow (int item) |
| 選択したアイテムの確認処理のメインルーチン / [詳細]
|
|
static bool | get_item_okay (int i) |
| プレイヤーの所持/装備オブジェクトが正規のものかを返す / Auxiliary function for "get_item()" – test an index [詳細]
|
|
bool | can_get_item (void) |
| プレイヤーがオブジェクトを拾うことができる状態かを返す / Determine whether get_item() can get some item or not [詳細]
|
|
bool | get_item (int *cp, cptr pmt, cptr str, int mode) |
| オブジェクト選択の汎用関数 / Let the user select an item, save its "index" [詳細]
|
|
int | scan_floor (int *items, int y, int x, int mode) |
| 床下に落ちているオブジェクトの数を返す / scan_floor [詳細]
|
|
int | show_floor (int target_item, int y, int x, int *min_width) |
| 床下に落ちているアイテムの一覧を返す / Display a list of the items on the floor at the given location. [詳細]
|
|
bool | get_item_floor (int *cp, cptr pmt, cptr str, int mode) |
| オブジェクト選択の汎用関数(床上アイテム用) / Let the user select an item, save its "index" [詳細]
|
|
static bool | py_pickup_floor_aux (void) |
| 床上のアイテムを拾う選択用サブルーチン [詳細]
|
|
void | py_pickup_floor (bool pickup) |
| 床上のアイテムを拾うメイン処理 [詳細]
|
|
オブジェクトの実装 / Object code, part 1
- 日付
- 2014/01/10
- 作者
- Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
This software may be copied and distributed for educational, research,
and not for profit purposes provided that this copyright and statement
are included in all such copies. Other copyrights may also apply.
2014 Deskull rearranged comment for Doxygen.
オブジェクト選択の汎用関数 / Let the user select an item, save its "index"
- 引数
-
cp | 選択したオブジェクトのIDを返す。 |
pmt | 選択目的のメッセージ |
str | 選択できるオブジェクトがない場合のキャンセルメッセージ |
mode | オプションフラグ |
- 戻り値
- プレイヤーによりアイテムが選択されたならTRUEを返す。/ Return TRUE only if an acceptable item was chosen by the user.
The selected item must satisfy the "item_tester_hook()" function,
if that hook is set, and the "item_tester_tval", if that value is set.
All "item_tester" restrictions are cleared before this function returns.
The user is allowed to choose acceptable items from the equipment,
inventory, or floor, respectively, if the proper flag was given,
and there are any acceptable items in that location.
The equipment or inventory are displayed (even if no acceptable
items are in that location) if the proper flag was given.
If there are no acceptable items available anywhere, and "str" is
not NULL, then it will be used as the text of a warning message
before the function returns.
Note that the user must press "-" to specify the item on the floor,
and there is no way to "examine" the item on the floor, while the
use of "capital" letters will "examine" an inventory/equipment item,
and prompt for its use.
If a legal item is selected from the inventory, we save it in "cp"
directly (0 to 35), and return TRUE.
If a legal item is selected from the floor, we save it in "cp" as
a negative (-1 to -511), and return TRUE.
If no item is available, we do nothing to "cp", and we display a
warning message, using "str" if available, and return FALSE.
If no item is selected, we do nothing to "cp", and return FALSE.
Global "p_ptr->command_new" is used when viewing the inventory or equipment
to allow the user to enter a command while viewing those screens, and
also to induce "auto-enter" of stores, and other such stuff.
Global "p_ptr->command_see" may be set before calling this function to start
out in "browse" mode. It is cleared before this function returns.
Global "p_ptr->command_wrk" is used to choose between equip/inven listings.
If it is TRUE then we are viewing inventory, else equipment.
We always erase the prompt when we are done, leaving a blank line,
or a warning message, if appropriate, if no items are available.