Hengband  2.1.4
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義 ページ
マクロ定義 | 関数 | 変数
monster1.c

モンスター情報の記述 / describe monsters (using monster memory) [詳細]

#include "angband.h"
monster1.cのインクルード依存関係図

マクロ定義

#define plural(c, s, p)   (((c) == 1) ? (s) : (p))
 英語の複数系記述用マクロ / Pluralizer. [詳細]
 

関数

static bool know_armour (int r_idx)
 モンスターのAC情報を得ることができるかを返す / Determine if the "armor" is known [詳細]
 
static bool know_damage (int r_idx, int i)
 モンスターの打撃威力を知ることができるかどうかを返す Determine if the "damage" of the given attack is known [詳細]
 
static void hooked_roff (cptr str)
 モンスターの思い出メッセージをあらかじめ指定された関数ポインタに基づき出力する [詳細]
 
void dice_to_string (int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char *msg)
 ダイス目を文字列に変換する [詳細]
 
void set_damage (int r_idx, int SPELL_NUM, char *msg, char *tmp)
 文字列にモンスターの攻撃力を加える [詳細]
 
static void roff_aux (int r_idx, int mode)
 モンスターの思い出情報を表示する Hack – display monster information using "hooked_roff()" [詳細]
 
void roff_top (int r_idx)
 モンスター情報のヘッダを記述する Hack – Display the "name" and "attr/chars" of a monster race [詳細]
 
void screen_roff (int r_idx, int mode)
 モンスター情報の表示と共に画面を一時消去するサブルーチン / Hack – describe the given monster race at the top of the screen [詳細]
 
void display_roff (int r_idx)
 モンスター情報の現在のウィンドウに表示する / Hack – describe the given monster race in the current "term" window [詳細]
 
void output_monster_spoiler (int r_idx, void(*roff_func)(byte attr, cptr str))
 モンスター詳細情報を自動スポイラー向けに出力する / Hack – output description of the given monster race [詳細]
 
bool mon_hook_dungeon (int r_idx)
 モンスターがダンジョンに出現するかどうかを返す [詳細]
 
static bool mon_hook_ocean (int r_idx)
 モンスターが海洋に出現するかどうかを返す [詳細]
 
static bool mon_hook_shore (int r_idx)
 モンスターが海岸に出現するかどうかを返す [詳細]
 
static bool mon_hook_waste (int r_idx)
 モンスターが荒地に出現するかどうかを返す [詳細]
 
static bool mon_hook_town (int r_idx)
 モンスターが町に出現するかどうかを返す [詳細]
 
static bool mon_hook_wood (int r_idx)
 モンスターが森林に出現するかどうかを返す [詳細]
 
static bool mon_hook_volcano (int r_idx)
 モンスターが火山に出現するかどうかを返す [詳細]
 
static bool mon_hook_mountain (int r_idx)
 モンスターが山地に出現するかどうかを返す [詳細]
 
static bool mon_hook_grass (int r_idx)
 モンスターが草原に出現するかどうかを返す [詳細]
 
static bool mon_hook_deep_water (int r_idx)
 モンスターが深い水地形に出現するかどうかを返す [詳細]
 
static bool mon_hook_shallow_water (int r_idx)
 モンスターが浅い水地形に出現するかどうかを返す [詳細]
 
static bool mon_hook_lava (int r_idx)
 モンスターが溶岩地形に出現するかどうかを返す [詳細]
 
static bool mon_hook_floor (int r_idx)
 モンスターが通常の床地形に出現するかどうかを返す [詳細]
 
monster_hook_type get_monster_hook (void)
 プレイヤーの現在の広域マップ座標から得た地勢を元にモンスターの生成条件関数を返す [詳細]
 
monster_hook_type get_monster_hook2 (int y, int x)
 指定された広域マップ座標の地勢を元にモンスターの生成条件関数を返す [詳細]
 
void set_friendly (monster_type *m_ptr)
 モンスターを友好的にする [詳細]
 
void set_pet (monster_type *m_ptr)
 モンスターをペットにする [詳細]
 
void set_hostile (monster_type *m_ptr)
 モンスターを敵に回す Makes the monster hostile towards the player [詳細]
 
void anger_monster (monster_type *m_ptr)
 モンスターを怒らせる Anger the monster [詳細]
 
bool monster_can_cross_terrain (s16b feat, monster_race *r_ptr, u16b mode)
 モンスターが地形を踏破できるかどうかを返す Check if monster can cross terrain [詳細]
 
bool monster_can_enter (int y, int x, monster_race *r_ptr, u16b mode)
 指定された座標の地形をモンスターが踏破できるかどうかを返す Strictly check if monster can enter the grid [詳細]
 
static bool check_hostile_align (byte sub_align1, byte sub_align2)
 モンスターの属性の基づいた敵対関係の有無を返す(サブルーチン) Check if this monster has "hostile" alignment (aux) [詳細]
 
bool are_enemies (monster_type *m_ptr, monster_type *n_ptr)
 モンスターの属性の基づいた敵対関係の有無を返す Check if two monsters are enemies [詳細]
 
