C# Class NetMud.Data.System.Affect

Inheritance: IAffect
Datei anzeigen Open project: SwiftAusterity/NetMud

Public Methods

Method Description
Affect ( ) : System
Affect ( AffectType type, int duration, int value, string target, int>.Dictionary afflictionChances ) : System
Affect ( int duration, int value, string target, int>.Dictionary afflictionChances ) : System
Afflict ( IHasAffects source, ICanBeAffected victim, ContagionVector vector ) : bool

Attempt to spread this to someone else

CompareTo ( IAffect other ) : int

-99 = null input -1 = wrong type 0 = not the same 1 = same reference (same name, same type)

Equals ( IAffect other ) : bool

Compares this object to another one to see if they are the same object

Method Details

Affect() public method

public Affect ( ) : System
return System

Affect() public method

public Affect ( AffectType type, int duration, int value, string target, int>.Dictionary afflictionChances ) : System
type AffectType
duration int
value int
target string
afflictionChances int>.Dictionary
return System

Affect() public method

public Affect ( int duration, int value, string target, int>.Dictionary afflictionChances ) : System
duration int
value int
target string
afflictionChances int>.Dictionary
return System

Afflict() public method

Attempt to spread this to someone else
public Afflict ( IHasAffects source, ICanBeAffected victim, ContagionVector vector ) : bool
source IHasAffects
victim ICanBeAffected the victim
vector ContagionVector How this is being spread
return bool

CompareTo() public method

-99 = null input -1 = wrong type 0 = not the same 1 = same reference (same name, same type)
public CompareTo ( IAffect other ) : int
other IAffect
return int

Equals() public method

Compares this object to another one to see if they are the same object
public Equals ( IAffect other ) : bool
other IAffect the object to compare to
return bool