C# Class Sharplike.Storylib.Relationships.Relationship

Show file Open project: eropple/sharplike Class Usage Examples

Public Properties

Property Type Description
Ratio double

Public Methods

Method Description
Affect ( Trait t, double change ) : void

Affect a particular aspect of a relationship.

GetTraitQuality ( Trait t ) : double

Gets the quality of a particular trait.

Private Methods

Method Description
ApplyImpressionDecay ( double change ) : void
Relationship ( Person owner, Person other ) : System
Trait_NewTrait ( object sender, EventArgs e ) : void

Method Details

Affect() public method

Affect a particular aspect of a relationship.
public Affect ( Trait t, double change ) : void
t Trait The trait to affect
change double /// How much to affect the trait. If the trait is negative, /// a numerically positive change will have a harmful effect. ///
return void

GetTraitQuality() public method

Gets the quality of a particular trait.
public GetTraitQuality ( Trait t ) : double
t Trait The trait to query.
return double

Property Details

Ratio public static property

Ratio describes how much of an effect short-term impressions have on a relationship vs. long-term opinions.
This value has a somewhat fuzzy meaning, and affects what percentage of trait change goes toward opinion, as well as what percentage of impression goes toward overall quality. This number also changes how quickly impression decays. As impression becomes more important, it decays faster.
public static double Ratio
return double