-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
63 lines (46 loc) · 854 Bytes
/
game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef _GAME_H_
#define _GAME_H_
#define START_MONEY 10000
#define START_RAW 4
#define START_PRODUCTION 2
#define START_FACTORY 2
#define COSTS_RAW 300
#define COSTS_PRODUCTION 500
#define COSTS_FACTORY 1000
#define PRICE_PROD 2000
#define HALF_PRICE_FACTORY 2500
#define WAIT_BUILD 5
struct fctr
{
int startMonth;
struct fctr * next;
};
struct build
{
struct fctr * first;
struct fctr * last;
};
struct stuff
{
int money;
int raw;
int order;
int product;
int factory;
int cntBuild;
struct build * project;
};
struct banker
{
int state;
int month;
struct auction * buy;
struct auction * sell;
struct clientlist * clList;
};
void InitStuff (struct stuff *);
void CreateBank (struct banker **, char **);
void GameCycle (struct banker *);
char * GetBuyPrice (struct banker *);
char * GetSellPrice (struct banker *);
#endif