Contracts#
- public class ContractManager#
Contracts manager. Obtained by calling
getContractManager().
- public class Contract#
A contract. Can be accessed using
getContractManager().- 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().- 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.