Contracts#

public class ContractManager#

Contracts manager. Obtained by calling getContractManager().

java.util.Set<String> getTypes()#

A list of all contract types.

java.util.List<Contract> getAllContracts()#

A list of all contracts.

java.util.List<Contract> getActiveContracts()#

A list of all active contracts.

java.util.List<Contract> getOfferedContracts()#

A list of all offered, but unaccepted, contracts.

java.util.List<Contract> getCompletedContracts()#

A list of all completed contracts.

java.util.List<Contract> getFailedContracts()#

A list of all failed contracts.

public class Contract#

A contract. Can be accessed using getContractManager().

String getType()#

Type of the contract.

String getTitle()#

Title of the contract.

String getDescription()#

Description of the contract.

String getNotes()#

Notes for the contract.

String getSynopsis()#

Synopsis for the contract.

java.util.List<String> getKeywords()#

Keywords for the contract.

ContractState getState()#

State of the contract.

boolean getSeen()#

Whether the contract has been seen.

boolean getRead()#

Whether the contract has been read.

boolean getActive()#

Whether the contract is active.

boolean getFailed()#

Whether the contract has been failed.

boolean getCanBeCanceled()#

Whether the contract can be canceled.

boolean getCanBeDeclined()#

Whether the contract can be declined.

boolean getCanBeFailed()#

Whether the contract can be failed.

void accept()#

Accept an offered contract.

void cancel()#

Cancel an active contract.

void decline()#

Decline an offered contract.

double getFundsAdvance()#

Funds received when accepting the contract.

double getFundsCompletion()#

Funds received on completion of the contract.

double getFundsFailure()#

Funds lost if the contract is failed.

double getReputationCompletion()#

Reputation gained on completion of the contract.

double getReputationFailure()#

Reputation lost if the contract is failed.

double getScienceCompletion()#

Science gained on completion of the contract.

java.util.List<ContractParameter> getParameters()#

Parameters for the contract.

public enum ContractState#

The state of a contract. See Contract.getState().

public ContractState ACTIVE#

The contract is active.

public ContractState CANCELED#

The contract has been canceled.

public ContractState COMPLETED#

The contract has been completed.

public ContractState DEADLINE_EXPIRED#

The deadline for the contract has expired.

public ContractState DECLINED#

The contract has been declined.

public ContractState FAILED#

The contract has been failed.

public ContractState GENERATED#

The contract has been generated.

public ContractState OFFERED#

The contract has been offered to the player.

public ContractState OFFER_EXPIRED#

The contract was offered to the player, but the offer expired.

public ContractState WITHDRAWN#

The contract has been withdrawn.

public class ContractParameter#

A contract parameter. See Contract.getParameters().

String getTitle()#

Title of the parameter.

String getNotes()#

Notes for the parameter.

java.util.List<ContractParameter> getChildren()#

Child contract parameters.

boolean getCompleted()#

Whether the parameter has been completed.

boolean getFailed()#

Whether the parameter has been failed.

boolean getOptional()#

Whether the contract parameter is optional.

double getFundsCompletion()#

Funds received on completion of the contract parameter.

double getFundsFailure()#

Funds lost if the contract parameter is failed.

double getReputationCompletion()#

Reputation gained on completion of the contract parameter.

double getReputationFailure()#

Reputation lost if the contract parameter is failed.

double getScienceCompletion()#

Science gained on completion of the contract parameter.