OSDN Git Service

[Refactor] #37353 command_* を util.c/h に移動.
[hengband/hengband.git] / src / world.h
1 #pragma once
2
3 typedef struct {
4
5         POSITION max_wild_x; /*!< Maximum size of the wilderness */
6         POSITION max_wild_y; /*!< Maximum size of the wilderness */
7         GAME_TURN game_turn;                    /*!< 画面表示上のゲーム時間基準となるターン / Current game turn */
8         GAME_TURN game_turn_limit;              /*!< game_turnの最大値 / Limit of game_turn */
9         GAME_TURN dungeon_turn;                 /*!< NASTY生成の計算に関わる内部ターン値 / Game current_world_ptr->game_turn in dungeon */
10         GAME_TURN dungeon_turn_limit;   /*!< dungeon_turnの最大値 / Limit of game_turn in dungeon */
11         GAME_TURN arena_start_turn;             /*!< 闘技場賭博の開始ターン値 */
12
13         MONSTER_IDX timewalk_m_idx;     /*!< 現在時間停止を行っているモンスターのID */
14
15         MONRACE_IDX bounty_r_idx[MAX_KUBI];
16
17         u32b play_time; /*!< 実プレイ時間 */
18
19         u32b seed_flavor;               /* Hack -- consistent object colors */
20         u32b seed_town;                 /* Hack -- consistent town layout */
21
22         bool is_loading_now;    /*!< ロード処理中フラグ...ロード直後にcalc_bonus()時の徳変化、及びsanity_blast()による異常を抑止する */
23
24         /*
25          * Savefile version
26          */
27         byte h_ver_major; /* Savefile version for Hengband 1.1.1 and later */
28         byte h_ver_minor;
29         byte h_ver_patch;
30         byte h_ver_extra;
31
32         byte sf_extra;          /* Savefile's encoding key */
33
34         byte z_major;           /* Savefile version for Hengband */
35         byte z_minor;
36         byte z_patch;
37
38         /*
39          * Savefile information
40          */
41         u32b sf_system;                 /* Operating system info */
42         u32b sf_when;                   /* Time when savefile created */
43         u16b sf_lives;                  /* Number of past "lives" with this file */
44         u16b sf_saves;                  /* Number of "saves" during this life */
45
46         bool character_generated;       /* The character exists */
47         bool character_dungeon;         /* The character has a dungeon */
48         bool character_loaded;          /* The character was loaded from a savefile */
49         bool character_saved;           /* The character was just saved to a savefile */
50
51         bool character_icky;            /* The game is in an icky full screen mode */
52         bool character_xtra;            /* The game is in an icky startup mode */
53
54         bool creating_savefile;         /* New savefile is currently created */
55
56 } world_type;
57
58 extern bool is_daytime(void);
59 extern void extract_day_hour_min(int *day, int *hour, int *min);
60 extern world_type *current_world_ptr;