#include "shoot.h"
#include "view-mainwindow.h"
+
+/*
+ * Buildings
+ */
+building_type building[MAX_BLDG];
+
+
/*!
* @brief 闘技場のモンスターID及び報酬アイテムテーブル
*/
#pragma once
/*
+ * A structure to describe a building.
+ * From Kamband
+ */
+typedef struct building_type building_type;
+
+struct building_type
+{
+ GAME_TEXT name[20]; /* proprietor name */
+ GAME_TEXT owner_name[20]; /* proprietor name */
+ GAME_TEXT owner_race[20]; /* proprietor race */
+
+ GAME_TEXT act_names[8][30]; /* action names */
+ PRICE member_costs[8]; /* Costs for class members of building */
+ PRICE other_costs[8]; /* Costs for nonguild members */
+ char letters[8]; /* action letters */
+ BACT_IDX actions[8]; /* action codes */
+ BACT_RESTRICT_IDX action_restr[8]; /* action restrictions */
+
+ CLASS_IDX member_class[MAX_CLASS]; /* which classes are part of guild */
+ RACE_IDX member_race[MAX_RACES]; /* which classes are part of guild */
+ REALM_IDX member_realm[MAX_MAGIC + 1]; /* which realms are part of guild */
+};
+
+extern building_type building[MAX_BLDG];
+
+/*
* Buildings actions
*/
#define BACT_NOTHING 0
#include "files.h"
#include "player-skill.h"
#include "floor.h"
+#include "bldg.h"
dungeon_grid letter[255];
extern monsterrace_hook_type get_mon_num_hook;
extern monsterrace_hook_type get_mon_num2_hook;
extern bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
-extern building_type building[MAX_BLDG];
+
extern QUEST_IDX max_q_idx;
extern MONRACE_IDX max_r_idx;
extern KIND_OBJECT_IDX max_k_idx;
#include "util.h"
#include "artifact.h"
+#include "bldg.h"
#include "init.h"
#include "quest.h"
#include "trap.h"
};
-/*
- * A structure to describe a building.
- * From Kamband
- */
-typedef struct building_type building_type;
-
-struct building_type
-{
- GAME_TEXT name[20]; /* proprietor name */
- GAME_TEXT owner_name[20]; /* proprietor name */
- GAME_TEXT owner_race[20]; /* proprietor race */
-
- GAME_TEXT act_names[8][30]; /* action names */
- PRICE member_costs[8]; /* Costs for class members of building */
- PRICE other_costs[8]; /* Costs for nonguild members */
- char letters[8]; /* action letters */
- BACT_IDX actions[8]; /* action codes */
- BACT_RESTRICT_IDX action_restr[8]; /* action restrictions */
-
- CLASS_IDX member_class[MAX_CLASS]; /* which classes are part of guild */
- RACE_IDX member_race[MAX_RACES]; /* which classes are part of guild */
- REALM_IDX member_realm[MAX_MAGIC+1]; /* which realms are part of guild */
-};
-
-
/* Border */
typedef struct border_type border_type;
struct border_type
bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
/*
- * Buildings
- */
-building_type building[MAX_BLDG];
-
-
-/*
* Maximum number of quests
*/
QUEST_IDX max_q_idx;
#include "angband.h"
#include "util.h"
+#include "bldg.h"
#include "cmd-pet.h"
#include "dungeon-file.h"
#include "object-curse.h"