C# 클래스 Sharplike.Storylib.Relationships.Relationship

파일 보기 프로젝트 열기: eropple/sharplike 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Ratio double

공개 메소드들

메소드 설명
Affect ( Trait t, double change ) : void

Affect a particular aspect of a relationship.

GetTraitQuality ( Trait t ) : double

Gets the quality of a particular trait.

비공개 메소드들

메소드 설명
ApplyImpressionDecay ( double change ) : void
Relationship ( Person owner, Person other ) : System
Trait_NewTrait ( object sender, EventArgs e ) : void

메소드 상세

Affect() 공개 메소드

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. ///
리턴 void

GetTraitQuality() 공개 메소드

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

프로퍼티 상세

Ratio 공개적으로 정적으로 프로퍼티

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
리턴 double