OSDN Git Service

Merge remote-tracking branch 'remotes/origin/For2.2.2-Fix-Hourier' into For2.2.2...
[hengband/hengband.git] / src / player / player-class.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "object/tval-types.h"
5 #include "spell/technic-info-table.h"
6 #include "player/player-status.h"
7 #include "player/player-classes-table.h"
8
9 /*
10  * 職業ごとの選択可能な魔法領域現在の所 bitrh.c でのみ使用。
11  * Possible realms that can be chosen currently used only by birth.c.
12  */
13 #define CH_NONE         0x00
14 #define CH_LIFE         0x01
15 #define CH_SORCERY      0x02
16 #define CH_NATURE       0x04
17 #define CH_CHAOS        0x08
18 #define CH_DEATH        0x10
19 #define CH_TRUMP        0x20
20 #define CH_ARCANE       0x40
21 #define CH_ENCHANT      0x80
22 #define CH_DAEMON       0x100
23 #define CH_CRUSADE      0x200
24
25 #define CH_MUSIC        0x08000 /* This is 16th bit */
26 #define CH_HISSATSU     0x10000
27 #define CH_HEX          0x20000
28
29 #define IS_WIZARD_CLASS(C) \
30         ((C)->pclass == CLASS_MAGE || (C)->pclass == CLASS_HIGH_MAGE || (C)->pclass == CLASS_SORCERER || \
31         (C)->pclass == CLASS_MAGIC_EATER || (C)->pclass == CLASS_BLUE_MAGE)
32
33 /*
34  * Information about the player's "magic"
35  *
36  * Note that a player with a "spell_book" of "zero" is illiterate.
37  */
38
39 typedef struct player_magic player_magic;
40
41 struct player_magic
42 {
43         tval_type spell_book; /* Tval of spell books (if any) */
44         int spell_xtra;         /* Something for later */
45
46         int spell_stat;         /* Stat for spells (if any)  */
47         int spell_type;         /* Spell type (mage/priest) */
48
49         int spell_first;                /* Level of first spell */
50         int spell_weight;               /* Weight that hurts spells */
51
52         magic_type info[MAX_MAGIC][32];    /* The available spells */
53 };
54
55 extern player_magic *m_info;
56 extern const player_magic *mp_ptr;
57
58 /*
59  * Player class info
60  */
61
62 typedef struct player_class player_class;
63
64 struct player_class
65 {
66         concptr title;                  /* Type of class */
67
68 #ifdef JP
69         concptr E_title;                /* 英語職業 */
70 #endif
71         s16b c_adj[6];          /* Class stat modifier */
72
73         s16b c_dis;                     /* class disarming */
74         s16b c_dev;                     /* class magic devices */
75         s16b c_sav;                     /* class saving throws */
76         s16b c_stl;                     /* class stealth */
77         s16b c_srh;                     /* class searching ability */
78         s16b c_fos;                     /* class searching frequency */
79         s16b c_thn;                     /* class to hit (normal) */
80         s16b c_thb;                     /* class to hit (bows) */
81
82         s16b x_dis;                     /* extra disarming */
83         s16b x_dev;                     /* extra magic devices */
84         s16b x_sav;                     /* extra saving throws */
85         s16b x_stl;                     /* extra stealth */
86         s16b x_srh;                     /* extra searching ability */
87         s16b x_fos;                     /* extra searching frequency */
88         s16b x_thn;                     /* extra to hit (normal) */
89         s16b x_thb;                     /* extra to hit (bows) */
90
91         s16b c_mhp;                     /* Class hit-dice adjustment */
92         s16b c_exp;                     /* Class experience factor */
93
94         byte pet_upkeep_div; /* Pet upkeep divider */
95 };
96
97 extern const player_class *cp_ptr;
98 extern const player_class class_info[MAX_CLASS];
99
100 extern const s32b realm_choices1[];
101 extern const s32b realm_choices2[];
102 extern const concptr player_title[MAX_CLASS][10];