Proper Subversion configuration.
[newkind] / trade.h
CommitLineData
84bbd123 1/*
2 * Elite - The New Kind.
3 *
4 * Reverse engineered from the BBC disk version of Elite.
5 * Additional material by C.J.Pinder.
6 *
7 * The original Elite code is (C) I.Bell & D.Braben 1984.
8 * This version re-engineered in C by C.J.Pinder 1999-2001.
9 *
10 * email: <christian@newkind.co.uk>
11 *
12 *
13 */
14
15/*
16 * trade.h
17 */
18
19#ifndef TRADE_H
20#define TRADE_H
21
22struct stock_item
23{
24 char name[16];
25 int current_quantity;
26 int current_price;
27 int base_price;
28 int eco_adjust;
29 int base_quantity;
30 int mask;
31 int units;
32};
33
34
35#define NO_OF_STOCK_ITEMS 17
36#define ALIEN_ITEMS_IDX 16
37
38extern struct stock_item stock_market[NO_OF_STOCK_ITEMS];
39
40void generate_stock_market (void);
41void set_stock_quantities(int *quant);
42int carrying_contraband (void);
43int total_cargo (void);
44void scoop_item (int un);
45
46#endif
47