OSDN Git Service

[Refactor] #37353 player-class.c/h を作成して player_magic 構造体と関連変数を移動.
[hengband/hengband.git] / src / player-class.h
1 #pragma once
2
3 /*
4  * Information about the player's "magic"
5  *
6  * Note that a player with a "spell_book" of "zero" is illiterate.
7  */
8
9 typedef struct player_magic player_magic;
10
11 struct player_magic
12 {
13         OBJECT_TYPE_VALUE spell_book; /* Tval of spell books (if any) */
14         int spell_xtra;         /* Something for later */
15
16         int spell_stat;         /* Stat for spells (if any)  */
17         int spell_type;         /* Spell type (mage/priest) */
18
19         int spell_first;                /* Level of first spell */
20         int spell_weight;               /* Weight that hurts spells */
21
22         magic_type info[MAX_MAGIC][32];    /* The available spells */
23 };
24
25 extern player_magic *m_info;
26 extern const player_magic *mp_ptr;