CalcCity/src/calccity.h

56 lines
1.0 KiB
C
Raw Normal View History

2021-10-10 15:56:03 +02:00
#ifndef _CALCCITY_H
#define _CALCCITY_H
2021-10-23 18:51:28 +02:00
struct calccity
2021-10-10 15:56:03 +02:00
{
// human's statistics = {happyness, health, education, housing, work, food}
2021-10-23 18:51:28 +02:00
signed long humans[6];
2021-10-10 15:56:03 +02:00
// population evolution = {population, birth_rate, death_rate, immigration, emigration}
2021-10-23 18:51:28 +02:00
signed long population[5];
// trade statistics = {import, export, production, commercial, industrial, annual_cost}
2021-10-23 18:51:28 +02:00
signed long trade[6];
2021-10-10 15:56:03 +02:00
// production = {water, power}
2021-10-23 18:51:28 +02:00
signed long production[2];
2021-10-10 15:56:03 +02:00
// consumption = {water, power}
2021-10-23 18:51:28 +02:00
signed long consumption[2];
2021-10-10 15:56:03 +02:00
2021-10-23 18:51:28 +02:00
// some others statistics = {treasure, crime, safety, fire_hazard, nuclear_hazard, pollution, transport, grabage, graves}
signed long misc[9];
2021-10-10 15:56:03 +02:00
// taxes in percents on {housing, trade, industry, export}
2021-10-23 18:51:28 +02:00
int taxes[4];
2021-10-10 15:56:03 +02:00
// fund in percents on {police, fireman, education, heathcare}
2021-10-23 18:51:28 +02:00
int funds[4];
// in-game time
2021-10-23 18:51:28 +02:00
int month, year;
int blinker;
// in-game options
2021-10-23 18:51:28 +02:00
bool disaster;
int time_speed;
2021-10-10 15:56:03 +02:00
};
2021-10-23 18:51:28 +02:00
struct camera
2021-10-10 15:56:03 +02:00
{
int x, y;
int zoom;
2021-10-10 15:56:03 +02:00
int cursor_x, cursor_y;
2021-10-10 15:56:03 +02:00
};
2021-10-23 18:51:28 +02:00
struct map
{
2021-10-23 18:51:28 +02:00
unsigned char data[50][50];
};
2021-10-10 15:56:03 +02:00
#endif /* _CALCCITY_H */