Example #1
0
        public WiredHandler(Room room)
        {
            this.actionItems = new Hashtable();
            this.actionStacks = new Hashtable();
            this.requestedTriggers = new Queue();
            this.requestingUpdates = new Queue();
            this.wireSlower = new WiredSolverInstance();

            this.room = room;
            this.conditionHandler = new ConditionHandler(room);
            //form = new Form1();
            ////
            //Thread thread = new Thread(new ThreadStart(Init));
            //thread.Start();
        }
Example #2
0
        //private Form1 form;
        #endregion

        #region Constructor
        public WiredHandler(Room room)
        {
            this.actionItems       = new Hashtable();
            this.actionStacks      = new Hashtable();
            this.requestedTriggers = new Queue();
            this.requestingUpdates = new Queue();
            this.wireSlower        = new WiredSolverInstance();

            this.room             = room;
            this.conditionHandler = new ConditionHandler(room);
            //form = new Form1();
            ////
            //Thread thread = new Thread(new ThreadStart(Init));
            //thread.Start();
        }
Example #3
0
 internal void Destroy()
 {
     if (actionItems != null)
     {
         actionItems.Clear();
     }
     actionItems = null;
     if (actionStacks != null)
     {
         actionStacks.Clear();
     }
     requestedTriggers.Clear();
     requestingUpdates.Clear();
     if (wireSlower != null)
     {
         wireSlower.Destroy();
     }
     wireSlower = null;
     room       = null;
 }
Example #4
0
 internal void Destroy()
 {
     if (actionItems != null)
         actionItems.Clear();
     actionItems = null;
     if (actionStacks != null)
         actionStacks.Clear();
     requestedTriggers.Clear();
     requestingUpdates.Clear();
     if (wireSlower != null)
         wireSlower.Destroy();
     wireSlower = null;
     room = null;
 }