Hengband  2.2.1
データ構造 | マクロ定義 | 型定義 | 関数 | 変数
bldg.h ファイル
#include "realm.h"
#include "player-race.h"
#include "player-class.h"
bldg.h の依存先関係図:
被依存関係図:

[ソースコード]

データ構造

struct  building_type
 
struct  arena_type
 闘技場のモンスターエントリー構造体 / A structure type for arena entry [詳解]
 

マクロ定義

#define MAX_BLDG   32
 施設の種類最大数 / Number of buildings [詳解]
 
#define MAX_ARENA_MONS   41 /*<! 闘技場のイベント件数 -KMW- */
 
#define BUILDING_NON_MEMBER   0
 不明(現在未使用) [詳解]
 
#define BUILDING_MEMBER   1
 不明(現在未使用) [詳解]
 
#define BUILDING_OWNER   2
 施設の種族/職業条件が一致している状態値 [詳解]
 
#define ARENA_DEFEATED_OLD_VER   (-(MAX_SHORT)) /*<! 旧バージョンの闘技場敗北定義 */
 
#define MAX_KUBI   20
 
#define BACT_NOTHING   0
 
#define BACT_RESEARCH_ITEM   1
 
#define BACT_TOWN_HISTORY   2
 
#define BACT_RACE_LEGENDS   3
 
#define BACT_GREET_KING   4
 
#define BACT_KING_LEGENDS   5
 
#define BACT_QUEST   6
 
#define BACT_XXX_UNUSED   7
 
#define BACT_POSTER   8
 
#define BACT_ARENA_RULES   9
 
#define BACT_ARENA   10
 
#define BACT_ARENA_LEGENDS   11
 
#define BACT_IN_BETWEEN   12
 
#define BACT_GAMBLE_RULES   13
 
#define BACT_CRAPS   14
 
#define BACT_SPIN_WHEEL   15
 
#define BACT_DICE_SLOTS   16
 
#define BACT_REST   17
 
#define BACT_FOOD   18
 
#define BACT_RUMORS   19
 
#define BACT_RESEARCH_MONSTER   20
 
#define BACT_COMPARE_WEAPONS   21
 
#define BACT_LEGENDS   22
 
#define BACT_ENCHANT_WEAPON   23
 
#define BACT_ENCHANT_ARMOR   24
 
#define BACT_RECHARGE   25
 
#define BACT_IDENTS   26
 
#define BACT_LEARN   27
 
#define BACT_HEALING   28
 
#define BACT_RESTORE   29
 
#define BACT_ENCHANT_ARROWS   30
 
#define BACT_ENCHANT_BOW   31
 
#define BACT_GREET   32
 
#define BACT_RECALL   33
 
#define BACT_TELEPORT_LEVEL   34
 
#define BACT_LOSE_MUTATION   35
 
#define BACT_BATTLE   36
 
#define BACT_TSUCHINOKO   37
 
#define BACT_TARGET   38
 
#define BACT_KUBI   39
 
#define BACT_KANKIN   40
 
#define BACT_HEIKOUKA   41
 
#define BACT_TELE_TOWN   42
 
#define BACT_POKER   43
 
#define BACT_IDENT_ONE   44
 
#define BACT_RECHARGE_ALL   45
 
#define BACT_EVAL_AC   46
 
#define BACT_BROKEN_WEAPON   47
 
#define MAX_BACT   48
 

型定義

typedef struct building_type building_type
 

関数

void update_gambling_monsters (void)
 モンスター闘技場に参加するモンスターを更新する。 [詳解]
 
void do_cmd_bldg (void)
 施設入り口にプレイヤーが乗った際の処理 / Do building commands [詳解]
 
void clear_bldg (int min_row, int max_row)
 コンソールに表示された施設に関する情報を消去する / Clear the building information [詳解]
 
void determine_today_mon (bool conv_old)
 今日の賞金首を確定する / Determine today's bounty monster [詳解]
 
void determine_bounty_uniques (void)
 賞金首となるユニークを確定する / Determine bounty uniques [詳解]
 

変数

building_type building [MAX_BLDG]
 
bool reinit_wilderness
 
MONRACE_IDX today_mon
 
MONRACE_IDX battle_mon [4]
 
u32b mon_odds [4]
 
int battle_odds
 
PRICE kakekin
 
int sel_monster
 
const arena_type arena_info [MAX_ARENA_MONS+2]
 闘技場のモンスターID及び報酬アイテムテーブル [詳解]
 

マクロ定義詳解

◆ ARENA_DEFEATED_OLD_VER

#define ARENA_DEFEATED_OLD_VER   (-(MAX_SHORT)) /*<! 旧バージョンの闘技場敗北定義 */

◆ BACT_ARENA

#define BACT_ARENA   10

◆ BACT_ARENA_LEGENDS

#define BACT_ARENA_LEGENDS   11

◆ BACT_ARENA_RULES

#define BACT_ARENA_RULES   9

◆ BACT_BATTLE

#define BACT_BATTLE   36

◆ BACT_BROKEN_WEAPON

#define BACT_BROKEN_WEAPON   47

◆ BACT_COMPARE_WEAPONS

#define BACT_COMPARE_WEAPONS   21

◆ BACT_CRAPS

#define BACT_CRAPS   14

◆ BACT_DICE_SLOTS

#define BACT_DICE_SLOTS   16

◆ BACT_ENCHANT_ARMOR

