12 #ifndef ECONOMY_BASE_H 13 #define ECONOMY_BASE_H 57 #define FOR_ALL_CARGO_PAYMENTS_FROM(var, start) FOR_ALL_ITEMS_FROM(CargoPayment, cargo_payment_index, var, start) 63 #define FOR_ALL_CARGO_PAYMENTS(var) FOR_ALL_CARGO_PAYMENTS_FROM(var, 0) Company * owner
The owner of the vehicle.
CargoPaymentPool _cargo_payment_pool
The actual pool to store cargo payments in.
CargoID ct
The currently handled cargo type.
Base class for cargo packets.
Vehicle * front
The front vehicle to do the payment of.
Pool< CargoPayment, CargoPaymentID, 512, 0xFF000 > CargoPaymentPool
Type of pool to store cargo payments in; little over 1 million.
Money PayTransfer(const CargoPacket *cp, uint count)
Handle payment for transfer of the given cargo packet.
Money visual_profit
The visual profit to show.
Container for cargo from the same location and time.
void PayFinalDelivery(const CargoPacket *cp, uint count)
Handle payment for final delivery of the given cargo packet.
Money route_profit
The amount of money to add/remove from the bank account.
CargoPayment()
Constructor for pool saveload.
Helper class to perform the cargo payment.
Base class for all PoolItems.
Base class for all pools.
void SetCargo(CargoID ct)
Sets the currently handled cargo type.
Types related to companies.
byte CargoID
Cargo slots to indicate a cargo type within a game.
StationID current_station
The current station.
Money visual_transfer
The transfer credits to be shown.