예제 #1
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._mesh_str);
 }
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._x);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._y);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._z);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._rx);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._ry);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._rz);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._rw);
 }
예제 #3
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._shadow_strength);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._color_r);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._color_b);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._color_g);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._intensity);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._indirect_multiplier);
 }
예제 #4
0
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._quality_level);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._target_frame_rate);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._width);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._height);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._fullscreen);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._time_scale);
 }
예제 #5
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     if (this._Simulation_Manager != null)
     {
         this._Simulation_Manager = NeodroidUtilities.RegisterComponent(
             (PausableManager)this._Simulation_Manager,
             this);
     }
 }
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void RegisterComponent()
        {
            this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
                (PrototypingEnvironment)this.ParentEnvironment,
                this,
                _Cam_Obs_Identifier);

            this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
                (PrototypingEnvironment)this.ParentEnvironment,
                this,
                _Seg_Obs_Identifier);
        }
예제 #7
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void RegisterComponent()
        {
            this._Parent_Environment = NeodroidUtilities.RegisterComponent(
                (PrototypingEnvironment)this._Parent_Environment,
                this);

            if (this._Parent_Environment != null)
            {
                this._Parent_Environment.PreStepEvent  += this.PreStep;
                this._Parent_Environment.StepEvent     += this.Step;
                this._Parent_Environment.PostStepEvent += this.PostStep;
            }
        }
예제 #8
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void RegisterComponent()
        {
            this._x = this.Identifier + "X_";
            this._y = this.Identifier + "Y_";
            this._z = this.Identifier + "Z_";
            if (this._Angular_Motors)
            {
                this._x = this.Identifier + "RotX_";
                this._y = this.Identifier + "RotY_";
                this._z = this.Identifier + "RotZ_";
            }

            this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, (Motor)this, this._x);
            this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, (Motor)this, this._y);
            this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, (Motor)this, this._z);
        }
예제 #9
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void Setup()
        {
            this._grid = new int[this._width, this._height];

            var k = 0;

            for (var i = 0; i < this._width; i++)
            {
                for (var j = 0; j < this._height; j++)
                {
                    this._grid[i, j] = k++;
                }
            }

            this._time_simulation_manager = NeodroidUtilities.RegisterComponent(
                (NeodroidManager)this._time_simulation_manager,
                this);
        }
예제 #10
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, (Motor)this, this._x);
     this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, (Motor)this, this._y);
     this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, (Motor)this, this._z);
     this.ParentActor = NeodroidUtilities.RegisterComponent(
         (Actor)this.ParentActor,
         (Motor)this,
         this._rot_x);
     this.ParentActor = NeodroidUtilities.RegisterComponent(
         (Actor)this.ParentActor,
         (Motor)this,
         this._rot_y);
     this.ParentActor = NeodroidUtilities.RegisterComponent(
         (Actor)this.ParentActor,
         (Motor)this,
         this._rot_z);
 }
예제 #11
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._r);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._texture);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._reflection);
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._smoothness);
 }
예제 #12
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void RegisterComponent()
        {
            this.ParentActor = NeodroidUtilities.RegisterComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._movement);
            this.ParentActor = NeodroidUtilities.RegisterComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._turn);

            this._parent_environment = NeodroidUtilities.RegisterComponent(
                (PrototypingEnvironment)this._parent_environment,
                this);

            if (this._parent_environment != null)
            {
                this._parent_environment.PreStepEvent  += this.PreStep;
                this._parent_environment.StepEvent     += this.Step;
                this._parent_environment.PostStepEvent += this.PostStep;
            }
        }
예제 #13
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.RegisterComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         this);
 }
예제 #14
0
파일: Motor.cs 프로젝트: csuffyy/droid
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentActor = NeodroidUtilities.RegisterComponent((Actor)this.ParentActor, this, true);
 }
예제 #15
0
파일: Term.cs 프로젝트: csuffyy/droid
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 protected override void RegisterComponent()
 {
     this._objective_function = NeodroidUtilities.RegisterComponent(this._objective_function, this);
 }