Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | List of all members
Contracts.Agents.AgentMentality Class Reference
Inheritance diagram for Contracts.Agents.AgentMentality:
Contracts.Agents.Mentalities.Commercial Contracts.Agents.Mentalities.Competitive Contracts.Agents.Mentalities.Conglomerate Contracts.Agents.Mentalities.Cooperative Contracts.Agents.Mentalities.EasyGoing Contracts.Agents.Mentalities.Ecomental Contracts.Agents.Mentalities.Economic Contracts.Agents.Mentalities.Hasty Contracts.Agents.Mentalities.Industrial Contracts.Agents.Mentalities.Kerbalminded Contracts.Agents.Mentalities.Moral Contracts.Agents.Mentalities.NoRandomContractMentality Contracts.Agents.Mentalities.Patient Contracts.Agents.Mentalities.Perfectionist Contracts.Agents.Mentalities.Pioneer Contracts.Agents.Mentalities.Record Contracts.Agents.Mentalities.Scientific Contracts.Agents.Mentalities.Startup Contracts.Agents.Mentalities.Stern

Public Member Functions

virtual bool CanProcessContract (Contract contract)
 
virtual void OnAdded ()
 Called immediately after being added to an agent. More...
 
virtual void ProcessContract (Contract contract)
 
virtual KeywordScore ScoreKeyword (string keyword)
 

Static Public Member Functions

static AgentMentality AddMentality (Agent agent, string mentalityName, float factor)
 
static System.Type GetMentalityType (string typeName)
 

Protected Member Functions

void FactorDeadline (Contract contract, bool positive)
 
void FactorExpiry (Contract contract, bool positive)
 
void FactorFundsAdvance (Contract contract, bool positive)
 
void FactorFundsCompletion (Contract contract, bool positive)
 
void FactorFundsFailure (Contract contract, bool positive)
 
void FactorReputationCompletion (Contract contract, bool positive)
 
void FactorReputationFailure (Contract contract, bool positive)
 
void FactorScienceCompletion (Contract contract, bool positive)
 
virtual string GetDescription ()
 
virtual string GetDisplayName ()
 

Properties

Agent Agent [get]
 
string Description [get]
 
string DisplayName [get]
 
float Factor [get]
 

Member Function Documentation

static AgentMentality Contracts.Agents.AgentMentality.AddMentality ( Agent  agent,
string  mentalityName,
float  factor 
)
inlinestatic
virtual bool Contracts.Agents.AgentMentality.CanProcessContract ( Contract  contract)
inlinevirtual
void Contracts.Agents.AgentMentality.FactorDeadline ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorExpiry ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorFundsAdvance ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorFundsCompletion ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorFundsFailure ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorReputationCompletion ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorReputationFailure ( Contract  contract,
bool  positive 
)
inlineprotected
void Contracts.Agents.AgentMentality.FactorScienceCompletion ( Contract  contract,
bool  positive 
)
inlineprotected
virtual string Contracts.Agents.AgentMentality.GetDescription ( )
inlineprotectedvirtual
virtual string Contracts.Agents.AgentMentality.GetDisplayName ( )
inlineprotectedvirtual
static System.Type Contracts.Agents.AgentMentality.GetMentalityType ( string  typeName)
inlinestatic
virtual void Contracts.Agents.AgentMentality.OnAdded ( )
inlinevirtual

Called immediately after being added to an agent.

Reimplemented in Contracts.Agents.Mentalities.NoRandomContractMentality.

virtual void Contracts.Agents.AgentMentality.ProcessContract ( Contract  contract)
inlinevirtual
virtual KeywordScore Contracts.Agents.AgentMentality.ScoreKeyword ( string  keyword)
inlinevirtual

Property Documentation

Agent Contracts.Agents.AgentMentality.Agent
get
string Contracts.Agents.AgentMentality.Description
get
string Contracts.Agents.AgentMentality.DisplayName
get
float Contracts.Agents.AgentMentality.Factor
get

The documentation for this class was generated from the following file: