Example #1
0
        public CreationFrame(Neuron neuron, int frame)
        {
            this.neuron = new SequenceNeuron(neuron);
            created     = new List <Synapse>();
            data        = new List <CreationData>();

            this.frame = frame;
            count      = 0;
            phase      = 1;
        }
Example #2
0
        public CreationFrame add(Brain brain, int index)
        {
            if (builder == null)
            {
                return(null);
            }

            CreationFrame  frame  = brain.add(this, builder, index);
            SequenceNeuron neuron = frame.Neuron;

            neuron.Top  = 8;
            neuron.Left = builder.Left;
            neuron.changeType(SequenceElementType.Normal);
            position = neuron.Right + 10;

            builder = null;
            sequence.Add(neuron);
            frames.Add(frame);
            return(frame);
        }