Codechange: Use SQInteger for generic numbers in script_industry
This commit is contained in:
@@ -54,7 +54,7 @@ public:
|
||||
* @return The number of industries.
|
||||
* @note The maximum valid IndustryID can be higher than the value returned.
|
||||
*/
|
||||
static int32 GetIndustryCount();
|
||||
static SQInteger GetIndustryCount();
|
||||
|
||||
/**
|
||||
* Checks whether the given industry index is valid.
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
* @pre ScriptCargo::IsValidCargo(cargo_id).
|
||||
* @return The amount of cargo that is waiting for processing.
|
||||
*/
|
||||
static int32 GetStockpiledCargo(IndustryID industry_id, CargoID cargo_id);
|
||||
static SQInteger GetStockpiledCargo(IndustryID industry_id, CargoID cargo_id);
|
||||
|
||||
/**
|
||||
* Get the total last month's production of the given cargo at an industry.
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
* @pre ScriptCargo::IsValidCargo(cargo_id).
|
||||
* @return The last month's production of the given cargo for this industry.
|
||||
*/
|
||||
static int32 GetLastMonthProduction(IndustryID industry_id, CargoID cargo_id);
|
||||
static SQInteger GetLastMonthProduction(IndustryID industry_id, CargoID cargo_id);
|
||||
|
||||
/**
|
||||
* Get the total amount of cargo transported from an industry last month.
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
* @pre ScriptCargo::IsValidCargo(cargo_id).
|
||||
* @return The amount of given cargo transported from this industry last month.
|
||||
*/
|
||||
static int32 GetLastMonthTransported(IndustryID industry_id, CargoID cargo_id);
|
||||
static SQInteger GetLastMonthTransported(IndustryID industry_id, CargoID cargo_id);
|
||||
|
||||
/**
|
||||
* Get the percentage of cargo transported from an industry last month.
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
* @pre ScriptCargo::IsValidCargo(cargo_id).
|
||||
* @return The percentage of given cargo transported from this industry last month.
|
||||
*/
|
||||
static int32 GetLastMonthTransportedPercentage(IndustryID industry_id, CargoID cargo_id);
|
||||
static SQInteger GetLastMonthTransportedPercentage(IndustryID industry_id, CargoID cargo_id);
|
||||
|
||||
/**
|
||||
* Gets the location of the industry.
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
* @pre IsValidIndustry(industry_id).
|
||||
* @return The number of stations around an industry.
|
||||
*/
|
||||
static int32 GetAmountOfStationsAround(IndustryID industry_id);
|
||||
static SQInteger GetAmountOfStationsAround(IndustryID industry_id);
|
||||
|
||||
/**
|
||||
* Get the manhattan distance from the tile to the ScriptIndustry::GetLocation()
|
||||
@@ -168,7 +168,7 @@ public:
|
||||
* @pre ScriptMap::IsValidTile(tile).
|
||||
* @return The distance between industry and tile.
|
||||
*/
|
||||
static int32 GetDistanceManhattanToTile(IndustryID industry_id, TileIndex tile);
|
||||
static SQInteger GetDistanceManhattanToTile(IndustryID industry_id, TileIndex tile);
|
||||
|
||||
/**
|
||||
* Get the square distance from the tile to the ScriptIndustry::GetLocation()
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
* @pre ScriptMap::IsValidTile(tile).
|
||||
* @return The distance between industry and tile.
|
||||
*/
|
||||
static int32 GetDistanceSquareToTile(IndustryID industry_id, TileIndex tile);
|
||||
static SQInteger GetDistanceSquareToTile(IndustryID industry_id, TileIndex tile);
|
||||
|
||||
/**
|
||||
* Is this industry built on water.
|
||||
@@ -238,7 +238,7 @@ public:
|
||||
* @return Year the industry last had production, 0 if error.
|
||||
* @api -ai
|
||||
*/
|
||||
static int32 GetLastProductionYear(IndustryID industry_id);
|
||||
static SQInteger GetLastProductionYear(IndustryID industry_id);
|
||||
|
||||
/**
|
||||
* Get the last date this industry accepted any cargo delivery.
|
||||
@@ -258,7 +258,7 @@ public:
|
||||
* @return Bit flags of the IndustryControlFlags enumeration.
|
||||
* @api -ai
|
||||
*/
|
||||
static uint32 GetControlFlags(IndustryID industry_id);
|
||||
static SQInteger GetControlFlags(IndustryID industry_id);
|
||||
|
||||
/**
|
||||
* Change the control flags for an industry.
|
||||
@@ -269,7 +269,7 @@ public:
|
||||
* @return True if the action succeeded.
|
||||
* @api -ai
|
||||
*/
|
||||
static bool SetControlFlags(IndustryID industry_id, uint32 control_flags);
|
||||
static bool SetControlFlags(IndustryID industry_id, SQInteger control_flags);
|
||||
|
||||
/**
|
||||
* Find out which company currently has the exclusive rights to deliver cargo to the industry.
|
||||
|
Reference in New Issue
Block a user