Searched refs:trade_status (Results 1 – 11 of 11) sorted by relevance
81 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 …]
14 if (city_data.resource.trade_status[RESOURCE_WINE] == TRADE_STATUS_IMPORT) { in city_trade_update()
315 int16_t trade_status[RESOURCE_MAX]; member
138 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()
112 int trade_status = city_resource_trade_status(data.resource); in draw_foreground() local123 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()
80 resource_trade_status trade_status = city_resource_trade_status(resource); in draw_foreground() local81 if (trade_status == TRADE_STATUS_IMPORT) { in draw_foreground()83 } else if (trade_status == TRADE_STATUS_EXPORT) { in draw_foreground()
127 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()
350 int16_t trade_status[RESOURCE_MAX]; member
143 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()
124 int trade_status = city_resource_trade_status(data.resource); in draw_foreground() local133 if (trade_status & TRADE_STATUS_IMPORT) { in draw_foreground()156 if (trade_status & TRADE_STATUS_EXPORT) { in draw_foreground()
131 resource_trade_status trade_status = city_resource_trade_status(resource); in draw_resource_status_text() local140 if (trade_status & TRADE_STATUS_IMPORT) { in draw_resource_status_text()161 } else if (trade_status & TRADE_STATUS_EXPORT) { in draw_resource_status_text()