|
|
|
@ -104,7 +104,6 @@ public:
|
|
|
|
|
/**
|
|
|
|
|
* Gets the number of towns.
|
|
|
|
|
* @return The number of towns.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetTownCount();
|
|
|
|
|
|
|
|
|
@ -128,7 +127,6 @@ public:
|
|
|
|
|
* @param town_id The town to get the population of.
|
|
|
|
|
* @pre IsValidTown(town_id).
|
|
|
|
|
* @return The number of inhabitants.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetPopulation(TownID town_id);
|
|
|
|
|
|
|
|
|
@ -137,7 +135,6 @@ public:
|
|
|
|
|
* @param town_id The town to get the number of houses of.
|
|
|
|
|
* @pre IsValidTown(town_id).
|
|
|
|
|
* @return The number of houses.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetHouseCount(TownID town_id);
|
|
|
|
|
|
|
|
|
@ -156,7 +153,6 @@ public:
|
|
|
|
|
* @pre IsValidTown(town_id).
|
|
|
|
|
* @pre AICargo::IsValidCargo(cargo_id).
|
|
|
|
|
* @return The last month's production of the given cargo for this town.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetLastMonthProduction(TownID town_id, CargoID cargo_id);
|
|
|
|
|
|
|
|
|
@ -167,7 +163,6 @@ public:
|
|
|
|
|
* @pre IsValidTown(town_id).
|
|
|
|
|
* @pre AICargo::IsValidCargo(cargo_id).
|
|
|
|
|
* @return The amount of cargo supplied for transport from this town last month.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetLastMonthSupplied(TownID town_id, CargoID cargo_id);
|
|
|
|
|
|
|
|
|
@ -178,7 +173,6 @@ public:
|
|
|
|
|
* @pre IsValidTown(town_id).
|
|
|
|
|
* @pre AICargo::IsValidCargo(cargo_id).
|
|
|
|
|
* @return The percentage of given cargo transported from this town last month.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetLastMonthTransportedPercentage(TownID town_id, CargoID cargo_id);
|
|
|
|
|
|
|
|
|
@ -189,7 +183,6 @@ public:
|
|
|
|
|
* @pre IsValidTown(town_id).
|
|
|
|
|
* @pre AICargo::IsValidTownEffect(cargo_id).
|
|
|
|
|
* @return The amount of cargo received by this town last month for this cargo effect.
|
|
|
|
|
* @post Return value is always non-negative.
|
|
|
|
|
*/
|
|
|
|
|
static int32 GetLastMonthReceived(TownID town_id, AICargo::TownEffect towneffect_id);
|
|
|
|
|
|
|
|
|
|