C# Class csCommon.Plugins.EffectAppraisalPlugin.Models.EffectState

The EffectState keeps track of all positive and negative contributions of a certain effect. The positive effects increase its total score, the negative effects reduce it. Note that a positive effect can still be undesirable, e.g. the total threat score.
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Méthodes publiques

Méthode Description
AddEffectState ( EffectState state ) : void
EffectState ( string name ) : System.Text.RegularExpressions
EffectState ( string name, EffectLevel level ) : System.Text.RegularExpressions
EffectState ( string name, EffectLevel level, bool isDisturbance ) : System.Text.RegularExpressions
SubtractEffectState ( EffectState state ) : void
ToString ( ) : string

Private Methods

Méthode Description
addEffect ( EffectLevel level ) : void
levelToScore ( EffectLevel level ) : int

Method Details

AddEffectState() public méthode

public AddEffectState ( EffectState state ) : void
state EffectState
Résultat void

EffectState() public méthode

public EffectState ( string name ) : System.Text.RegularExpressions
name string
Résultat System.Text.RegularExpressions

EffectState() public méthode

public EffectState ( string name, EffectLevel level ) : System.Text.RegularExpressions
name string
level EffectLevel
Résultat System.Text.RegularExpressions

EffectState() public méthode

public EffectState ( string name, EffectLevel level, bool isDisturbance ) : System.Text.RegularExpressions
name string
level EffectLevel
isDisturbance bool
Résultat System.Text.RegularExpressions

SubtractEffectState() public méthode

public SubtractEffectState ( EffectState state ) : void
state EffectState
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string