OSDN Git Service

7991371367422c878948025d93333cfca03102af
[hengband/hengband.git] / src / system / building-type-definition.h
1 #pragma once
2
3 /* 人畜無害なenumヘッダを先に読み込む */
4 #include "player/player-classes-types.h"
5 #include "player/player-race-types.h"
6 #include "realm/realm-types.h"
7 #include "system/angband.h"
8
9 #define MAX_BLDG 32 /*!< 施設の種類最大数 / Number of buildings */
10
11 typedef struct building_type {
12     GAME_TEXT name[20]; /* proprietor name */
13     GAME_TEXT owner_name[20]; /* proprietor name */
14     GAME_TEXT owner_race[20]; /* proprietor race */
15
16     GAME_TEXT act_names[8][30]; /* action names */
17     PRICE member_costs[8]; /* Costs for class members of building */
18     PRICE other_costs[8]; /* Costs for nonguild members */
19     char letters[8]; /* action letters */
20     BACT_IDX actions[8]; /* action codes */
21     BACT_RESTRICT_IDX action_restr[8]; /* action restrictions */
22
23     player_class_type member_class[MAX_CLASS]; /* which classes are part of guild */
24     player_race_type member_race[MAX_RACES]; /* which classes are part of guild */
25     REALM_IDX member_realm[MAX_MAGIC + 1]; /* which realms are part of guild */
26 } building_type;
27
28 extern building_type building[MAX_BLDG];