From c8a270e51dc22f39ed048ab1cc609e6e456df58f Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 7 Jun 2015 17:49:09 +0200 Subject: Split types.h into separate header for each type --- src/town_type.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/town_type.hpp (limited to 'src/town_type.hpp') diff --git a/src/town_type.hpp b/src/town_type.hpp new file mode 100644 index 00000000..f8458c60 --- /dev/null +++ b/src/town_type.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include "h-basic.h" +#include "store_type_fwd.hpp" + +/** + * Town descriptor. + */ +struct town_type +{ + cptr name; + u32b seed; /* Seed for RNG */ + store_type *store; /* The stores [max_st_idx] */ + byte numstores; + + byte flags; /* Town flags */ + /* Left this for the sake of compatibility */ + bool_ stocked; /* Is the town actualy stocked ? */ + + bool_ destroyed; /* Is the town destroyed? */ +}; -- cgit v1.2.3