<ClCompile Include="..\..\src\floor-events.c" />\r
<ClCompile Include="..\..\src\floor-generate.c" />\r
<ClCompile Include="..\..\src\floor-save.c" />\r
+ <ClCompile Include="..\..\src\floor-town.c" />\r
<ClCompile Include="..\..\src\floor.c" />\r
<ClCompile Include="..\..\src\geometry.c" />\r
<ClCompile Include="..\..\src\history.c" />\r
<ClInclude Include="..\..\src\floor-events.h" />\r
<ClInclude Include="..\..\src\floor-generate.h" />\r
<ClInclude Include="..\..\src\floor-save.h" />\r
+ <ClInclude Include="..\..\src\floor-town.h" />\r
<ClInclude Include="..\..\src\floor.h" />\r
<ClInclude Include="..\..\src\gameoption.h" />\r
<ClInclude Include="..\..\src\gamevalue.h" />\r
<ClCompile Include="..\..\src\object-ego.c">
<Filter>object</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\floor-town.c">
+ <Filter>floor</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\angband.h" />
<ClInclude Include="..\..\src\object-ego.h">
<Filter>object</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\floor-town.h">
+ <Filter>floor</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\angband.rc" />
#include "floor.h"
#include "cmd-pet.h"
#include "dungeon-file.h"
+#include "floor-town.h"
#include "files.h"
#include "birth.h"
#include "player-skill.h"
#include "player-move.h"
#include "spells.h"
#include "objectkind.h"
+#include "floor-town.h"
/*
*/
#include "dungeon.h"
#include "floor.h"
#include "floor-events.h"
+#include "floor-town.h"
#include "grid.h"
#include "object-curse.h"
#include "object-flavor.h"
#include "objectkind.h"
#include "object-ego.h"
#include "monsterrace.h"
+#include "floor-town.h"
dungeon_grid letter[255];
extern const concptr angband_music_basic_name[MUSIC_BASIC_MAX];
extern FLOOR_IDX max_floor_id;
extern u32b saved_floor_file_sign;
-extern TOWN_IDX max_towns;
-extern town_type *town_info;
extern s16b alloc_kind_size;
extern alloc_entry *alloc_kind_table;
extern s16b alloc_race_size;
#include "term.h"
#include "view-mainwindow.h"
#include "floor-events.h"
+#include "floor-town.h"
#include "dungeon-file.h"
#include "init.h"
#include "monster-spell.h"
--- /dev/null
+#include "angband.h"
+#include "floor-town.h"
+
+/*
+ * Maximum number of towns
+ */
+TOWN_IDX max_towns;
+
+/*
+ * The towns [max_towns]
+ */
+town_type *town_info;
--- /dev/null
+#pragma once
+
+/*
+ * A structure describing a town with
+ * stores and buildings
+ */
+typedef struct town_type town_type;
+struct town_type
+{
+ GAME_TEXT name[32];
+ u32b seed; /* Seed for RNG */
+ store_type *store; /* The stores [MAX_STORES] */
+ byte numstores;
+};
+
+extern TOWN_IDX max_towns;
+extern town_type *town_info;
#include "files.h"
#include "feature.h"
#include "floor.h"
+#include "floor-town.h"
#include "dungeon.h"
#include "rooms-vault.h"
#include "player-skill.h"
#include "wild.h"
#include "patron.h"
-#include "floor-save.h"
#include "floor.h"
+#include "floor-save.h"
+#include "floor-town.h"
#include "grid.h"
#include "cmd-pet.h"
#include "artifact.h"
#include "dungeon.h"
#include "monsterrace.h"
+#include "floor-town.h"
/*
* Display a rumor and apply its effects
#include "floor.h"
#include "floor-events.h"
#include "floor-save.h"
+#include "floor-town.h"
#include "files.h"
#include "world.h"
#include "objectkind.h"
#include "dungeon.h"
#include "floor.h"
+#include "floor-town.h"
#include "object-boost.h"
#include "object-flavor.h"
#include "object-hook.h"
#include "world.h"
#include "objectkind.h"
#include "autopick.h"
+#include "floor-town.h"
#define MIN_STOCK 12
/*
- * A structure describing a town with
- * stores and buildings
- */
-typedef struct town_type town_type;
-struct town_type
-{
- GAME_TEXT name[32];
- u32b seed; /* Seed for RNG */
- store_type *store; /* The stores [MAX_STORES] */
- byte numstores;
-};
-
-/*
* Sort-array element
*/
typedef struct tag_type tag_type;
u32b saved_floor_file_sign;
/*
- * Maximum number of towns
- */
-TOWN_IDX max_towns;
-
-/*
- * The towns [max_towns]
- */
-town_type *town_info;
-
-/*
* The size of "alloc_kind_table" (at most max_k_idx * 4)
*/
s16b alloc_kind_size;
#include "grid.h"
#include "dungeon.h"
#include "floor.h"
+#include "floor-town.h"
#include "feature.h"
#include "objectkind.h"
#include "dungeon-file.h"
#include "files.h"
#include "feature.h"
+#include "floor-town.h"
/*
* Wilderness
#include "object-flavor.h"
#include "object-hook.h"
#include "objectkind.h"
+#include "floor-town.h"
#ifdef ALLOW_SPOILERS
#include "grid.h"
#include "floor.h"
#include "floor-events.h"
+#include "floor-town.h"
#include "player-move.h"
#include "player-status.h"
#include "monster-status.h"