Ejemplo n.º 1
0
 public void AddLifeObject(LifeObject lo)
 {
     ////
     ////
     ///this has been deactivated at root in Life Object constructor
     ////
     lock (collectiveListLock)
     {
         this._collective.Add(lo);
     }
 }
Ejemplo n.º 2
0
 public void RemoveLifeObject(LifeObject lo)
 {
     lock (collectiveListLock)
     {
         this._collective.Remove(lo);
     }
 }
Ejemplo 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;
        }