Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
        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";
        }