#include "realm.h"
/*
- * 職業ごとの選択可能な魔法領域現在の所 bitrh.cとtables.cでのみ使用。
- * Possible realms that can be chosen currently used only by birth.c and tables.c
+ * 職業ごとの選択可能な魔法領域現在の所 bitrh.c でのみ使用。
+ * Possible realms that can be chosen currently used only by birth.c.
*/
#define CH_NONE 0x00
#define CH_LIFE 0x01
#define CLASS_MIRROR_MASTER 25
#define CLASS_NINJA 26
#define CLASS_SNIPER 27
+#define MAX_CLASS 28 /*!< 職業の最大定義数 Maximum number of player "class" types (see "table.c", etc) */
-#define IS_WIZARD_CLASS() \
- (p_ptr->pclass == CLASS_MAGE || p_ptr->pclass == CLASS_HIGH_MAGE || p_ptr->pclass == CLASS_SORCERER || p_ptr->pclass == CLASS_MAGIC_EATER || p_ptr->pclass == CLASS_BLUE_MAGE)
+#define IS_WIZARD_CLASS(C) \
+ ((C)->pclass == CLASS_MAGE || (C)->pclass == CLASS_HIGH_MAGE || (C)->pclass == CLASS_SORCERER || \
+ (C)->pclass == CLASS_MAGIC_EATER || (C)->pclass == CLASS_BLUE_MAGE)
/*
* Information about the player's "magic"