-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.h
63 lines (38 loc) · 1.21 KB
/
io.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 INTERFACE_H_INCLUDED
#define INTERFACE_H_INCLUDED
#include "city.h"
enum t_endings{
ENDING_FAILURE,
ENDING_AVERAGE,
ENDING_VICTORY,
ENDING_CRUELTY,
ENDING_NONE
};
void greetings();
#ifndef CLASSIC_MODE
#define LENGTH_LINE 512
char** get_line(char* line[512],char* tokens[3]);
void get_grain_amount(int amount,t_city* city);
void get_land_amount(int amount,t_city* city);
#endif // CLASSIC_MODE
void ending_management(t_city city);
#ifndef CLASSIC_MODE
void tokens_management(char* token,t_city* city);
#endif // CLASSIC_MODE
void managing_start_of_turn(t_city* city);
void final_bilan(t_city city);
void steward_quits();
void printing_turn_infos(t_city city);
void announcing_plague();
void not_enough_grain(t_city city);
void not_enough_land(t_city city);
void not_enough_pop(t_city city);
void goodbye_message();
#ifdef CLASSIC_MODE
void classic_turn_management(t_city* city);
void classic_grain_management_feed(t_city* city);
void classic_culture_management(t_city* city);
void classic_land_management_buy(t_city* city);
void classic_land_management_sell(t_city* city);
#endif // CLASSIC_MODE
#endif // INTERFACE_H_INCLUDED