1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef __OREGIONS_H
- #define __OREGIONS_H
- #ifndef __OFIRMID_H
- #include <OFIRMID.h>
- #endif
- #define MIN_STAT_REGION_SIZE 100
- #define MAX_REACHABLE_REGION_PER_STAT 10
- #pragma pack(1)
- struct RegionPath
- {
- BYTE sea_region_id;
- BYTE land_region_stat_id;
- };
- #pragma pack()
- #pragma pack(1)
- class RegionStat
- {
- public:
- BYTE region_id;
- char nation_is_present_array[MAX_NATION];
- char nation_presence_count;
- short firm_type_count_array[MAX_FIRM_TYPE];
- short firm_nation_count_array[MAX_NATION];
- short camp_nation_count_array[MAX_NATION];
- short mine_nation_count_array[MAX_NATION];
- short harbor_nation_count_array[MAX_NATION];
- short total_firm_count;
- short town_nation_count_array[MAX_NATION];
- short base_town_nation_count_array[MAX_NATION];
- short independent_town_count;
- short total_town_count;
- short nation_population_array[MAX_NATION];
- short nation_jobless_population_array[MAX_NATION];
- short unit_nation_count_array[MAX_NATION];
- short independent_unit_count;
- short total_unit_count;
- short site_count;
- short raw_count;
- RegionPath reachable_region_array[MAX_REACHABLE_REGION_PER_STAT];
- char reachable_region_count;
- public:
- void init();
- void update_stat();
- };
- #pragma pack()
- #endif
|