* Get shipment order. * @param from - 0-7 for bases, 8 for economy * @param to - 0-7 for bases, 8 for economy * @return - the shipment order */
| 857 | * @return - the shipment order |
| 858 | */ |
| 859 | int TransactionControl::Trade::getOrder(const int from, const int to) const |
| 860 | { |
| 861 | if (shipments.find(from) != shipments.end()) |
| 862 | { |
| 863 | auto &order = shipments.at(from); |
| 864 | if (order.find(to) != order.end()) |
| 865 | { |
| 866 | return order.at(to); |
| 867 | } |
| 868 | } |
| 869 | return 0; |
| 870 | } |
| 871 | |
| 872 | /** |
| 873 | * Cancel shipment order. |