X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fstore.h;h=a6bc43a333dc362ec70af0aa335ba2bb879339c6;hb=b3009b49191beecd77a6d41425347c9d6faf648e;hp=9f731d89539b2d30430e764c6394c2e81097328f;hpb=4b34a5c9681be29ad63b78401592af8d30777d2c;p=hengband%2Fhengband.git diff --git a/src/store.h b/src/store.h index 9f731d895..a6bc43a33 100644 --- a/src/store.h +++ b/src/store.h @@ -16,6 +16,38 @@ struct owner_type byte owner_race; /* Owner race */ }; + +/* + * A store, with an owner, various state flags, a current stock + * of items, and a table of items that are often purchased. + */ +typedef struct store_type store_type; + +struct store_type +{ + byte type; /* Store type */ + + byte owner; /* Owner index */ + byte extra; /* Unused for now */ + + s16b insult_cur; /* Insult counter */ + + s16b good_buy; /* Number of "good" buys */ + s16b bad_buy; /* Number of "bad" buys */ + + s32b store_open; /* Closed until this current_world_ptr->game_turn */ + + s32b last_visit; /* Last visited on this current_world_ptr->game_turn */ + + s16b table_num; /* Table -- Number of entries */ + s16b table_size; /* Table -- Total Size of Array */ + s16b *table; /* Table -- Legal item kinds */ + + s16b stock_num; /* Stock -- Number of entries */ + s16b stock_size; /* Stock -- Total Size of Array */ + object_type *stock; /* Stock -- Actual stock items */ +}; + /* * Store types */