C# Class Sharplike.Storylib.Relationships.Relationship

Afficher le fichier Open project: eropple/sharplike Class Usage Examples

Méthodes publiques

Свойство Type Description
Ratio double

Méthodes publiques

Méthode 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

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

Method Details

Affect() public méthode

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. ///
Résultat void

GetTraitQuality() public méthode

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

Property Details

Ratio public_oe static_oe 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
Résultat double