Hengband  2.2.1
マクロ定義 | 関数
warning.c ファイル
#include "angband.h"
#include "util.h"
#include "artifact.h"
#include "player-move.h"
#include "feature.h"
#include "floor.h"
#include "warning.h"
#include "player-status.h"
#include "monster.h"
#include "monster-spell.h"
#include "spells.h"
#include "object-flavor.h"
#include "dungeon.h"
#include "player-race.h"
#include "player-class.h"
#include "melee.h"
#include "realm-song.h"
warning.c の依存先関係図:

マクロ定義

#define WARNING_AWARE_RANGE   12
 

関数

object_typechoose_warning_item (void)
 警告を放つアイテムを選択する / Choose one of items that have warning flag Calculate spell damages [詳解]
 
static void spell_damcalc (player_type *target_ptr, monster_type *m_ptr, EFFECT_ID typ, HIT_POINT dam, int *max)
 警告基準を定めるために魔法の効果属性に基づいて最大魔法ダメージを計算する / Calculate spell damages [詳解]
 
void spell_damcalc_by_spellnum (int spell_num, EFFECT_ID typ, MONSTER_IDX m_idx, int *max)
 警告基準を定めるために魔法の効果属性に基づいて最大魔法ダメージを計算する。 / Calculate spell damages [詳解]
 
static int blow_damcalc (monster_type *m_ptr, player_type *target_ptr, monster_blow *blow_ptr)
 警告基準を定めるためにモンスターの打撃最大ダメージを算出する / Calculate blow damages [詳解]
 
bool process_warning (POSITION xx, POSITION yy)
 プレイヤーが特定地点へ移動した場合に警告を発する処理 / Examine the grid (xx,yy) and warn the player if there are any danger [詳解]
 

マクロ定義詳解

◆ WARNING_AWARE_RANGE

#define WARNING_AWARE_RANGE   12

関数詳解

◆ blow_damcalc()

static int blow_damcalc ( monster_type m_ptr,
player_type target_ptr,
monster_blow blow_ptr 
)
static

警告基準を定めるためにモンスターの打撃最大ダメージを算出する / Calculate blow damages

引数
m_ptr打撃を行使するモンスターの構造体参照ポインタ
blow_ptrモンスターの打撃能力の構造体参照ポインタ
戻り値
算出された最大ダメージを返す。
呼び出し関係図:
被呼び出し関係図:

◆ choose_warning_item()

object_type* choose_warning_item ( void  )

警告を放つアイテムを選択する / Choose one of items that have warning flag Calculate spell damages

戻り値
警告を行う
呼び出し関係図:

◆ process_warning()

bool process_warning ( POSITION  xx,
POSITION  yy 
)

プレイヤーが特定地点へ移動した場合に警告を発する処理 / Examine the grid (xx,yy) and warn the player if there are any danger

引数
xx危険性を調査するマスのX座標
yy危険性を調査するマスのY座標
戻り値
警告を無視して進むことを選択するかか問題が無ければTRUE、警告に従ったならFALSEを返す。
呼び出し関係図:

◆ spell_damcalc()

static void spell_damcalc ( player_type target_ptr,
monster_type m_ptr,
EFFECT_ID  typ,
HIT_POINT  dam,
int *  max 
)
static

警告基準を定めるために魔法の効果属性に基づいて最大魔法ダメージを計算する / Calculate spell damages

引数
m_ptr魔法を行使するモンスターの構造体参照ポインタ
typ効果属性のID
dam基本ダメージ
max算出した最大ダメージを返すポインタ
戻り値
なし
被呼び出し関係図:

◆ spell_damcalc_by_spellnum()

void spell_damcalc_by_spellnum ( int  spell_num,
EFFECT_ID  typ,
MONSTER_IDX  m_idx,
int *  max 
)

警告基準を定めるために魔法の効果属性に基づいて最大魔法ダメージを計算する。 / Calculate spell damages

引数
spell_numRF4ならRF4_SPELL_STARTのように32区切りのベースとなる数値
typ効果属性のID
m_idx魔法を行使するモンスターのID
max算出した最大ダメージを返すポインタ
戻り値
なし
呼び出し関係図:
被呼び出し関係図: