プレイヤーのアイテムに関するコマンドの実装1 / Inventory commands [詳細]
#include "angband.h"
マクロ定義 | |
#define | STR_WIELD_RARM "You are wielding %s (%c) in your right hand." |
#define | STR_WIELD_LARM "You are wielding %s (%c) in your left hand." |
#define | STR_WIELD_ARMS "You are wielding %s (%c) with both hands." |
関数 | |
void | do_cmd_inven (void) |
持ち物一覧を表示するコマンドのメインルーチン / Display inventory [詳細] | |
void | do_cmd_equip (void) |
装備一覧を表示するコマンドのメインルーチン / Display equipment [詳細] | |
static bool | item_tester_hook_wear (object_type *o_ptr) |
オブジェクトを防具として装備できるかの判定 / The "wearable" tester [詳細] | |
static bool | item_tester_hook_mochikae (object_type *o_ptr) |
オブジェクトがどちらの手にも装備できる武器かどうかの判定 [詳細] | |
static bool | item_tester_hook_melee_weapon (object_type *o_ptr) |
オブジェクトが右手か左手に装備できる武器かどうかの判定 [詳細] | |
void | do_cmd_wield (void) |
装備するコマンドのメインルーチン / Wield or wear a single item from the pack or floor [詳細] | |
void | kamaenaoshi (int item) |
持ち替え処理 [詳細] | |
void | do_cmd_takeoff (void) |
装備を外すコマンドのメインルーチン / Take off an item [詳細] | |
void | do_cmd_drop (void) |
アイテムを落とすコマンドのメインルーチン / Drop an item [詳細] | |
static bool | high_level_book (object_type *o_ptr) |
オブジェクトが高位の魔法書かどうかを判定する [詳細] | |
void | do_cmd_destroy (void) |
アイテムを破壊するコマンドのメインルーチン / Destroy an item [詳細] | |
void | do_cmd_observe (void) |
アイテムを調査するコマンドのメインルーチン / Observe an item which has been identify-ed [詳細] | |
void | do_cmd_uninscribe (void) |
アイテムの銘を消すコマンドのメインルーチン Remove the inscription from an object XXX Mention item (when done)? [詳細] | |
void | do_cmd_inscribe (void) |
アイテムの銘を刻むコマンドのメインルーチン Inscribe an object with a comment [詳細] | |
static bool | item_tester_refill_lantern (object_type *o_ptr) |
オブジェクトがランタンの燃料になるかどうかを判定する An "item_tester_hook" for refilling lanterns [詳細] | |
static void | do_cmd_refill_lamp (void) |
ランタンに燃料を加えるコマンドのメインルーチン Refill the players lamp (from the pack or floor) [詳細] | |
static bool | item_tester_refill_torch (object_type *o_ptr) |
オブジェクトが松明に束ねられるかどうかを判定する An "item_tester_hook" for refilling torches [詳細] | |
static void | do_cmd_refill_torch (void) |
松明を束ねるコマンドのメインルーチン Refuel the players torch (from the pack or floor) [詳細] | |
void | do_cmd_refill (void) |
燃料を補充するコマンドのメインルーチン Refill the players lamp, or restock his torches [詳細] | |
void | do_cmd_target (void) |
ターゲットを設定するコマンドのメインルーチン Target command [詳細] | |
void | do_cmd_look (void) |
周囲を見渡すコマンドのメインルーチン Look command [詳細] | |
void | do_cmd_locate (void) |
位置を確認するコマンドのメインルーチン Allow the player to examine other sectors on the map [詳細] | |
bool | ang_sort_comp_hook (vptr u, vptr v, int a, int b) |
モンスター種族情報を特定の基準によりソートするための比較処理 Sorting hook – Comp function – see below [詳細] | |
void | ang_sort_swap_hook (vptr u, vptr v, int a, int b) |
モンスター種族情報を特定の基準によりソートするためのスワップ処理 Sorting hook – Swap function – see below [詳細] | |
void | do_cmd_query_symbol (void) |
モンスターの思い出を見るコマンドのメインルーチン Identify a character, allow recall of monsters [詳細] | |
変数 | |
bool | select_ring_slot = FALSE |
See cmd5.c. [詳細] | |
プレイヤーのアイテムに関するコマンドの実装1 / Inventory commands
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.
#define STR_WIELD_ARMS "You are wielding %s (%c) with both hands." |
#define STR_WIELD_LARM "You are wielding %s (%c) in your left hand." |
#define STR_WIELD_RARM "You are wielding %s (%c) in your right hand." |
モンスター種族情報を特定の基準によりソートするための比較処理 Sorting hook – Comp function – see below
u | モンスター種族情報の入れるポインタ |
v | 条件基準ID |
a | 比較するモンスター種族のID1 |
b | 比較するモンスター種族のID2 |
モンスター種族情報を特定の基準によりソートするためのスワップ処理 Sorting hook – Swap function – see below
u | モンスター種族情報の入れるポインタ |
v | 未使用 |
a | スワップするモンスター種族のID1 |
b | スワップするモンスター種族のID2 |
We use "u" to point to array of monster indexes, and "v" to select the type of sorting to perform.
void do_cmd_destroy | ( | void | ) |
アイテムを破壊するコマンドのメインルーチン / Destroy an item
void do_cmd_drop | ( | void | ) |
アイテムを落とすコマンドのメインルーチン / Drop an item
void do_cmd_equip | ( | void | ) |
装備一覧を表示するコマンドのメインルーチン / Display equipment
void do_cmd_inscribe | ( | void | ) |
アイテムの銘を刻むコマンドのメインルーチン Inscribe an object with a comment
void do_cmd_inven | ( | void | ) |
持ち物一覧を表示するコマンドのメインルーチン / Display inventory
void do_cmd_locate | ( | void | ) |
位置を確認するコマンドのメインルーチン Allow the player to examine other sectors on the map
void do_cmd_look | ( | void | ) |
周囲を見渡すコマンドのメインルーチン Look command
void do_cmd_observe | ( | void | ) |
アイテムを調査するコマンドのメインルーチン / Observe an item which has been identify-ed
void do_cmd_query_symbol | ( | void | ) |
モンスターの思い出を見るコマンドのメインルーチン Identify a character, allow recall of monsters
Several "special" responses recall "multiple" monsters: ^A (all monsters) ^U (all unique monsters) ^N (all non-unique monsters)
The responses may be sorted in several ways, see below.
Note that the player ghosts are ignored. XXX XXX XXX
void do_cmd_refill | ( | void | ) |
燃料を補充するコマンドのメインルーチン Refill the players lamp, or restock his torches
|
static |
ランタンに燃料を加えるコマンドのメインルーチン Refill the players lamp (from the pack or floor)
|
static |
松明を束ねるコマンドのメインルーチン Refuel the players torch (from the pack or floor)
void do_cmd_takeoff | ( | void | ) |
装備を外すコマンドのメインルーチン / Take off an item
void do_cmd_target | ( | void | ) |
ターゲットを設定するコマンドのメインルーチン Target command
void do_cmd_uninscribe | ( | void | ) |
アイテムの銘を消すコマンドのメインルーチン Remove the inscription from an object XXX Mention item (when done)?
void do_cmd_wield | ( | void | ) |
装備するコマンドのメインルーチン / Wield or wear a single item from the pack or floor
|
static |
オブジェクトが高位の魔法書かどうかを判定する
o_ptr | 判定したいオブジェクトの構造体参照ポインタ |
|
static |
オブジェクトが右手か左手に装備できる武器かどうかの判定
o_ptr | 判定するオブジェクトの構造体参照ポインタ |
|
static |
オブジェクトがどちらの手にも装備できる武器かどうかの判定
o_ptr | 判定するオブジェクトの構造体参照ポインタ |
|
static |
オブジェクトを防具として装備できるかの判定 / The "wearable" tester
o_ptr | 判定するオブジェクトの構造体参照ポインタ |
|
static |
オブジェクトがランタンの燃料になるかどうかを判定する An "item_tester_hook" for refilling lanterns
o_ptr | 判定したいオブジェクトの構造体参照ポインタ |
|
static |
オブジェクトが松明に束ねられるかどうかを判定する An "item_tester_hook" for refilling torches
o_ptr | 判定したいオブジェクトの構造体参照ポインタ |
void kamaenaoshi | ( | int | item | ) |
持ち替え処理
item | 持ち替えを行いたい装備部位ID |