TransportedCargoStat Struct Reference

Store the maximum and actually transported cargo amount for the current and the last month. More...

#include <town_type.h>

Public Member Functions

void NewMonth ()
 Update stats for a new month.

Data Fields

uint32 old_max
 Maximum amount last month.
uint32 new_max
 Maximum amount this month.
uint32 old_act
 Actually transported last month.
uint32 new_act
 Actually transported this month.

Detailed Description

Store the maximum and actually transported cargo amount for the current and the last month.

Definition at line 111 of file town_type.h.


Member Function Documentation

void TransportedCargoStat::NewMonth (  )  [inline]

Update stats for a new month.

Definition at line 120 of file town_type.h.

References new_act, new_max, old_act, and old_max.

Referenced by UpdateLinkWeights().


The documentation for this struct was generated from the following file:

Generated on Mon May 9 05:20:41 2011 for OpenTTD by  doxygen 1.6.1