Angbandゲームエンジン / Angband game engine. [詳細]
#include "angband.h"
マクロ定義 | |
#define | TY_CURSE_CHANCE 200 |
太古の怨念の1ターン毎の発動確率(1/n) [詳細] | |
#define | CHAINSWORD_NOISE 100 |
チェンソーの1ターン毎の発動確率(1/n) [詳細] | |
#define | RATING_BOOST(delta) (delta * delta + 50 * delta) |
ダンジョンの雰囲気を計算するための非線形基準値 / Dungeon rating is no longer linear [詳細] | |
関数 | |
static byte | value_check_aux1 (object_type *o_ptr) |
重度擬似鑑定の判断処理 / Return a "feeling" (or NULL) about an item. [詳細] | |
static byte | value_check_aux2 (object_type *o_ptr) |
軽度擬似鑑定の判断処理 / Return a "feeling" (or NULL) about an item. [詳細] | |
static void | sense_inventory_aux (int slot, bool heavy) |
擬似鑑定を実際に行い判定を反映する [詳細] | |
static void | sense_inventory1 (void) |
1プレイヤーターン毎に武器、防具の擬似鑑定が行われるかを判定する。 [詳細] | |
static void | sense_inventory2 (void) |
1プレイヤーターン毎に武器、防具以外の擬似鑑定が行われるかを判定する。 [詳細] | |
static void | pattern_teleport (void) |
パターン終点到達時のテレポート処理を行う [詳細] | |
static void | wreck_the_pattern (void) |
種族アンバライトが出血時パターンの上に乗った際のペナルティ処理 [詳細] | |
static bool | pattern_effect (void) |
各種パターン地形上の特別な処理 / Returns TRUE if we are on the Pattern... [詳細] | |
static void | regenhp (int percent) |
プレイヤーのHP自然回復処理 / Regenerate hit points -RAK- [詳細] | |
static void | regenmana (int upkeep_factor, int regen_amount) |
プレイヤーのMP自然回復処理(regen_magic()のサブセット) / Regenerate mana points [詳細] | |
static void | regenmagic (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 (object_type *o_ptr) |
寿命つき光源の警告メッセージ処理 [詳細] | |
void | leave_quest_check (void) |
クエスト階層から離脱する際の処理 [詳細] | |
void | leave_tower_check (void) |
「塔」クエストの各階層から離脱する際の処理 [詳細] | |
bool | psychometry (void) |
超能力者のサイコメトリー処理/ Forcibly pseudo-identify an object in the inventory (or on the floor) [詳細] | |
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 (void) |
プレイヤーの歌に関する継続処理 [詳細] | |
static object_type * | choose_cursed_obj_name (u32b flag) |
現在呪いを保持している装備品を一つランダムに探し出す / Choose one of items that have cursed flag [詳細] | |
static void | process_world_aux_hp_and_sp (void) |
10ゲームターンが進行するごとにプレイヤーのHPとMPの増減処理を行う。 / Handle timed damage and regeneration every 10 game turns [詳細] | |
static void | process_world_aux_timeout (void) |
10ゲームターンが進行するごとに魔法効果の残りターンを減らしていく処理 / Handle timeout every 10 game turns [詳細] | |
static void | process_world_aux_light (void) |
10ゲームターンが進行する毎に光源の寿命を減らす処理 / Handle burning fuel every 10 game turns [詳細] | |
static void | process_world_aux_mutation (void) |
10ゲームターンが進行するごとに突然変異の発動判定を行う処理 / Handle mutation effects once every 10 game turns [詳細] | |
static void | process_world_aux_curse (void) |
10ゲームターンが進行するごとに装備効果の発動判定を行う処理 / Handle curse effects once every 10 game turns [詳細] | |
static void | process_world_aux_recharge (void) |
10ゲームターンが進行するごとに魔道具の自然充填を行う処理 / Handle recharging objects once every 10 game turns [詳細] | |
static void | process_world_aux_movement (void) |
10ゲームターンが進行するごとに帰還や現実変容などの残り時間カウントダウンと発動を処理する。 / Handle involuntary movement once every 10 game turns [詳細] | |
static int | get_monster_crowd_number (int m_idx) |
指定したモンスターに隣接しているモンスターの数を返す。 / Count number of adjacent monsters [詳細] | |
static byte | get_dungeon_feeling (void) |
ダンジョンの雰囲気を算出する。 / Examine all monsters and unidentified objects, and get the feeling of current dungeon floor [詳細] | |
static void | update_dungeon_feeling (void) |
ダンジョンの雰囲気を更新し、変化があった場合メッセージを表示する / Update dungeon feeling, and announce it if changed [詳細] | |
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 (void) |
デバッグコマンドを選択する処理のメインルーチン / Ask for and parse a "debug command" The "command_arg" may have been set. [詳細] | |
static void | process_command (void) |
プレイヤーから受けた入力コマンドの分岐処理。 / Parse and execute the current command Give "Warning" on illegal commands. [詳細] | |
static bool | monster_tsuri (int r_idx) |
モンスター種族が釣れる種族かどうかを判定する。 [詳細] | |
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_player (void) |
プレイヤーの行動処理 / 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 | extract_option_vars (void) |
ビットセットからゲームオプションを展開する / Extract option variables from bit sets [詳細] | |
void | determine_bounty_uniques (void) |
賞金首となるユニークを確定する / Determine bounty uniques [詳細] | |
void | determine_today_mon (bool conv_old) |
今日の賞金首を確定する / Determine today's bounty monster [詳細] | |
void | play_game (bool new_game) |
1ゲームプレイの主要ルーチン / Actually play a game [詳細] | |
s32b | turn_real (s32b hoge) |
ゲームターンからの実時間換算を行うための補正をかける [詳細] | |
void | prevent_turn_overflow (void) |
ターンのオーバーフローに対する対処 [詳細] | |
変数 | |
static bool | load = TRUE |
ロード処理中の分岐フラグ [詳細] | |
static int | wild_regen = 20 |
広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする) [詳細] | |
Angbandゲームエンジン / Angband game engine.
#define CHAINSWORD_NOISE 100 |
チェンソーの1ターン毎の発動確率(1/n)
#define RATING_BOOST | ( | delta | ) | (delta * delta + 50 * delta) |
ダンジョンの雰囲気を計算するための非線形基準値 / Dungeon rating is no longer linear
#define TY_CURSE_CHANCE 200 |
太古の怨念の1ターン毎の発動確率(1/n)
|
static |
プレイヤーの歌に関する継続処理
|
static |
現在呪いを保持している装備品を一つランダムに探し出す / Choose one of items that have cursed flag
flag | 探し出したい呪いフラグ配列 |
void determine_bounty_uniques | ( | void | ) |
賞金首となるユニークを確定する / Determine bounty uniques
void determine_today_mon | ( | bool | conv_old | ) |
今日の賞金首を確定する / Determine today's bounty monster
void do_cmd_debug | ( | void | ) |
デバッグコマンドを選択する処理のメインルーチン / Ask for and parse a "debug command" The "command_arg" may have been set.
|
static |
現在プレイヤーがいるダンジョンの全体処理 / Interact with the current dungeon level.
|
static |
デバッグコマンドへの導入処理 / Verify use of "debug" commands
|
static |
ウィザードモードへの導入処理 / Verify use of "wizard" mode
void extract_option_vars | ( | void | ) |
ビットセットからゲームオプションを展開する / Extract option variables from bit sets
|
static |
ダンジョンの雰囲気を算出する。 / Examine all monsters and unidentified objects, and get the feeling of current dungeon floor
|
static |
指定したモンスターに隣接しているモンスターの数を返す。 / Count number of adjacent monsters
m_idx | 隣接数を調べたいモンスターのID |
void leave_quest_check | ( | void | ) |
クエスト階層から離脱する際の処理
void leave_tower_check | ( | void | ) |
「塔」クエストの各階層から離脱する際の処理
|
static |
全ユーザプロファイルをロードする / Load some "user pref files"
|
static |
モンスター種族が釣れる種族かどうかを判定する。
r_idx | 判定したいモンスター種族のID |
|
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 |
プレイヤーの行動処理 / 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 |
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
bool psychometry | ( | void | ) |
超能力者のサイコメトリー処理/ Forcibly pseudo-identify an object in the inventory (or on the floor)
|
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 inventory
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からゲームを開始するので、この修正を予め行う。
|
static |
ダンジョンの雰囲気を更新し、変化があった場合メッセージを表示する / Update dungeon feeling, and announce it if changed
|
static |
重度擬似鑑定の判断処理 / Return a "feeling" (or NULL) about an item.
Method 1 (Heavy).
o_ptr | 擬似鑑定を行うオブジェクトの参照ポインタ。 |
|
static |
軽度擬似鑑定の判断処理 / Return a "feeling" (or NULL) about an item.
Method 2 (Light).
o_ptr | 擬似鑑定を行うオブジェクトの参照ポインタ。 |
|
static |
種族アンバライトが出血時パターンの上に乗った際のペナルティ処理
|
static |
広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)