Hengband  2.2.1
データ構造 | 型定義 | 関数 | 変数
racial.c ファイル

レイシャルと突然変異の技能処理 / Racial powers (and mutations) [詳解]

#include "angband.h"
#include "core.h"
#include "util.h"
#include "cmd-basic.h"
#include "cmd-magiceat.h"
#include "cmd-mane.h"
#include "cmd-zapwand.h"
#include "cmd-pet.h"
#include "melee.h"
#include "object-hook.h"
#include "realm-song.h"
#include "mutation.h"
#include "player-race.h"
#include "player-effects.h"
#include "player-status.h"
#include "player-damage.h"
#include "spells-status.h"
#include "spells-object.h"
#include "spells-floor.h"
#include "spells.h"
#include "cmd-spell.h"
#include "realm-hex.h"
#include "targeting.h"
#include "view-mainwindow.h"
#include "player-class.h"
racial.c の依存先関係図:

データ構造

struct  power_desc_type
 レイシャル・パワー情報の構造体定義 [詳解]
 

型定義

typedef struct power_desc_type power_desc_type
 レイシャル・パワー情報のtypedef [詳解]
 

関数

static bool choose_kamae (player_type *creature_ptr)
 修行僧の構え設定処理 [詳解]
 
static bool choose_kata (player_type *creature_ptr)
 剣術家の型設定処理 [詳解]
 
static PERCENTAGE racial_chance (player_type *creature_ptr, power_desc_type *pd_ptr)
 レイシャル・パワーの発動成功率を計算する / Returns the chance to activate a racial power/mutation [詳解]
 
static int racial_aux (player_type *caster_ptr, power_desc_type *pd_ptr)
 レイシャル・パワーの発動の判定処理 [詳解]
 
static bool exe_racial_power (player_type *creature_ptr, s32b command)
 レイシャル・パワー発動処理 [詳解]
 
void do_cmd_racial_power (player_type *creature_ptr)
 レイシャル・パワーコマンドのメインルーチン / Allow user to choose a power (racial / mutation) to activate [詳解]
 

変数

static int racial_cost
 

詳解

レイシャルと突然変異の技能処理 / Racial powers (and mutations)

日付
2014/01/08
著者
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.

型定義詳解

◆ power_desc_type

レイシャル・パワー情報のtypedef

関数詳解

◆ choose_kamae()

static bool choose_kamae ( player_type creature_ptr)
static

修行僧の構え設定処理

戻り値
構えを変化させたらTRUE、構え不能かキャンセルしたらFALSEを返す。
呼び出し関係図:
被呼び出し関係図:

◆ choose_kata()

static bool choose_kata ( player_type creature_ptr)
static

剣術家の型設定処理

戻り値
型を変化させたらTRUE、型の構え不能かキャンセルしたらFALSEを返す。
呼び出し関係図:
被呼び出し関係図:

◆ do_cmd_racial_power()

void do_cmd_racial_power ( player_type creature_ptr)

レイシャル・パワーコマンドのメインルーチン / Allow user to choose a power (racial / mutation) to activate

戻り値
なし
呼び出し関係図:

◆ exe_racial_power()

static bool exe_racial_power ( player_type creature_ptr,
s32b  command 
)
static

レイシャル・パワー発動処理

引数
command発動するレイシャルのID
戻り値
処理を実際に実行した場合はTRUE、キャンセルした場合FALSEを返す。
被呼び出し関係図:

◆ racial_aux()

static int racial_aux ( player_type caster_ptr,
power_desc_type pd_ptr 
)
static

レイシャル・パワーの発動の判定処理

引数
pd_ptr発動したいレイシャル・パワー情報の構造体参照ポインタ
戻り値
発動成功ならば1、発動失敗ならば-1、キャンセルならば0を返す。 return value indicates that we have succesfully used the power 1: Succeeded, 0: Cancelled, -1: Failed
呼び出し関係図:
被呼び出し関係図:

◆ racial_chance()

static PERCENTAGE racial_chance ( player_type creature_ptr,
power_desc_type pd_ptr 
)
static

レイシャル・パワーの発動成功率を計算する / Returns the chance to activate a racial power/mutation

引数
pd_ptr発動したいレイシャル・パワー情報の構造体参照ポインタ
戻り値
成功率(%)を返す
被呼び出し関係図:

変数詳解

◆ racial_cost

int racial_cost
static