* @param count 魔法領域の数
* @return 選んだ魔法領域で良ければTRUE、再選択ならばFALSE
*/
-static bool check_realm_selection(int count)
+static bool check_realm_selection(player_type *creature_ptr, int count)
{
if (count < 2) {
prt(_("何かキーを押してください", "Hit any key."), 0, 0);
(void)inkey();
prt("", 0, 0);
return TRUE;
- } else if (get_check_strict(_("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
+ } else if (get_check_strict(creature_ptr, _("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
return TRUE;
return FALSE;
}
}
- if (check_realm_selection(count))
+ if (check_realm_selection(creature_ptr, count))
break;
}
}
}
- if (check_realm_selection(count))
+ if (check_realm_selection(creature_ptr, count))
break;
}
t += strlen(t) + 1;
}
}
- if (get_check_strict(_("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
+ if (get_check_strict(creature_ptr, _("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
break;
clear_from(10);
}
}
- if (get_check_strict(_("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
+ if (get_check_strict(creature_ptr, _("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
break;
c_put_str(TERM_WHITE, " ", 5, 15);
}
}
- if (get_check_strict(_("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
+ if (get_check_strict(creature_ptr, _("よろしいですか?", "Are you sure? "), CHECK_DEFAULT_Y))
break;
c_put_str(TERM_L_BLUE, creature_ptr->name, 1, 34);
if (!over_exert) return;
/* Verify */
- if (!get_check_strict(_("それでも挑戦しますか? ", "Attempt it anyway? "), CHECK_OKAY_CANCEL)) return;
+ if (!get_check_strict(caster_ptr, _("それでも挑戦しますか? ", "Attempt it anyway? "), CHECK_OKAY_CANCEL)) return;
}
/* Spell failure chance */
if (current_world_ptr->total_winner)
{
/* Verify */
- if (!get_check_strict(_("引退しますか? ", "Do you want to retire? "), CHECK_NO_HISTORY)) return;
+ if (!get_check_strict(creature_ptr, _("引退しますか? ", "Do you want to retire? "), CHECK_NO_HISTORY)) return;
}
/* Verify Suicide */
do
{
while (!get_string(_("*勝利*メッセージ: ", "*Winning* message: "), buf, sizeof buf));
- } while (!get_check_strict(_("よろしいですか?", "Are you sure? "), CHECK_NO_HISTORY));
+ } while (!get_check_strict(creature_ptr, _("よろしいですか?", "Are you sure? "), CHECK_NO_HISTORY));
if (buf[0])
{
if (send_world_score(player_ptr, do_send, update_playtime, display_player, map_name))
return;
- if (!get_check_strict(_("後でスコアを登録するために待機しますか?", "Stand by for later score registration? "),
+ if (!get_check_strict(player_ptr, _("後でスコアを登録するために待機しますか?", "Stand by for later score registration? "),
(CHECK_NO_ESCAPE | CHECK_NO_HISTORY)))
return;
char buf[1024];
bool success;
- if (!get_check_strict(_("待機していたスコア登録を今行ないますか?", "Do you register score now? "), CHECK_NO_HISTORY))
+ if (!get_check_strict(player_ptr, _("待機していたスコア登録を今行ないますか?", "Do you register score now? "), CHECK_NO_HISTORY))
quit(0);
player_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
parse_fixed_map(player_ptr, "w_info.txt", 0, 0, current_world_ptr->max_wild_y, current_world_ptr->max_wild_x);
success = send_world_score(player_ptr, TRUE, update_playtime, display_player, map_name);
- if (!success && !get_check_strict(_("スコア登録を諦めますか?", "Do you give up score registration? "), CHECK_NO_HISTORY)) {
+ if (!success && !get_check_strict(player_ptr, _("スコア登録を諦めますか?", "Do you give up score registration? "), CHECK_NO_HISTORY)) {
prt(_("引き続き待機します。", "standing by for future registration..."), 0, 0);
(void)inkey();
} else {
return TRUE;
}
- bool is_registration = get_check_strict(_("スコアをスコア・サーバに登録しますか? ", "Do you send score to the world score server? "), (CHECK_NO_ESCAPE | CHECK_NO_HISTORY));
+ bool is_registration = get_check_strict(current_player_ptr,
+ _("スコアをスコア・サーバに登録しますか? ", "Do you send score to the world score server? "), (CHECK_NO_ESCAPE | CHECK_NO_HISTORY));
if (!is_registration) return FALSE;
errr err;
concptr msg = _("ペットを置いて広域マップに入りますか?",
"Do you leave your pets behind? ");
- if (!get_check_strict(msg, CHECK_OKAY_CANCEL))
+ if (!get_check_strict(creature_ptr, msg, CHECK_OKAY_CANCEL))
{
free_turn(creature_ptr);
return FALSE;
o_ptr = &creature_ptr->inventory_list[i_keep];
object_desc(creature_ptr, o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
msg_format(_("%sがテレポートの能力を発動させようとしている。", "Your %s is activating teleportation."), o_name);
- if (get_check_strict(_("テレポートしますか?", "Teleport? "), CHECK_OKAY_CANCEL)) {
+ if (get_check_strict(creature_ptr, _("テレポートしますか?", "Teleport? "), CHECK_OKAY_CANCEL)) {
disturb(creature_ptr, FALSE, TRUE);
teleport_player(creature_ptr, 50, TELEPORT_SPONTANEOUS);
} else {
char out_val[160];
(void)fd_close(fd);
(void)sprintf(out_val, _("現存するファイル %s に上書きしますか? ", "Replace existing file %s? "), buf);
- if (get_check_strict(out_val, CHECK_NO_HISTORY)) fd = -1;
+ if (get_check_strict(creature_ptr, out_val, CHECK_NO_HISTORY)) fd = -1;
}
FILE *fff = NULL;
(void)inkey();
#ifdef JP
- if (!get_check_strict("もう一度接続を試みますか? ", CHECK_NO_HISTORY))
+ if (!get_check_strict(creature_ptr, "もう一度接続を試みますか? ", CHECK_NO_HISTORY))
#else
- if (!get_check_strict("Try again? ", CHECK_NO_HISTORY))
+ if (!get_check_strict(creature_ptr, "Try again? ", CHECK_NO_HISTORY))
#endif
{
#ifdef WINDOWS
(void)inkey();
#ifdef JP
- if (!get_check_strict("もう一度接続を試みますか? ", CHECK_NO_HISTORY))
+ if (!get_check_strict(creature_ptr, "もう一度接続を試みますか? ", CHECK_NO_HISTORY))
#else
- if (!get_check_strict("Try again? ", CHECK_NO_HISTORY))
+ if (!get_check_strict(creature_ptr, "Try again? ", CHECK_NO_HISTORY))
#endif
{
#ifdef WINDOWS
flush();
- if (get_check_strict(_("画面を保存しますか?", "Dump the screen? "), CHECK_NO_HISTORY))
+ if (get_check_strict(creature_ptr, _("画面を保存しますか?", "Dump the screen? "), CHECK_NO_HISTORY))
{
do_cmd_save_screen(creature_ptr, process_autopick_file_command);
}
#else
while (!get_string("Last word: ", death_message, 1024));
#endif
- } while (winning_seppuku && !get_check_strict(_("よろしいですか?", "Are you sure? "), CHECK_NO_HISTORY));
+ } while (winning_seppuku && !get_check_strict(creature_ptr, _("よろしいですか?", "Are you sure? "), CHECK_NO_HISTORY));
if (death_message[0] == '\0')
{
if (!follow)
return;
- if (!get_check_strict(_("ついていきますか?", "Do you follow it? "), CHECK_OKAY_CANCEL))
+ if (!get_check_strict(tracer_ptr, _("ついていきますか?", "Do you follow it? "), CHECK_OKAY_CANCEL))
return;
if (one_in_(3)) {
*/
bool get_check(concptr prompt)
{
- return get_check_strict(prompt, 0);
+ return get_check_strict(p_ptr, prompt, 0);
}
* mode & CHECK_NO_HISTORY : no message_add
* mode & CHECK_DEFAULT_Y : accept any key as y, except n and Esc.
*/
-bool get_check_strict(concptr prompt, BIT_FLAGS mode)
+bool get_check_strict(player_type *player_ptr, concptr prompt, BIT_FLAGS mode)
{
char buf[80];
if (auto_more)
{
- p_ptr->window |= PW_MESSAGE;
- handle_stuff(p_ptr);
+ player_ptr->window |= PW_MESSAGE;
+ handle_stuff(player_ptr);
num_more = 0;
}
}
prt(buf, 0, 0);
- if (!(mode & CHECK_NO_HISTORY) && p_ptr->playing)
+ if (!(mode & CHECK_NO_HISTORY) && player_ptr->playing)
{
message_add(buf);
- p_ptr->window |= (PW_MESSAGE);
- handle_stuff(p_ptr);
+ player_ptr->window |= (PW_MESSAGE);
+ handle_stuff(player_ptr);
}
bool flag = FALSE;
#define CHECK_NO_HISTORY 0x04
#define CHECK_DEFAULT_Y 0x08
extern bool get_check(concptr prompt);
-extern bool get_check_strict(concptr prompt, BIT_FLAGS mode);
+extern bool get_check_strict(player_type *player_ptr, concptr prompt, BIT_FLAGS mode);
extern bool get_com(concptr prompt, char *command, bool z_escape);
extern QUANTITY get_quantity(concptr prompt, QUANTITY max);