Home
last modified time | relevance | path

Searched refs:trade_status (Results 1 – 11 of 11) sorted by relevance

/dports/games/julius/julius-1.7.0/src/city/
H A Dresource.c81 return city_data.resource.trade_status[resource]; in city_resource_trade_status()
86 ++city_data.resource.trade_status[resource]; in city_resource_cycle_trade_status()
87 if (city_data.resource.trade_status[resource] > TRADE_STATUS_EXPORT) { in city_resource_cycle_trade_status()
88 city_data.resource.trade_status[resource] = TRADE_STATUS_NONE; in city_resource_cycle_trade_status()
91 if (city_data.resource.trade_status[resource] == TRADE_STATUS_IMPORT && in city_resource_cycle_trade_status()
93 city_data.resource.trade_status[resource] = TRADE_STATUS_EXPORT; in city_resource_cycle_trade_status()
95 if (city_data.resource.trade_status[resource] == TRADE_STATUS_EXPORT && in city_resource_cycle_trade_status()
97 city_data.resource.trade_status[resource] = TRADE_STATUS_NONE; in city_resource_cycle_trade_status()
99 if (city_data.resource.trade_status[resource] == TRADE_STATUS_EXPORT) { in city_resource_cycle_trade_status()
125 if (city_data.resource.trade_status[resource] == TRADE_STATUS_EXPORT) { in city_resource_toggle_stockpiled()
[all …]
H A Dtrade.c14 if (city_data.resource.trade_status[RESOURCE_WINE] == TRADE_STATUS_IMPORT) { in city_trade_update()
H A Ddata_private.h315 int16_t trade_status[RESOURCE_MAX]; member
H A Ddata.c138 buffer_write_i16(main, city_data.resource.trade_status[i]); in save_main_data()
615 city_data.resource.trade_status[i] = buffer_read_i16(main); in load_main_data()
/dports/games/julius/julius-1.7.0/src/window/
H A Dresource_settings.c112 int trade_status = city_resource_trade_status(data.resource); in draw_foreground() local
123 switch (trade_status) { in draw_foreground()
136 if (trade_status == TRADE_STATUS_EXPORT) { in draw_foreground()
159 if (trade_status == TRADE_STATUS_EXPORT) { in draw_foreground()
/dports/games/julius/julius-1.7.0/src/window/advisor/
H A Dtrade.c80 resource_trade_status trade_status = city_resource_trade_status(resource); in draw_foreground() local
81 if (trade_status == TRADE_STATUS_IMPORT) { in draw_foreground()
83 } else if (trade_status == TRADE_STATUS_EXPORT) { in draw_foreground()
/dports/games/augustus/augustus-3.1.0/src/city/
H A Dresource.c127 return city_data.resource.trade_status[resource]; in city_resource_trade_status()
133 city_data.resource.trade_status[resource] &= ~TRADE_STATUS_IMPORT; in city_resource_cycle_trade_status()
137 city_data.resource.trade_status[resource] &= ~TRADE_STATUS_EXPORT; in city_resource_cycle_trade_status()
140 city_data.resource.trade_status[resource] ^= status; in city_resource_cycle_trade_status()
142 if (city_data.resource.trade_status[resource] & TRADE_STATUS_EXPORT) { in city_resource_cycle_trade_status()
176 …city_data.resource.trade_status[resource] |= city_data.resource.export_status_before_stockpiling[r… in city_resource_toggle_stockpiled()
179 …ource.export_status_before_stockpiling[resource] = city_data.resource.trade_status[resource] & TRA… in city_resource_toggle_stockpiled()
180 city_data.resource.trade_status[resource] &= ~TRADE_STATUS_EXPORT; in city_resource_toggle_stockpiled()
H A Ddata_private.h350 int16_t trade_status[RESOURCE_MAX]; member
H A Ddata.c143 buffer_write_i16(main, city_data.resource.trade_status[i]); in save_main_data()
649 city_data.resource.trade_status[i] = buffer_read_i16(main); in load_main_data()
1059 if (city_data.resource.trade_status[i] == TRADE_STATUS_IMPORT) { in load_main_data()
/dports/games/augustus/augustus-3.1.0/src/window/
H A Dresource_settings.c124 int trade_status = city_resource_trade_status(data.resource); in draw_foreground() local
133 if (trade_status & TRADE_STATUS_IMPORT) { in draw_foreground()
156 if (trade_status & TRADE_STATUS_EXPORT) { in draw_foreground()
/dports/games/augustus/augustus-3.1.0/src/window/advisor/
H A Dtrade.c131 resource_trade_status trade_status = city_resource_trade_status(resource); in draw_resource_status_text() local
140 if (trade_status & TRADE_STATUS_IMPORT) { in draw_resource_status_text()
161 } else if (trade_status & TRADE_STATUS_EXPORT) { in draw_resource_status_text()