CalcCity/src/calccity.h

57 lines
1.2 KiB
C
Raw Normal View History

2021-10-10 15:56:03 +02:00
#ifndef _CALCCITY_H
#define _CALCCITY_H
struct calccity =
{
// human's statistics = {happyness, health, education, housing, work, food}
signed long humans[6] = {0};
2021-10-10 15:56:03 +02:00
// population evolution = {population, birth_rate, death_rate, immigration, emigration}
signed long population[5] = {0};
// trade statistics = {import, export, production, commercial, industrial, annual_cost}
signed long trade[6] = {0};
2021-10-10 15:56:03 +02:00
// production = {water, power}
signed long production[2] = {0};
// consumption = {water, power}
signed long consumption[2] = {0};
// some others statistics = {crime, safety, fire_hazard, nuclear_hazard, pollution, transport, grabage, graves}
signed long misc[8] = {0};
2021-10-10 15:56:03 +02:00
// taxes in percents on {housing, trade, industry, export}
2021-10-10 15:56:03 +02:00
int taxes[4] = {10, 10, 10, 10};
// fund in percents on {police, fireman, education, heathcare}
int funds[4] = {0};
// in-game time
int month = 1, year = 1900;
int blinker = 0;
// in-game options
bool disaster = true;
bool show_fps = false;
int time_speed = 30;
2021-10-10 15:56:03 +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
};
struct map =
{
unsigned char map_data[50][50];
};
2021-10-10 15:56:03 +02:00
#endif /* _CALCCITY_H */