Exemplo n.º 1
0
    // method to clone the Objective
    public override BaseObjective Clone()
    {
        ObjectiveBuffSDX objectiveBuff = new ObjectiveBuffSDX();

        this.CopyValues(objectiveBuff);
        return(objectiveBuff);
    }
Exemplo n.º 2
0
 // Helper to the clone
 protected void CopyValues(ObjectiveBuffSDX objective)
 {
     objective.ID           = this.ID;
     objective.Value        = this.Value;
     objective.Optional     = this.Optional;
     objective.currentValue = this.currentValue;
     objective.Phase        = this.Phase;
     objective.strBuff      = this.strBuff;
 }