C# Class Sharplike.Storylib.Relationships.RelationshipChange

Show file Open project: eropple/sharplike

Public Methods

Method Description
AddPersonalityEffect ( Person target, Trait t, double amount ) : void

Adds a personality effect to the batch. Personality effects will change the first impression that new relationships get seeded with.

AddRelationshipChange ( Trait t, double amount ) : void

Adds a relationship trait change to the batch.

Apply ( Relationship target ) : void

Applies a batch.

RelationshipChange ( ) : System
RelationshipChange ( DialogueOption option, Relationship relationship, bool applyMultiple = false ) : System

Constructor which lets you provide a dialogue option and relationship to automatically bind to.

Private Methods

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

Method Details

AddPersonalityEffect() public method

Adds a personality effect to the batch. Personality effects will change the first impression that new relationships get seeded with.
public AddPersonalityEffect ( Person target, Trait t, double amount ) : void
target Person The person whose personality should change.
t Trait The trait of the personality that should change.
amount double How much the specified trait should change.
return void

AddRelationshipChange() public method

Adds a relationship trait change to the batch.
public AddRelationshipChange ( Trait t, double amount ) : void
t Trait The trait to change.
amount double How much the trait should change.
return void

Apply() public method

Applies a batch.
public Apply ( Relationship target ) : void
target Relationship The relationship that the batch should be applied to.
return void

RelationshipChange() public method

public RelationshipChange ( ) : System
return System

RelationshipChange() public method

Constructor which lets you provide a dialogue option and relationship to automatically bind to.
public RelationshipChange ( DialogueOption option, Relationship relationship, bool applyMultiple = false ) : System
option Sharplike.Storylib.DialogueTree.DialogueOption /// The dialogue option which, when triggered by a visitor, will apply the batch. ///
relationship Relationship The relationship that will be modified.
applyMultiple bool /// Whether the batch may be applied more than once for the same dialogue option. ///
return System