OSDN Git Service

Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband
[hengband/hengband.git] / src / load / dummy-loader.c
1 #include "load/dummy-loader.h"
2 #include "load/angband-version-comparer.h"
3 #include "load/load-util.h"
4 #include "load/monster-loader.h"
5 #include "system/floor-type-definition.h"
6 #include "system/monster-type-definition.h"
7
8 /*!
9  * @brief ダミーバイトを読み込む
10  * @param なし
11  * @return なし
12  * @details もはや何に使われていたのか不明
13  */
14 void rd_dummy1(void)
15 {
16     s16b tmp16s;
17     rd_s16b(&tmp16s);
18     for (int i = 0; i < tmp16s; i++) {
19         s16b tmp16s2;
20         rd_s16b(&tmp16s2);
21     }
22 }
23
24 /*!
25  * @brief ダミーバイトを読み込む
26  * @param なし
27  * @return なし
28  * @details もはや何に使われていたのか不明
29  */
30 void rd_dummy2(void)
31 {
32     byte tmp8u;
33     for (int i = 0; i < 48; i++)
34         rd_byte(&tmp8u);
35
36     strip_bytes(12);
37 }
38
39 /*!
40  * @brief 馬鹿馬鹿蛮怒 v1.5.0より大きなバージョンにおいて、ダミーでモンスターを読み込む
41  * @param creature_ptr プレーヤーへの参照ポインタ
42  * @return なし
43  * @details もはや何に使われていたのか不明
44  */
45 void rd_dummy_monsters(player_type *creature_ptr)
46 {
47     if (h_older_than(1, 5, 0, 2))
48         return;
49
50     s16b tmp16s;
51     rd_s16b(&tmp16s);
52     for (int i = 0; i < tmp16s; i++) {
53         monster_type dummy_mon;
54         rd_monster(creature_ptr, &dummy_mon);
55     }
56 }
57
58 /*!
59  * @brief ダミー情報スキップ / Strip the "ghost" info
60  * @return なし
61  * @details
62  * This is such a nasty hack it hurts.
63  */
64 void rd_ghost(void)
65 {
66     char buf[64];
67     rd_string(buf, sizeof(buf));
68     strip_bytes(60);
69 }
70
71 void rd_dummy3(void)
72 {
73     u32b tmp32u;
74     rd_u32b(&tmp32u);
75
76     u16b tmp16u;
77     rd_u16b(&tmp16u);
78
79     byte tmp8u;
80     rd_byte(&tmp8u);
81 }