C# Class Sharplike.Storylib.Relationships.Person

Inheritance: IDisposable
Show file Open project: eropple/sharplike Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Introduce ( Person p ) : Relationship

"Introduces" the person to someone else, creating a new relationship and populating it with the other person's qualities.

PassTime ( double shorttermchange ) : void

The person observes a passage of time, which decays all short term impressions.

Impressions do not decay linearly. The farther an impression is from indifference, the faster it will decay. Likewise, decay will slow as the impression approaches zero (indifferent).

Person ( String name ) : System

Private Methods

Method Description
Trait_NewTrait ( object sender, EventArgs e ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Introduce() public method

"Introduces" the person to someone else, creating a new relationship and populating it with the other person's qualities.
public Introduce ( Person p ) : Relationship
p Person The person to introduce
return Relationship

PassTime() public method

The person observes a passage of time, which decays all short term impressions.
Impressions do not decay linearly. The farther an impression is from indifference, the faster it will decay. Likewise, decay will slow as the impression approaches zero (indifferent).
public PassTime ( double shorttermchange ) : void
shorttermchange double How much impressions should decay.
return void

Person() public method

public Person ( String name ) : System
name String
return System