Exemple #1
0
    public void SetChrSource(Chr _chrSource)
    {
        chrSource = _chrSource;

        //Set the GetPower function to fetch the chrSource's current power
        GetPower = () => chrSource.pnPower.Get();
    }
Exemple #2
0
    public void SnapShotPower()
    {
        //If we need to snapshot, then fetch and fix the power in the GetPower function
        int nSnapshotPower = chrSource.pnPower.Get();

        GetPower = () => nSnapshotPower;
    }
Exemple #3
0
    public Healing(Healing healToCopy)
    {
        //Copy over all the attributes of the original Healing instance
        chrSource = healToCopy.chrSource;
        chrTarget = healToCopy.chrTarget;

        GetBase = healToCopy.GetBase;

        //Copy the Power fetch method too
        GetPower = healToCopy.GetPower;
    }
Exemple #4
0
    public Damage(Damage dmgToCopy)
    {
        //Copy over all the attributes of the original Damage instance
        chrSource = dmgToCopy.chrSource;
        chrTarget = dmgToCopy.chrTarget;

        GetBase = dmgToCopy.GetBase;

        bPiercing = dmgToCopy.bPiercing;

        //Copy the Power fetch method too
        GetPower = dmgToCopy.GetPower;
    }
 public ExecStun(ExecStun other) : base(other)
 {
     GetDuration = other.GetDuration;
 }
 public ExecStun(Chr _chrSource, Chr _chrTarget, int nBaseStunDuration) : base(_chrSource, _chrTarget)
 {
     GetDuration = () => nBaseStunDuration;
 }