Exemple #1
0
        public MasterCell(IEnumerable <ISimpleCell> ancestorCells)
        {
            Cell = new SimpleCell();

            Ancestors = new List <Ancestor>();

            foreach (var cell in ancestorCells)
            {
                Ancestors.Add(new Ancestor(cell));
            }
        }
Exemple #2
0
 public Ancestor(ISimpleCell cell = null)
 {
     Cell   = cell ?? new SimpleCell();
     Weight = (float)generator.NextDouble();
 }