Base classes related to the economy. More...
#include "cargopacket.h"
#include "company_type.h"
Go to the source code of this file.
Data Structures | |
struct | CargoPayment |
Helper class to perform the cargo payment. More... | |
Defines | |
#define | FOR_ALL_CARGO_PAYMENTS_FROM(var, start) FOR_ALL_ITEMS_FROM(CargoPayment, cargo_payment_index, var, start) |
Iterate over all cargo payments from a given start position. | |
#define | FOR_ALL_CARGO_PAYMENTS(var) FOR_ALL_CARGO_PAYMENTS_FROM(var, 0) |
Iterate over all cargo payments. | |
Typedefs | |
typedef Pool< CargoPayment, CargoPaymentID, 512, 0xFF000 > | CargoPaymentPool |
Type of pool to store cargo payments in; little over 1 million. | |
Variables | |
CargoPaymentPool | _cargo_payment_pool |
The actual pool to store cargo payments in. |
Base classes related to the economy.
Definition in file economy_base.h.
#define FOR_ALL_CARGO_PAYMENTS | ( | var | ) | FOR_ALL_CARGO_PAYMENTS_FROM(var, 0) |
Iterate over all cargo payments.
var | The variable used for iterating. |
Definition at line 63 of file economy_base.h.
Referenced by AfterLoadGame().
#define FOR_ALL_CARGO_PAYMENTS_FROM | ( | var, | ||
start | ||||
) | FOR_ALL_ITEMS_FROM(CargoPayment, cargo_payment_index, var, start) |
Iterate over all cargo payments from a given start position.
var | The variable used for iterating. | |
start | The start of the iteration. |
Definition at line 57 of file economy_base.h.
typedef Pool<CargoPayment, CargoPaymentID, 512, 0xFF000> CargoPaymentPool |
Type of pool to store cargo payments in; little over 1 million.
Definition at line 19 of file economy_base.h.
The actual pool to store cargo payments in.