Class TContract
Unit
Declaration
type TContract = class(TObject)
Description
Represents a complete contract, consisting of one or more station-to-station contracts.
Hierarchy
- TObject
- TContract
Overview
Methods
![]() |
function GetContractLeg(const LoadingStationName: String; const Commodity: String): TContractLeg; |
![]() |
procedure AddContractLeg(const AContractLeg: TContractLeg); |
![]() |
function RemoveTradeRouteLeg(const PanelID: Integer; out Leg: TContractLeg): Boolean; |
![]() |
function RemoveContractLeg(const AContractLeg: TContractLeg): Boolean; |
![]() |
function Clone: TContract; |
![]() |
function ToString: String; override; |
![]() |
constructor Create(const AID: Integer; const ASCUMaxSize: TSCUSize); |
![]() |
destructor Destroy; override; |
![]() |
class procedure SetConsoleServer(AConsoleServer: TConsoleReaderThread); static; |
Properties
![]() |
property ID: Integer read FID; |
![]() |
property Contractor: String read FContractor; |
![]() |
property aUEC: Integer read FaUEC; |
![]() |
property SCUMaxSize: TSCUSize read FSCUMaxSize; |
![]() |
property ContractLegsCount : Integer read GetContractLegsCount; |
![]() |
property ContractLegs: TContractLegArray read GetContractLegs; |
![]() |
property ContractRouteType: TContractRouteType read FContractRouteType; |
![]() |
property ContractCargoRoute: TContractCargoRoute read FContractCargoRoute; |
![]() |
property UserRank: TUserRank read FUserRank; |
![]() |
property ContractCargoGradeScale: TContractCargoGradeScale read FContractCargoGradeScale; |
![]() |
property ContractCargoGradeScaleDirect: TContractCargoGradeScaleDirect read FContractCargoGradeScaleDirect; |
![]() |
property ContractTransportType: TContractTransportType read FContractTransportType; |
![]() |
property ContractDifficultyModifier: TContractDifficultyModifier read FContractDifficultyModifier; |
Description
Methods
![]() |
function GetContractLeg(const LoadingStationName: String; const Commodity: String): TContractLeg; |
|
Parameters
ReturnsTContractLeg with the given loading station name and commodity. | |
![]() |
procedure AddContractLeg(const AContractLeg: TContractLeg); |
|
Adds a trade route leg. Parameters
Exceptions raised
| |
![]() |
function RemoveTradeRouteLeg(const PanelID: Integer; out Leg: TContractLeg): Boolean; |
|
Removes a trade route leg. Parameters
Returns
| |
![]() |
function RemoveContractLeg(const AContractLeg: TContractLeg): Boolean; |
|
Removes a trade route Leg Parameters
Returns
| |
![]() |
function Clone: TContract; |
|
Returns a deep copy of the TContract instance. | |
![]() |
function ToString: String; override; |
|
Returns a string representation of the TContract instance. | |
![]() |
constructor Create(const AID: Integer; const ASCUMaxSize: TSCUSize); |
|
Creates a new TContract instance. Parameters
| |
![]() |
destructor Destroy; override; |
|
Destructor. | |
![]() |
class procedure SetConsoleServer(AConsoleServer: TConsoleReaderThread); static; |
|
Sets the console server. Parameters
| |
Properties
![]() |
property ID: Integer read FID; |
|
ID of the contract. | |
![]() |
property Contractor: String read FContractor; |
|
Contractor | |
![]() |
property aUEC: Integer read FaUEC; |
|
Total mission payout in aUEC. | |
![]() |
property SCUMaxSize: TSCUSize read FSCUMaxSize; |
|
Maximum SCU size accepted for loading. | |
![]() |
property ContractLegsCount : Integer read GetContractLegsCount; |
|
Number of contract legs. | |
![]() |
property ContractLegs: TContractLegArray read GetContractLegs; |
|
Contracts that make up the mission. | |
![]() |
property ContractRouteType: TContractRouteType read FContractRouteType; |
|
Type of contract route. | |
![]() |
property ContractCargoRoute: TContractCargoRoute read FContractCargoRoute; |
|
Cargo route. | |
![]() |
property UserRank: TUserRank read FUserRank; |
|
User rank. | |
![]() |
property ContractCargoGradeScale: TContractCargoGradeScale read FContractCargoGradeScale; |
|
Cargo grade scale. | |
![]() |
property ContractCargoGradeScaleDirect: TContractCargoGradeScaleDirect read FContractCargoGradeScaleDirect; |
|
Cargo grade scale direct. | |
![]() |
property ContractTransportType: TContractTransportType read FContractTransportType; |
|
Transport type. | |
![]() |
property ContractDifficultyModifier: TContractDifficultyModifier read FContractDifficultyModifier; |
|
Difficulty modifier. | |
