[go: up one dir, main page]

File: stats.h

package info (click to toggle)
lincity 1.13.1-16
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 7,296 kB
  • sloc: ansic: 32,746; sh: 8,578; makefile: 584; perl: 445; yacc: 316; sed: 16
file content (103 lines) | stat: -rw-r--r-- 2,770 bytes parent folder | download | duplicates (11)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* ---------------------------------------------------------------------- *
 * stats.h
 * This file is part of lincity.
 * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2002.
 * Portions copyright (c) Corey Keasling, 2000-2002.
 * ---------------------------------------------------------------------- */

#ifndef __stats_h__
#define __stats_h__ 

/* Statistics, Accumulators and Counters all reside here */

/* Daily accumulators */

/*
  Note on variables (GCS):
  --
  Variables that begin with a "t" (e.g. tpopulation) are monthly 
  accumulators.  They are initialized to zero on the first day of 
  the month.
  --
  The yearly accumulators have no prefix (e.g. income_tax).
  --
  The daily accumulators have no prefix either (e.g. population).
  --
  Variables that begin with a "ly" (Last Year;  e.g. ly_university_cost)
  are yearly display variables.  They will be displayed in the mini-map
  when the user clicks on the pound sterling icon.
*/

/* daily */
extern int food_in_markets; 
extern int jobs_in_markets; 
extern int coal_in_markets; 
extern int goods_in_markets; 
extern int ore_in_markets; 
extern int steel_in_markets; 
extern int waste_in_markets; 

/* monthly */
extern int tfood_in_markets; 
extern int tjobs_in_markets; 
extern int tcoal_in_markets; 
extern int tgoods_in_markets; 
extern int tore_in_markets; 
extern int tsteel_in_markets; 
extern int twaste_in_markets;
extern int tpopulation; 
extern int tstarving_population; 
extern int tunemployed_population; 
extern int twaste_in_markets;

/* yearly */
extern int income_tax; 
extern int coal_tax; 
extern int goods_tax; 
extern int export_tax; 
extern int import_cost;
extern int unemployment_cost; 
extern int transport_cost; 
extern int windmill_cost; 
extern int university_cost; 
extern int recycle_cost; 
extern int deaths_cost; 
extern int health_cost; 
extern int rocket_pad_cost; 
extern int school_cost; 
extern int fire_cost; 
extern int cricket_cost; 
extern int other_cost;

/* yearly */
extern int ly_income_tax; 
extern int ly_coal_tax; 
extern int ly_goods_tax; 
extern int ly_export_tax; 
extern int ly_import_cost; 
extern int ly_other_cost; 
extern int ly_unemployment_cost; 
extern int ly_transport_cost; 
extern int ly_fire_cost; 
extern int ly_university_cost; 
extern int ly_recycle_cost; 
extern int ly_school_cost; 
extern int ly_deaths_cost; 
extern int ly_health_cost; 
extern int ly_rocket_pad_cost; 
extern int ly_interest; 
extern int ly_windmill_cost;
extern int ly_cricket_cost;

/* Averaging variables */
extern int data_last_month;

/* Function prototypes */
void init_inventory(void);
void inventory(int x, int y);
void init_daily(void);
void init_monthly(void);
void init_yearly(void);
void add_daily_to_monthly(void);

#endif