OSDN Git Service

Merge branch 'develop' into macos-develop
[hengbandforosx/hengbandosx.git] / src / floor / floor-save-util.cpp
1 #include "floor/floor-save-util.h"
2
3 /*
4  * Sign for current process used in temporary files.
5  * Actually it is the start time of current process.
6  */
7 uint32_t saved_floor_file_sign;
8 saved_floor_type saved_floors[MAX_SAVED_FLOORS];
9 FLOOR_IDX max_floor_id; /*!< Number of floor_id used from birth */
10 FLOOR_IDX new_floor_id; /*!<次のフロアのID / floor_id of the destination */
11 uint32_t latest_visit_mark; /*!<フロアを渡った回数?(確認中) / Max number of visit_mark */
12 MonsterEntity party_mon[MAX_PARTY_MON]; /*!< フロア移動に保存するペットモンスターの配列 */
13
14 /*!
15  * @brief フロアIDが0でないとき、すなわち保存済フロアの場合真を返す。
16  * @param sf_ptr 保存フロアのポインタ
17  * @return フロアIDが0でないときtrue、0のときfalseを返す。
18  */
19 bool is_saved_floor(saved_floor_type *sf_ptr)
20 {
21     return sf_ptr->floor_id != 0;
22 }