Esempio n. 1
0
 public void AddLifeObject(LifeObject lo)
 {
     ////
     ////
     ///this has been deactivated at root in Life Object constructor
     ////
     lock (collectiveListLock)
     {
         this._collective.Add(lo);
     }
 }
Esempio n. 2
0
 public void RemoveLifeObject(LifeObject lo)
 {
     lock (collectiveListLock)
     {
         this._collective.Remove(lo);
     }
 }
Esempio n. 3
0
        public virtual LifeObject ProduceOffspring()
        {
            //throw new Exception("Unhandled Base Offspring production");

            var nl = new LifeObject(this._myHive, this._myNetwork.CreateClone());

            //this._EctropyIn.Value -= 1;

            return nl;
        }