#define BACT_ENCHANT_ARMOR   24

◆ BACT_ENCHANT_ARROWS

#define BACT_ENCHANT_ARROWS   30

◆ BACT_ENCHANT_BOW

#define BACT_ENCHANT_BOW   31

◆ BACT_ENCHANT_WEAPON

#define BACT_ENCHANT_WEAPON   23

◆ BACT_EVAL_AC

#define BACT_EVAL_AC   46

◆ BACT_FOOD

#define BACT_FOOD   18

◆ BACT_GAMBLE_RULES

#define BACT_GAMBLE_RULES   13

◆ BACT_GREET

#define BACT_GREET   32

◆ BACT_GREET_KING

#define BACT_GREET_KING   4

◆ BACT_HEALING

#define BACT_HEALING   28

◆ BACT_HEIKOUKA

#define BACT_HEIKOUKA   41

◆ BACT_IDENT_ONE

#define BACT_IDENT_ONE   44

◆ BACT_IDENTS

#define BACT_IDENTS   26

◆ BACT_IN_BETWEEN

#define BACT_IN_BETWEEN   12

◆ BACT_KANKIN

#define BACT_KANKIN   40

◆ BACT_KING_LEGENDS

#define BACT_KING_LEGENDS   5

◆ BACT_KUBI

#define BACT_KUBI   39

◆ BACT_LEARN

#define BACT_LEARN   27

◆ BACT_LEGENDS

#define BACT_LEGENDS   22

◆ BACT_LOSE_MUTATION

#define BACT_LOSE_MUTATION   35

◆ BACT_NOTHING

#define BACT_NOTHING   0

◆ BACT_POKER

#define BACT_POKER   43

◆ BACT_POSTER

#define BACT_POSTER   8

◆ BACT_QUEST

#define BACT_QUEST   6

◆ BACT_RACE_LEGENDS

#define BACT_RACE_LEGENDS   3

◆ BACT_RECALL

#define BACT_RECALL   33

◆ BACT_RECHARGE

#define BACT_RECHARGE   25

◆ BACT_RECHARGE_ALL

#define BACT_RECHARGE_ALL   45

◆ BACT_RESEARCH_ITEM

#define BACT_RESEARCH_ITEM   1

◆ BACT_RESEARCH_MONSTER

#define BACT_RESEARCH_MONSTER   20

◆ BACT_REST

#define BACT_REST   17

◆ BACT_RESTORE

#define BACT_RESTORE   29

◆ BACT_RUMORS

#define BACT_RUMORS   19

◆ BACT_SPIN_WHEEL

#define BACT_SPIN_WHEEL   15

◆ BACT_TARGET

#define BACT_TARGET   38

◆ BACT_TELE_TOWN

#define BACT_TELE_TOWN   42

◆ BACT_TELEPORT_LEVEL

#define BACT_TELEPORT_LEVEL   34

◆ BACT_TOWN_HISTORY

#define BACT_TOWN_HISTORY   2

◆ BACT_TSUCHINOKO

#define BACT_TSUCHINOKO   37

◆ BACT_XXX_UNUSED

#define BACT_XXX_UNUSED   7

◆ BUILDING_MEMBER

#define BUILDING_MEMBER   1

不明(現在未使用)

◆ BUILDING_NON_MEMBER

#define BUILDING_NON_MEMBER   0

不明(現在未使用)

◆ BUILDING_OWNER

#define BUILDING_OWNER   2

施設の種族/職業条件が一致している状態値

◆ MAX_ARENA_MONS

#define MAX_ARENA_MONS   41 /*<! 闘技場のイベント件数 -KMW- */

◆ MAX_BACT

#define MAX_BACT   48

◆ MAX_BLDG

#define MAX_BLDG   32

施設の種類最大数 / Number of buildings

◆ MAX_KUBI

#define MAX_KUBI   20

型定義詳解

◆ building_type

typedef struct building_type building_type

関数詳解

◆ clear_bldg()

void clear_bldg ( int  min_row,
int  max_row 
)

コンソールに表示された施設に関する情報を消去する / Clear the building information

消去は行毎にヌル文字列で行われる。

引数
min_row開始行番号
max_row末尾行番号
戻り値
なし
呼び出し関係図:

◆ determine_bounty_uniques()

void determine_bounty_uniques ( void  )

賞金首となるユニークを確定する / Determine bounty uniques

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

◆ determine_today_mon()

void determine_today_mon ( bool  conv_old)

今日の賞金首を確定する / Determine today's bounty monster

戻り値
なし
覚え書き
conv_old is used if loaded 0.0.3 or older save file
呼び出し関係図:

◆ do_cmd_bldg()

void do_cmd_bldg ( void  )

施設入り口にプレイヤーが乗った際の処理 / Do building commands

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

◆ update_gambling_monsters()

void update_gambling_monsters ( void  )

モンスター闘技場に参加するモンスターを更新する。

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

変数詳解

◆ arena_info

const arena_type arena_info[MAX_ARENA_MONS+2]

闘技場のモンスターID及び報酬アイテムテーブル

◆ battle_mon

MONRACE_IDX battle_mon[4]

◆ battle_odds

int battle_odds

◆ building

◆ kakekin

PRICE kakekin

◆ mon_odds

u32b mon_odds[4]

◆ reinit_wilderness

bool reinit_wilderness

◆ sel_monster

int sel_monster

◆ today_mon

MONRACE_IDX today_mon