bool monster_has_hostile_align (monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr)
 モンスターがプレイヤーに対して敵意を抱くかどうかを返す Check if this monster race has "hostile" alignment [詳細]
 
bool monster_living (monster_race *r_ptr)
 モンスターが生命体かどうかを返す Is the monster "alive"? [詳細]
 
bool no_questor_or_bounty_uniques (int r_idx)
 モンスターが特殊能力上、賞金首から排除する必要があるかどうかを返す。 Is the monster "alive"? / Is this monster declined to be questor or bounty? [詳細]
 

変数

static cptr wd_he [3]
 
static cptr wd_his [3]
 
void(* hook_c_roff )(byte attr, cptr str) = c_roff
 

説明

モンスター情報の記述 / describe monsters (using monster memory)

日付
2013/12/11
作者
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.

マクロ定義

#define plural (   c,
  s,
 
)    (((c) == 1) ? (s) : (p))

英語の複数系記述用マクロ / Pluralizer.

Args(count, singular, plural)

関数

void anger_monster ( monster_type m_ptr)

モンスターを怒らせる Anger the monster

引数
m_ptrモンスター情報構造体の参照ポインタ
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

bool are_enemies ( monster_type m_ptr,
monster_type n_ptr 
)

モンスターの属性の基づいた敵対関係の有無を返す Check if two monsters are enemies

引数
m_ptrモンスター1の構造体参照ポインタ
n_ptrモンスター2の構造体参照ポインタ
戻り値
敵対関係にあるならばTRUEを返す

関数の呼び出しグラフ:

呼出しグラフ:

static bool check_hostile_align ( byte  sub_align1,
byte  sub_align2 
)
static

モンスターの属性の基づいた敵対関係の有無を返す(サブルーチン) Check if this monster has "hostile" alignment (aux)

引数
sub_align1モンスター1のサブフラグ
sub_align2モンスター2のサブフラグ
戻り値
敵対関係にあるならばTRUEを返す

呼出しグラフ:

void dice_to_string ( int  base_damage,
int  dice_num,
int  dice_side,
int  dice_mult,
int  dice_div,
char *  msg 
)

ダイス目を文字列に変換する

引数
base_damage固定値
dice_numダイス数
dice_sideダイス面
dice_multダイス倍率
dice_divダイス除数
msg文字列を格納するポインタ
戻り値
なし

呼出しグラフ:

void display_roff ( int  r_idx)

モンスター情報の現在のウィンドウに表示する / Hack – describe the given monster race in the current "term" window

引数
r_idxモンスターの種族ID
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

monster_hook_type get_monster_hook ( void  )

プレイヤーの現在の広域マップ座標から得た地勢を元にモンスターの生成条件関数を返す

戻り値
地勢にあったモンスターの生成条件関数

関数の呼び出しグラフ:

呼出しグラフ:

monster_hook_type get_monster_hook2 ( int  y,
int  x 
)

指定された広域マップ座標の地勢を元にモンスターの生成条件関数を返す

戻り値
地勢にあったモンスターの生成条件関数

関数の呼び出しグラフ:

呼出しグラフ:

static void hooked_roff ( cptr  str)
static

モンスターの思い出メッセージをあらかじめ指定された関数ポインタに基づき出力する

引数
str出力文字列
戻り値
なし

呼出しグラフ:

static bool know_armour ( int  r_idx)
static

モンスターのAC情報を得ることができるかを返す / Determine if the "armor" is known

引数
r_idxモンスターの種族ID
戻り値
敵のACを知る条件が満たされているならTRUEを返す

The higher the level, the fewer kills needed.

呼出しグラフ:

static bool know_damage ( int  r_idx,
int  i 
)
static

モンスターの打撃威力を知ることができるかどうかを返す Determine if the "damage" of the given attack is known

引数
r_idxモンスターの種族ID
i確認したい攻撃手番
戻り値
敵のダメージダイスを知る条件が満たされているならTRUEを返す
the higher the level of the monster, the fewer the attacks you need,
the more damage an attack does, the more attacks you need

呼出しグラフ:

static bool mon_hook_deep_water ( int  r_idx)
static

モンスターが深い水地形に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
深い水地形に出現するならばTRUEを返す

関数の呼び出しグラフ:

呼出しグラフ:

bool mon_hook_dungeon ( int  r_idx)

モンスターがダンジョンに出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
ダンジョンに出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_floor ( int  r_idx)
static

モンスターが通常の床地形に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
通常の床地形に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_grass ( int  r_idx)
static

モンスターが草原に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
森林に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_lava ( int  r_idx)
static

モンスターが溶岩地形に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
溶岩地形に出現するならばTRUEを返す

関数の呼び出しグラフ:

呼出しグラフ:

static bool mon_hook_mountain ( int  r_idx)
static

モンスターが山地に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
山地に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_ocean ( int  r_idx)
static

モンスターが海洋に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
海洋に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_shallow_water ( int  r_idx)
static

モンスターが浅い水地形に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
浅い水地形に出現するならばTRUEを返す

関数の呼び出しグラフ:

