コード例 #1
0
        public Genom(Random random)
        {
            this.random = random;

            chassis = new genChassis(random);
            wheel_1 = new genWheel(random);
            wheel_2 = new genWheel(random);
        }
コード例 #2
0
        public genWheel Clone()
        {
            genWheel cloned_gen = new genWheel(random);

            cloned_gen.vertex  = this.vertex;
            cloned_gen.radius  = this.radius;
            cloned_gen.density = this.density;
            return(cloned_gen);
        }