Hengband
2.2.1
|
#include "angband.h"
#include "util.h"
#include "core.h"
#include "inet.h"
#include "term.h"
#include "creature.h"
#include "birth.h"
#include "bldg.h"
#include "cmd-activate.h"
#include "cmd-dump.h"
#include "cmd-eat.h"
#include "cmd-hissatsu.h"
#include "cmd-item.h"
#include "cmd-magiceat.h"
#include "cmd-mane.h"
#include "cmd-quaff.h"
#include "cmd-read.h"
#include "cmd-smith.h"
#include "cmd-usestaff.h"
#include "cmd-zaprod.h"
#include "cmd-zapwand.h"
#include "cmd-pet.h"
#include "cmd-basic.h"
#include "racial.h"
#include "snipe.h"
#include "dungeon.h"
#include "feature.h"
#include "floor.h"
#include "floor-events.h"
#include "floor-town.h"
#include "grid.h"
#include "object-ego.h"
#include "object-curse.h"
#include "object-flavor.h"
#include "store.h"
#include "spells.h"
#include "spells-summon.h"
#include "spells-object.h"
#include "spells-status.h"
#include "spells-floor.h"
#include "monster-spell.h"
#include "mind.h"
#include "world.h"
#include "mutation.h"
#include "quest.h"
#include "artifact.h"
#include "avatar.h"
#include "player-move.h"
#include "player-status.h"
#include "player-class.h"
#include "player-race.h"
#include "player-personality.h"
#include "player-damage.h"
#include "player-effects.h"
#include "cmd-spell.h"
#include "realm-hex.h"
#include "objectkind.h"
#include "object-hook.h"
#include "wild.h"
#include "monster-process.h"
#include "monster-status.h"
#include "monsterrace-hook.h"
#include "floor-save.h"
#include "player-skill.h"
#include "player-inventory.h"
#include "view-mainwindow.h"
#include "dungeon-file.h"
#include "files.h"
#include "scores.h"
#include "autopick.h"
#include "save.h"
#include "realm.h"
#include "realm-song.h"
#include "targeting.h"
関数 | |
static void | sense_inventory_aux (INVENTORY_IDX slot, bool heavy) |
擬似鑑定を実際に行い判定を反映する [詳解] | |
static void | sense_inventory1 (player_type *creature_ptr) |
1プレイヤーターン毎に武器、防具の擬似鑑定が行われるかを判定する。 [詳解] | |
static void | sense_inventory2 (player_type *creature_ptr) |
1プレイヤーターン毎に武器、防具以外の擬似鑑定が行われるかを判定する。 [詳解] | |
static void | pattern_teleport (player_type *creature_ptr) |
パターン終点到達時のテレポート処理を行う [詳解] | |
static bool | pattern_effect (player_type *creature_ptr) |
各種パターン地形上の特別な処理 / Returns TRUE if we are on the Pattern... [詳解] | |
static void | regenhp (int percent) |
プレイヤーのHP自然回復処理 / Regenerate hit points -RAK- [詳解] | |
static void | regenmana (player_type *creature_ptr, MANA_POINT upkeep_factor, MANA_POINT regen_amount) |
プレイヤーのMP自然回復処理(regen_magic()のサブセット) / Regenerate mana points [詳解] | |
static void | regenmagic (player_type *creature_ptr, int regen_amount) |
プレイヤーのMP自然回復処理 / Regenerate magic regen_amount: PY_REGEN_NORMAL * 2 (if resting) * 2 (if having regenarate) [詳解] | |
static void | regen_monsters (void) |
100ゲームターン毎のモンスターのHP自然回復処理 / Regenerate the monsters (once per 100 game turns) [詳解] | |
static void | regen_captured_monsters (void) |
30ゲームターン毎のボール中モンスターのHP自然回復処理 / Regenerate the captured monsters (once per 30 game turns) [詳解] | |
static void | notice_lite_change (player_type *creature_ptr, object_type *o_ptr) |
寿命つき光源の警告メッセージ処理 [詳解] | |
static void | recharged_notice (object_type *o_ptr) |
!!を刻んだ魔道具の時間経過による再充填を知らせる処理 / If player has inscribed the object with "!!", let him know when it's recharged. [詳解] | |
static void | check_music (player_type *creature_ptr) |
プレイヤーの歌に関する継続処理 [詳解] | |
static object_type * | choose_cursed_obj_name (BIT_FLAGS flag) |
現在呪いを保持している装備品を一つランダムに探し出す / Choose one of items that have cursed flag [詳解] | |
static void | process_world_aux_digestion (player_type *creature_ptr) |
static void | process_world_aux_hp_and_sp (player_type *creature_ptr) |
10ゲームターンが進行するごとにプレイヤーのHPとMPの増減処理を行う。 / Handle timed damage and regeneration every 10 game turns [詳解] | |
static void | process_world_aux_timeout (player_type *creature_ptr) |
10ゲームターンが進行するごとに魔法効果の残りターンを減らしていく処理 / Handle timeout every 10 game turns [詳解] | |
static void | process_world_aux_light (player_type *creature_ptr) |
10ゲームターンが進行する毎に光源の寿命を減らす処理 / Handle burning fuel every 10 game turns [詳解] | |
static void | process_world_aux_mutation (player_type *creature_ptr) |
10ゲームターンが進行するごとに突然変異の発動判定を行う処理 / Handle mutation effects once every 10 game turns [詳解] | |
static void | process_world_aux_curse (player_type *creature_ptr) |
10ゲームターンが進行するごとに装備効果の発動判定を行う処理 / Handle curse effects once every 10 game turns [詳解] | |
static void | process_world_aux_recharge (player_type *creature_ptr) |
10ゲームターンが進行するごとに魔道具の自然充填を行う処理 / Handle recharging objects once every 10 game turns [詳解] | |
static void | process_world_aux_movement (player_type *creature_ptr) |
10ゲームターンが進行するごとに帰還や現実変容などの残り時間カウントダウンと発動を処理する。 / Handle involuntary movement once every 10 game turns [詳解] | |
static void | process_world (void) |
10ゲームターンが進行する毎にゲーム世界全体の処理を行う。 / Handle certain things once every 10 game turns [詳解] | |
static bool | enter_wizard_mode (void) |
ウィザードモードへの導入処理 / Verify use of "wizard" mode [詳解] | |
static bool | enter_debug_mode (void) |
デバッグコマンドへの導入処理 / Verify use of "debug" commands [詳解] | |
void | do_cmd_debug (player_type *creature_ptr) |
デバッグコマンドを選択する処理のメインルーチン / Ask for and parse a "debug command" The "command_arg" may have been set. [詳解] | |
static void | process_command (player_type *creature_ptr) |
プレイヤーから受けた入力コマンドの分岐処理。 / Parse and execute the current command Give "Warning" on illegal commands. [詳解] | |
static void | pack_overflow (void) |
アイテムの所持種類数が超えた場合にアイテムを床に落とす処理 / Hack – Pack Overflow [詳解] | |
static void | process_upkeep_with_speed (void) |
プレイヤーの行動エネルギーが充填される(=プレイヤーのターンが回る)毎に行われる処理 / process the effects per 100 energy at player speed. [詳解] | |
static void | process_fishing (void) |
static void | process_player (player_type *creature_ptr) |
プレイヤーの行動処理 / Process the player [詳解] | |
static void | dungeon (bool load_game) |
現在プレイヤーがいるダンジョンの全体処理 / Interact with the current dungeon level. [詳解] | |
static void | load_all_pref_files (void) |
全ユーザプロファイルをロードする / Load some "user pref files" [詳解] | |
void | play_game (bool new_game) |
1ゲームプレイの主要ルーチン / Actually play a game [詳解] | |
s32b | turn_real (s32b hoge) |
ゲームターンからの実時間換算を行うための補正をかける [詳解] | |
void | prevent_turn_overflow (void) |
ターンのオーバーフローに対する対処 [詳解] | |
void | close_game (void) |
ゲーム終了処理 / Close up the current game (player may or may not be dead) [詳解] | |
void | handle_stuff (void) |
全更新処理をチェックして処理していく Handle "p_ptr->update" and "p_ptr->redraw" and "p_ptr->window" [詳解] | |
void | update_output (void) |
変数 | |
const concptr | copyright [5] |
コピーライト情報 / Hack – Link a copyright message into the executable [詳解] | |
bool | can_save = FALSE |
COMMAND_CODE | now_message |
bool | repair_monsters |
bool | repair_objects |
concptr | ANGBAND_SYS = "xxx" |
Hack – The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file [詳解] | |
concptr | ANGBAND_KEYBOARD = "0" |
concptr | ANGBAND_GRAF = "ascii" |
Hack – The special Angband "Graphics Suffix" This variable is used to choose an appropriate "graf-xxx" file [詳解] | |
static bool | load = TRUE |
ロード処理中の分岐フラグ [詳解] | |
static int | wild_regen = 20 |
広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする) [詳解] | |
int | init_flags |
|
static |
プレイヤーの歌に関する継続処理
|
static |
現在呪いを保持している装備品を一つランダムに探し出す / Choose one of items that have cursed flag
flag | 探し出したい呪いフラグ配列 |
void close_game | ( | void | ) |
ゲーム終了処理 / Close up the current game (player may or may not be dead)
This function is called only from "main.c" and "signals.c".
void do_cmd_debug | ( | player_type * | creature_ptr | ) |
デバッグコマンドを選択する処理のメインルーチン / Ask for and parse a "debug command" The "command_arg" may have been set.
|
static |
現在プレイヤーがいるダンジョンの全体処理 / Interact with the current dungeon level.
この関数から現在の階層を出る、プレイヤーがキャラが死ぬ、 ゲームを終了するかのいずれかまでループする。
This function will not exit until the level is completed,
the user dies, or the game is terminated.
|
static |
デバッグコマンドへの導入処理 / Verify use of "debug" commands
|
static |
ウィザードモードへの導入処理 / Verify use of "wizard" mode
void handle_stuff | ( | void | ) |
全更新処理をチェックして処理していく Handle "p_ptr->update" and "p_ptr->redraw" and "p_ptr->window"
|
static |
全ユーザプロファイルをロードする / Load some "user pref files"
|
static |
寿命つき光源の警告メッセージ処理
o_ptr | 現在光源として使っているオブジェクトの構造体参照ポインタ |
|
static |
アイテムの所持種類数が超えた場合にアイテムを床に落とす処理 / Hack – Pack Overflow
|
static |
各種パターン地形上の特別な処理 / Returns TRUE if we are on the Pattern...
|
static |
パターン終点到達時のテレポート処理を行う
void play_game | ( | bool | new_game | ) |
1ゲームプレイの主要ルーチン / Actually play a game
void prevent_turn_overflow | ( | void | ) |
ターンのオーバーフローに対する対処
ターン及びターンを記録する変数をターンの限界の1日前まで巻き戻す.
|
static |
プレイヤーから受けた入力コマンドの分岐処理。 / Parse and execute the current command Give "Warning" on illegal commands.
|
static |
|
static |
プレイヤーの行動処理 / Process the player
|
static |
プレイヤーの行動エネルギーが充填される(=プレイヤーのターンが回る)毎に行われる処理 / process the effects per 100 energy at player speed.
|
static |
10ゲームターンが進行する毎にゲーム世界全体の処理を行う。 / Handle certain things once every 10 game turns
|
static |
10ゲームターンが進行するごとに装備効果の発動判定を行う処理 / Handle curse effects once every 10 game turns
|
static |
|
static |
10ゲームターンが進行するごとにプレイヤーのHPとMPの増減処理を行う。 / Handle timed damage and regeneration every 10 game turns
|
static |
10ゲームターンが進行する毎に光源の寿命を減らす処理 / Handle burning fuel every 10 game turns
|
static |
10ゲームターンが進行するごとに帰還や現実変容などの残り時間カウントダウンと発動を処理する。 / Handle involuntary movement once every 10 game turns
|
static |
10ゲームターンが進行するごとに突然変異の発動判定を行う処理 / Handle mutation effects once every 10 game turns
|
static |
10ゲームターンが進行するごとに魔道具の自然充填を行う処理 / Handle recharging objects once every 10 game turns
|
static |
10ゲームターンが進行するごとに魔法効果の残りターンを減らしていく処理 / Handle timeout every 10 game turns
|
static |
!!を刻んだ魔道具の時間経過による再充填を知らせる処理 / If player has inscribed the object with "!!", let him know when it's recharged.
-LM-
o_ptr | 対象オブジェクトの構造体参照ポインタ |
|
static |
30ゲームターン毎のボール中モンスターのHP自然回復処理 / Regenerate the captured monsters (once per 30 game turns)
|
static |
100ゲームターン毎のモンスターのHP自然回復処理 / Regenerate the monsters (once per 100 game turns)
|
static |
プレイヤーのHP自然回復処理 / Regenerate hit points -RAK-
percent | 回復比率 |
|
static |
プレイヤーのMP自然回復処理 / Regenerate magic regen_amount: PY_REGEN_NORMAL * 2 (if resting) * 2 (if having regenarate)
regen_amount | 回復量 |
|
static |
プレイヤーのMP自然回復処理(regen_magic()のサブセット) / Regenerate mana points
upkeep_factor | ペット維持によるMPコスト量 |
regen_amount | 回復量 |
|
static |
1プレイヤーターン毎に武器、防具の擬似鑑定が行われるかを判定する。
Sense the p_ptr->inventory_list
Class 0 = Warrior --> fast and heavy
Class 1 = Mage --> slow and light
Class 2 = Priest --> fast but light
Class 3 = Rogue --> okay and heavy
Class 4 = Ranger --> slow but heavy (changed!)
Class 5 = Paladin --> slow but heavy
|
static |
1プレイヤーターン毎に武器、防具以外の擬似鑑定が行われるかを判定する。
|
static |
擬似鑑定を実際に行い判定を反映する
slot | 擬似鑑定を行うプレイヤーの所持リストID |
heavy | 重度の擬似鑑定を行うならばTRUE |
ゲームターンからの実時間換算を行うための補正をかける
hoge | ゲームターン |
アンデッド種族は18:00からゲームを開始するので、この修正を予め行う。
void update_output | ( | void | ) |
concptr ANGBAND_GRAF = "ascii" |
Hack – The special Angband "Graphics Suffix" This variable is used to choose an appropriate "graf-xxx" file
concptr ANGBAND_KEYBOARD = "0" |
concptr ANGBAND_SYS = "xxx" |
Hack – The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file
const concptr copyright[5] |
コピーライト情報 / Hack – Link a copyright message into the executable
int init_flags |
COMMAND_CODE now_message |
bool repair_monsters |
bool repair_objects |
|
static |
広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)