forked from bvschaik/julius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcount.h
70 lines (60 loc) · 1.8 KB
/
count.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
64
65
66
67
68
69
70
#ifndef BUILDING_COUNT_H
#define BUILDING_COUNT_H
#include "core/buffer.h"
#include "building/type.h"
#include "game/resource.h"
/**
* @file
* Building totals
*/
/**
* Updates the building counts and does some extra work on the side
*/
void building_count_update(void);
/**
* Returns the active building count for the type
* @param type Building type
* @return Number of active buildings
*/
int building_count_active(building_type type);
/**
* Returns the building count for the type
* @param type Building type
* @return Total number of buildings
*/
int building_count_total(building_type type);
/**
* Returns the active building count for the resource type
* @param resource Resource type
* @return Number of active buildings
*/
int building_count_industry_active(resource_type resource);
/**
* Returns the building count for the resource type
* @param resource Resource type
* @return Total number of buildings
*/
int building_count_industry_total(resource_type resource);
/**
* Save the building counts
* @param industry Buffer for industry
* @param culture1 Culture part 1
* @param culture2 Culture part 2 (schools)
* @param culture3 Culture part 3 (temples)
* @param military Military
* @param support Market and water
*/
void building_count_save_state(
buffer *industry, buffer *culture1, buffer *culture2, buffer *culture3, buffer *military, buffer *support);
/**
* Load the building counts
* @param industry Buffer for industry
* @param culture1 Culture part 1
* @param culture2 Culture part 2 (schools)
* @param culture3 Culture part 3 (temples)
* @param military Military
* @param support Market and water
*/
void building_count_load_state(
buffer *industry, buffer *culture1, buffer *culture2, buffer *culture3, buffer *military, buffer *support);
#endif // BUILDING_COUNT_H