呼出しグラフ:

static bool mon_hook_shore ( int  r_idx)
static

モンスターが海岸に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
海岸に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_town ( int  r_idx)
static

モンスターが町に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
荒地に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_volcano ( int  r_idx)
static

モンスターが火山に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
火山に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_waste ( int  r_idx)
static

モンスターが荒地に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
荒地に出現するならばTRUEを返す

呼出しグラフ:

static bool mon_hook_wood ( int  r_idx)
static

モンスターが森林に出現するかどうかを返す

引数
r_idx判定するモンスターの種族ID
戻り値
森林に出現するならばTRUEを返す

呼出しグラフ:

bool monster_can_cross_terrain ( s16b  feat,
monster_race r_ptr,
u16b  mode 
)

モンスターが地形を踏破できるかどうかを返す Check if monster can cross terrain

引数
feat地形ID
r_ptrモンスター種族構造体の参照ポインタ
modeオプション
戻り値
踏破可能ならばTRUEを返す

呼出しグラフ:

bool monster_can_enter ( int  y,
int  x,
monster_race r_ptr,
u16b  mode 
)

指定された座標の地形をモンスターが踏破できるかどうかを返す Strictly check if monster can enter the grid

引数
y地形のY座標
x地形のX座標
r_ptrモンスター種族構造体の参照ポインタ
modeオプション
戻り値
踏破可能ならばTRUEを返す

関数の呼び出しグラフ:

呼出しグラフ:

bool monster_has_hostile_align ( monster_type m_ptr,
int  pa_good,
int  pa_evil,
monster_race r_ptr 
)

モンスターがプレイヤーに対して敵意を抱くかどうかを返す Check if this monster race has "hostile" alignment

引数
m_ptrモンスター情報構造体の参照ポインタ
pa_goodプレイヤーの善傾向値
pa_evilプレイヤーの悪傾向値
r_ptrモンスター種族情報の構造体参照ポインタ
戻り値
プレイヤーに敵意を持つならばTRUEを返す

If user is player, m_ptr == NULL.

関数の呼び出しグラフ:

呼出しグラフ:

bool monster_living ( monster_race r_ptr)

モンスターが生命体かどうかを返す Is the monster "alive"?

引数
r_ptr判定するモンスターの種族情報構造体参照ポインタ
戻り値
生命体ならばTRUEを返す

Used to determine the message to print for a killed monster. ("dies", "destroyed")

呼出しグラフ:

bool no_questor_or_bounty_uniques ( int  r_idx)

モンスターが特殊能力上、賞金首から排除する必要があるかどうかを返す。 Is the monster "alive"? / Is this monster declined to be questor or bounty?

引数
r_idxモンスターの種族ID
戻り値
賞金首に加えられないならばTRUEを返す

実質バーノール=ルパート用。

呼出しグラフ:

void output_monster_spoiler ( int  r_idx,
void(*)(byte attr, cptr str)  roff_func 
)

モンスター詳細情報を自動スポイラー向けに出力する / Hack – output description of the given monster race

引数
r_idxモンスターの種族ID
roff_func出力処理を行う関数ポインタ
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

static void roff_aux ( int  r_idx,
int  mode 
)
static

モンスターの思い出情報を表示する Hack – display monster information using "hooked_roff()"

引数
r_idxモンスターの種族ID
mode表示オプション
戻り値
なし

This function should only be called with the cursor placed at the left edge of the screen, on a cleared line, in which the recall is to take place. One extra blank line is left after the recall.

関数の呼び出しグラフ:

呼出しグラフ:

void roff_top ( int  r_idx)

モンスター情報のヘッダを記述する Hack – Display the "name" and "attr/chars" of a monster race

引数
r_idxモンスターの種族ID
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

void screen_roff ( int  r_idx,
int  mode 
)

モンスター情報の表示と共に画面を一時消去するサブルーチン / Hack – describe the given monster race at the top of the screen

引数
r_idxモンスターの種族ID
mode表示オプション
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

void set_damage ( int  r_idx,
int  SPELL_NUM,
char *  msg,
char *  tmp 
)

文字列にモンスターの攻撃力を加える

引数
r_idxモンスターの種族ID
SPELL_NUM呪文番号
msg表示する文字列
tmp返すメッセージを格納する配列
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

void set_friendly ( monster_type m_ptr)

モンスターを友好的にする

引数
m_ptrモンスター情報構造体の参照ポインタ
戻り値
なし

呼出しグラフ:

void set_hostile ( monster_type m_ptr)

モンスターを敵に回す Makes the monster hostile towards the player

引数
m_ptrモンスター情報構造体の参照ポインタ
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

void set_pet ( monster_type m_ptr)

モンスターをペットにする

引数
m_ptrモンスター情報構造体の参照ポインタ
戻り値
なし

関数の呼び出しグラフ:

呼出しグラフ:

変数

void(* hook_c_roff)(byte attr, cptr str) = c_roff
cptr wd_he[3]
static
初期値:
=
{ "it", "he", "she" }
cptr wd_his[3]
static
初期値:
=
{ "its", "his", "her" }