Contracts

public class ContractManager

Contracts manager. Obtained by calling getContractManager().

java.util.Set<String> getTypes()

A list of all contract types.

Game Scenes:All
java.util.List<Contract> getAllContracts()

A list of all contracts.

Game Scenes:All
java.util.List<Contract> getActiveContracts()

A list of all active contracts.

Game Scenes:All
java.util.List<Contract> getOfferedContracts()

A list of all offered, but unaccepted, contracts.

Game Scenes:All
java.util.List<Contract> getCompletedContracts()

A list of all completed contracts.

Game Scenes:All
java.util.List<Contract> getFailedContracts()

A list of all failed contracts.

Game Scenes:All
public class Contract

A contract. Can be accessed using getContractManager().

String getType()

Type of the contract.

Game Scenes:All
String getTitle()

Title of the contract.

Game Scenes:All
String getDescription()

Description of the contract.

Game Scenes:All
String getNotes()

Notes for the contract.

Game Scenes:All
String getSynopsis()

Synopsis for the contract.

Game Scenes:All
java.util.List<String> getKeywords()

Keywords for the contract.

Game Scenes:All
ContractState getState()

State of the contract.

Game Scenes:All
boolean getSeen()

Whether the contract has been seen.

Game Scenes:All
boolean getRead()

Whether the contract has been read.

Game Scenes:All
boolean getActive()

Whether the contract is active.

Game Scenes:All
boolean getFailed()

Whether the contract has been failed.

Game Scenes:All
boolean getCanBeCanceled()

Whether the contract can be canceled.

Game Scenes:All
boolean getCanBeDeclined()

Whether the contract can be declined.

Game Scenes:All
boolean getCanBeFailed()

Whether the contract can be failed.

Game Scenes:All
void accept()

Accept an offered contract.

Game Scenes:All
void cancel()

Cancel an active contract.

Game Scenes:All
void decline()

Decline an offered contract.

Game Scenes:All
double getFundsAdvance()

Funds received when accepting the contract.

Game Scenes:All
double getFundsCompletion()

Funds received on completion of the contract.

Game Scenes:All
double getFundsFailure()

Funds lost if the contract is failed.

Game Scenes:All
double getReputationCompletion()

Reputation gained on completion of the contract.

Game Scenes:All
double getReputationFailure()

Reputation lost if the contract is failed.

Game Scenes:All
double getScienceCompletion()

Science gained on completion of the contract.

Game Scenes:All
java.util.List<ContractParameter> getParameters()

Parameters for the contract.

Game Scenes:All
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.

Game Scenes:All
String getNotes()

Notes for the parameter.

Game Scenes:All
java.util.List<ContractParameter> getChildren()

Child contract parameters.

Game Scenes:All
boolean getCompleted()

Whether the parameter has been completed.

Game Scenes:All
boolean getFailed()

Whether the parameter has been failed.

Game Scenes:All
boolean getOptional()

Whether the contract parameter is optional.

Game Scenes:All
double getFundsCompletion()

Funds received on completion of the contract parameter.

Game Scenes:All
double getFundsFailure()

Funds lost if the contract parameter is failed.

Game Scenes:All
double getReputationCompletion()

Reputation gained on completion of the contract parameter.

Game Scenes:All
double getReputationFailure()

Reputation lost if the contract parameter is failed.

Game Scenes:All
double getScienceCompletion()

Science gained on completion of the contract parameter.

Game Scenes:All