FEAT_SUBTYPE subtype; /*!< 副特性値 */
FEAT_POWER power; /*!< 地形強度 */
- SYMBOL_COLOR d_attr[F_LIT_MAX]; /*!< デフォルトの地形シンボルカラー / Default feature attribute */
+ TERM_COLOR d_attr[F_LIT_MAX]; /*!< デフォルトの地形シンボルカラー / Default feature attribute */
SYMBOL_CODE d_char[F_LIT_MAX]; /*!< デフォルトの地形シンボルアルファベット / Default feature character */
- SYMBOL_COLOR x_attr[F_LIT_MAX]; /*!< 設定変更後の地形シンボルカラー / Desired feature attribute */
+ TERM_COLOR x_attr[F_LIT_MAX]; /*!< 設定変更後の地形シンボルカラー / Desired feature attribute */
SYMBOL_CODE x_char[F_LIT_MAX]; /*!< 設定変更後の地形シンボルアルファベット / Desired feature character */
};
DEPTH level; /*!< ベースアイテムの基本生成階 / Level */
BIT_FLAGS8 extra; /*!< その他色々のビットフラグ配列 / Something */
- SYMBOL_COLOR d_attr; /*!< デフォルトのアイテムシンボルカラー / Default object attribute */
+ TERM_COLOR d_attr; /*!< デフォルトのアイテムシンボルカラー / Default object attribute */
SYMBOL_CODE d_char; /*!< デフォルトのアイテムシンボルアルファベット / Default object character */
- SYMBOL_COLOR x_attr; /*!< 設定変更後のアイテムシンボルカラー / Desired object attribute */
+ TERM_COLOR x_attr; /*!< 設定変更後のアイテムシンボルカラー / Desired object attribute */
SYMBOL_CODE x_char; /*!< 設定変更後のアイテムシンボルアルファベット / Desired object character */
IDX flavor; /*!< 調査中(TODO) / Special object flavor (or zero) */
byte cur_num; /*! 現在の生成数 / Number created (0 or 1) */
byte max_num; /*! (未使用)最大生成数 / Unused (should be "1") */
- s16b floor_id; /*! アイテムを落としたフロアのID / Leaved on this location last time */
+ FLOOR_IDX floor_id; /*! アイテムを落としたフロアのID / Leaved on this location last time */
byte act_idx; /*! 発動能力ID / Activative ability index */
};
DEPTH level; /* Level of creature */
RARITY rarity; /* Rarity of creature */
-
- SYMBOL_COLOR d_attr; /* Default monster attribute */
+ TERM_COLOR d_attr; /* Default monster attribute */
SYMBOL_CODE d_char; /* Default monster character */
-
- SYMBOL_COLOR x_attr; /* Desired monster attribute */
+ TERM_COLOR x_attr; /* Desired monster attribute */
SYMBOL_CODE x_char; /* Desired monster character */
WEIGHT weight; /* Item weight */
- IDX name1; /* Artifact type, if any */
- IDX name2; /* Ego-Item type, if any */
+ ARTIFACT_IDX name1; /* Artifact type, if any */
+ EGO_IDX name2; /* Ego-Item type, if any */
XTRA8 xtra1; /* Extra info type (now unused) */
XTRA8 xtra2; /* Extra info activation index */
TIME_EFFECT timeout; /* Timeout Counter */
byte ident; /* Special flags */
-
byte marked; /* Object is marked */
u16b inscription; /* Inscription index */
BIT_FLAGS art_flags[TR_FLAG_SIZE]; /* Extra Flags for ego and artifacts */
BIT_FLAGS curse_flags; /* Flags for curse */
- IDX next_o_idx; /* Next object in stack (if any) */
- IDX held_m_idx; /* Monster holding us (if any) */
+ OBJECT_IDX next_o_idx; /* Next object in stack (if any) */
+ MONSTER_IDX held_m_idx; /* Monster holding us (if any) */
ARTIFACT_BIAS_IDX artifact_bias; /*!< ランダムアーティファクト生成時のバイアスID */
};
/*
* Monster information, for a specific monster.
- *
* Note: fy, fx constrain dungeon size to 256x256
- *
* The "hold_o_idx" field points to the first object of a stack
* of objects (if any) being carried by the monster (see above).
*/
struct monster_type
{
MONRACE_IDX r_idx; /* Monster race index */
- IDX ap_r_idx; /* Monster race appearance index */
+ MONRACE_IDX ap_r_idx; /* Monster race appearance index */
byte sub_align; /* Sub-alignment for a neutral monster */
POSITION fy; /* Y location on map */
HIT_POINT hp; /* Current Hit points */
HIT_POINT maxhp; /* Max Hit points */
HIT_POINT max_maxhp; /* Max Max Hit points */
- u32b dealt_damage; /* Sum of damages dealt by player */
+ HIT_POINT dealt_damage; /* Sum of damages dealt by player */
TIME_EFFECT mtimed[MAX_MTIMED]; /* Timed status counter */
s16b today_mon; /* Wanted monster */
bool dtrap; /* Whether you are on trap-safe grids */
- s16b floor_id; /* Current floor location */
+ FLOOR_IDX floor_id; /* Current floor location */
bool autopick_autoregister; /* auto register is in-use or not */
IDX health_who; /* Health bar trackee */
- IDX monster_race_idx; /* Monster race trackee */
+ MONRACE_IDX monster_race_idx; /* Monster race trackee */
- IDX object_kind_idx; /* Object kind trackee */
+ KIND_OBJECT_IDX object_kind_idx; /* Object kind trackee */
s16b new_spells; /* Number of spells available */
s16b old_spells;
ALIGNMENT align; /* Good/evil/neutral */
POSITION run_py;
POSITION run_px;
+ DIRECTION fishing_dir;
/*** Extracted fields ***/
struct birther
{
byte psex; /* Sex index */
- byte prace; /* Race index */
- byte pclass; /* Class index */
- byte pseikaku; /* Seikaku index */
+ RACE_IDX prace; /* Race index */
+ CLASS_IDX pclass; /* Class index */
+ CHARACTER_IDX pseikaku; /* Seikaku index */
REALM_IDX realm1; /* First magic realm */
REALM_IDX realm2; /* Second magic realm */
int index;
};
-typedef bool (*monster_hook_type)(MONRACE_IDX r_idx);
+typedef bool (*monsterrace_hook_type)(MONRACE_IDX r_idx);
/*
typedef struct {
cptr name; /*!< 自動拾い/破壊定義の名称一致基準 / Items which have 'name' as part of its name match */
cptr insc; /*!< 対象となったアイテムに自動で刻む内容 / Items will be auto-inscribed as 'insc' */
- u32b flag[2]; /*!< キーワードに関する汎用的な条件フラグ / Misc. keyword to be matched */
+ BIT_FLAGS flag[2]; /*!< キーワードに関する汎用的な条件フラグ / Misc. keyword to be matched */
byte action; /*!< 対象のアイテムを拾う/破壊/放置するかの指定フラグ / Auto-pickup or Destroy or Leave items */
byte dice; /*!< 武器のダイス値基準値 / Weapons which have more than 'dice' dice match */
byte bonus; /*!< アイテムのボーナス基準値 / Items which have more than 'bonus' magical bonus match */
*/
typedef struct
{
- s16b floor_id; /* No recycle until 65536 IDs are all used */
+ FLOOR_IDX floor_id; /* No recycle until 65536 IDs are all used */
s16b savefile_id; /* ID for savefile (from 0 to MAX_SAVED_FLOOR) */
DEPTH dun_level;
s32b last_visit; /* Time count of last visit. 0 for new floor. */
typedef struct
{
BIT_FLAGS info;
- s16b feat;
- s16b mimic;
+ FEAT_IDX feat;
+ FEAT_IDX mimic;
s16b special;
u16b occurrence;
} cave_template_type;
*/
typedef struct
{
- s16b r_idx; /*!< 闘技場のモンスター種族ID(0ならば表彰式) / Monster (0 means victory prizing) */
- byte tval; /*!< モンスター打倒後に得られるアイテムの大カテゴリID / tval of prize (0 means no prize) */
- byte sval; /*!< モンスター打倒後に得られるアイテムの小カテゴリID / sval of prize */
+ MONRACE_IDX r_idx; /*!< 闘技場のモンスター種族ID(0ならば表彰式) / Monster (0 means victory prizing) */
+ OBJECT_TYPE_VALUE tval; /*!< モンスター打倒後に得られるアイテムの大カテゴリID / tval of prize (0 means no prize) */
+ OBJECT_SUBTYPE_VALUE sval; /*!< モンスター打倒後に得られるアイテムの小カテゴリID / sval of prize */
} arena_type;
typedef struct {
int run; /* Remaining grid number */
int cost[MAX_HGT][MAX_WID];
- int x; /* Target X */
- int y; /* Target Y */
- int dir; /* Running direction */
+ POSITION x; /* Target X */
+ POSITION y; /* Target Y */
+ DIRECTION dir; /* Running direction */
} travel_type;
#endif
s32b value;
struct {
int constant;
- int dice;
+ DICE_NUMBER dice;
} timeout;
cptr desc;
} activation_type;