/** * Add - add a function and return yourself * return this to be able to do this over and over again * like A.Add("Double").Add("square").Add(... */ public ComposedMission Add(calcFunc func) { this.funcsList.Add(func); // add the function to the list return(this); }
public event EventHandler <double> OnCalculate; // event of when a mission is activated /** * Ctor * initialize the calcfunc and mission name. */ public SingleMission(calcFunc func, string mission_name) { this.func = func; this.mission_name = mission_name; this.mission_type = "Single"; }