Hengband
2.2.1
|
データ構造 | |
struct | saved_floor_type |
マクロ定義 | |
#define | MAX_SAVED_FLOORS 20 |
保存フロアの最大数 / Maximum number of saved floors. [詳解] | |
#define | CFM_UP 0x0001 /* Move up */ |
#define | CFM_DOWN 0x0002 /* Move down */ |
#define | CFM_LONG_STAIRS 0x0004 /* Randomly occurred long stairs/shaft */ |
#define | CFM_XXX 0x0008 /* XXX */ |
#define | CFM_SHAFT 0x0010 /* Shaft */ |
#define | CFM_RAND_PLACE 0x0020 /* Arrive at random grid */ |
#define | CFM_RAND_CONNECT 0x0040 /* Connect with random stairs */ |
#define | CFM_SAVE_FLOORS 0x0080 /* Save floors */ |
#define | CFM_NO_RETURN 0x0100 /* Flee from random quest etc... */ |
#define | CFM_FIRST_FLOOR 0x0200 /* Create exit from the dungeon */ |
関数 | |
void | init_saved_floors (bool force) |
保存フロア配列を初期化する / Initialize saved_floors array. [詳解] | |
void | change_floor (player_type *creature_ptr) |
フロアの切り替え処理 / Enter new floor. [詳解] | |
void | leave_floor (player_type *creature_ptr) |
現在のフロアを離れるに伴って行なわれる保存処理 / Maintain quest monsters, mark next floor_id at stairs, save current floor, and prepare to enter next floor. [詳解] | |
void | clear_saved_floor_files (void) |
保存フロア用テンポラリファイルを削除する / Kill temporal files [詳解] | |
saved_floor_type * | get_sf_ptr (FLOOR_IDX floor_id) |
保存フロアIDから参照ポインタを得る / Get a pointer for an item of the saved_floors array. [詳解] | |
FLOOR_IDX | get_new_floor_id (void) |
新規に利用可能な保存フロアを返す / Initialize new saved floor and get its floor id. [詳解] | |
void | prepare_change_floor_mode (BIT_FLAGS mode) |
フロア切り替え時の処理フラグを追加する / Prepare mode flags of changing floor [詳解] | |
void | precalc_cur_num_of_pet (void) |
フロア移動時にペットを伴った場合の準備処理 / Pre-calculate the racial counters of preserved pets [詳解] | |
変数 | |
u32b | saved_floor_file_sign |
FLOOR_IDX | max_floor_id |
#define CFM_DOWN 0x0002 /* Move down */ |
#define CFM_FIRST_FLOOR 0x0200 /* Create exit from the dungeon */ |
#define CFM_LONG_STAIRS 0x0004 /* Randomly occurred long stairs/shaft */ |
#define CFM_NO_RETURN 0x0100 /* Flee from random quest etc... */ |
#define CFM_RAND_CONNECT 0x0040 /* Connect with random stairs */ |
#define CFM_RAND_PLACE 0x0020 /* Arrive at random grid */ |
#define CFM_SAVE_FLOORS 0x0080 /* Save floors */ |
#define CFM_SHAFT 0x0010 /* Shaft */ |
#define CFM_UP 0x0001 /* Move up */ |
#define CFM_XXX 0x0008 /* XXX */ |
#define MAX_SAVED_FLOORS 20 |
保存フロアの最大数 / Maximum number of saved floors.
void change_floor | ( | player_type * | creature_ptr | ) |
フロアの切り替え処理 / Enter new floor.
If the floor is an old saved floor, it will be
restored from the temporal file. If the floor is new one, new p_ptr->current_floor_ptr->grid_array
will be generated.
void clear_saved_floor_files | ( | void | ) |
保存フロア用テンポラリファイルを削除する / Kill temporal files
Should be called just before the game quit.
FLOOR_IDX get_new_floor_id | ( | void | ) |
新規に利用可能な保存フロアを返す / Initialize new saved floor and get its floor id.
If number of saved floors are already MAX_SAVED_FLOORS, kill the oldest one.
saved_floor_type* get_sf_ptr | ( | FLOOR_IDX | floor_id | ) |
保存フロアIDから参照ポインタを得る / Get a pointer for an item of the saved_floors array.
floor_id | 保存フロアID |
void init_saved_floors | ( | bool | force | ) |
保存フロア配列を初期化する / Initialize saved_floors array.
force | テンポラリファイルが残っていた場合も警告なしで強制的に削除する。 |
Make sure that old temporal files are not remaining as gurbages.
void leave_floor | ( | player_type * | creature_ptr | ) |
現在のフロアを離れるに伴って行なわれる保存処理 / Maintain quest monsters, mark next floor_id at stairs, save current floor, and prepare to enter next floor.
void precalc_cur_num_of_pet | ( | void | ) |
フロア移動時にペットを伴った場合の準備処理 / Pre-calculate the racial counters of preserved pets
To prevent multiple generation of unique monster who is the minion of player
void prepare_change_floor_mode | ( | BIT_FLAGS | mode | ) |
フロア切り替え時の処理フラグを追加する / Prepare mode flags of changing floor
mode | 追加したい所持フラグ |
FLOOR_IDX max_floor_id |
u32b saved_floor_file_sign |