示例#1
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.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._x);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._y);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._z);
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        protected override void RegisterComponent()
        {
            this.ParentActor = NeodroidUtilities.MaybeRegisterComponent((Actor)this.ParentActor, (Motor)this);

            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._x);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._y);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._z);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._rot_x);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._rot_y);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._rot_z);
        }
示例#3
0
 protected override void AddToEnvironment()
 {
     this._vel_x            = this.ConfigurableIdentifier + "VelX";
     this._vel_y            = this.ConfigurableIdentifier + "VelY";
     this._vel_z            = this.ConfigurableIdentifier + "VelZ";
     this._ang_x            = this.ConfigurableIdentifier + "AngX";
     this._ang_y            = this.ConfigurableIdentifier + "AngY";
     this._ang_z            = this.ConfigurableIdentifier + "AngZ";
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._vel_x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._vel_y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._vel_z);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._ang_x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._ang_y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._ang_z);
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._vel_x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._vel_y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._vel_z);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._ang_x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._ang_y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._ang_z);
 }
示例#5
0
 protected override void AddToEnvironment()
 {
     this._quality_level     = this.ConfigurableIdentifier + "QualityLevel";
     this._target_frame_rate = this.ConfigurableIdentifier + "TargetFrameRate";
     this._time_scale        = this.ConfigurableIdentifier + "TimeScale";
     this._width             = this.ConfigurableIdentifier + "Width";
     this._height            = this.ConfigurableIdentifier + "Height";
     this._fullscreen        = this.ConfigurableIdentifier + "Fullscreen";
     this.ParentEnvironment  = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._quality_level);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._target_frame_rate);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._width);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._height);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._fullscreen);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._time_scale);
 }
示例#6
0
 /// <summary>
 ///
 /// </summary>
 protected override void RegisterComponent()
 {
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._quality_level);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._target_frame_rate);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._width);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._height);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._fullscreen);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         (PrototypingEnvironment)this.ParentEnvironment,
         (Configurable)this,
         this._time_scale);
 }
 protected override void AddToEnvironment()
 {
     this._x                = this.ConfigurableIdentifier + "X";
     this._y                = this.ConfigurableIdentifier + "Y";
     this._z                = this.ConfigurableIdentifier + "Z";
     this._dir_x            = this.ConfigurableIdentifier + "DirX";
     this._dir_y            = this.ConfigurableIdentifier + "DirY";
     this._dir_z            = this.ConfigurableIdentifier + "DirZ";
     this._rot_x            = this.ConfigurableIdentifier + "RotX";
     this._rot_y            = this.ConfigurableIdentifier + "RotY";
     this._rot_z            = this.ConfigurableIdentifier + "RotZ";
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._z);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._dir_x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._dir_y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._dir_z);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._rot_x);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._rot_y);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._rot_z);
 }
示例#8
0
        public override void RegisterComponent()
        {
            this._x = this.MotorIdentifier + "X";
            this._y = this.MotorIdentifier + "Y";
            this._z = this.MotorIdentifier + "Z";
            if (this._rotational_motors)
            {
                this._x = this.MotorIdentifier + "RotX";
                this._y = this.MotorIdentifier + "RotY";
                this._z = this.MotorIdentifier + "RotZ";
            }

            this.ParentActor =
                NeodroidUtilities.MaybeRegisterNamedComponent(this.ParentActor, (Motor)this, this._x);
            this.ParentActor =
                NeodroidUtilities.MaybeRegisterNamedComponent(this.ParentActor, (Motor)this, this._y);
            this.ParentActor =
                NeodroidUtilities.MaybeRegisterNamedComponent(this.ParentActor, (Motor)this, this._z);
        }
示例#9
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        protected override void RegisterComponent()
        {
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._movement);
            this.ParentActor = NeodroidUtilities.MaybeRegisterNamedComponent(
                (Actor)this.ParentActor,
                (Motor)this,
                this._turn);

            this._parent_environment = NeodroidUtilities.MaybeRegisterComponent(
                (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;
            }
        }
示例#10
0
 protected override void AddToEnvironment()
 {
     this._r = this.ConfigurableIdentifier + "R";
     this._g = this.ConfigurableIdentifier + "G";
     this._b = this.ConfigurableIdentifier + "B";
     this._a = this.ConfigurableIdentifier + "A";
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._r);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._g);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._b);
     this.ParentEnvironment = NeodroidUtilities.MaybeRegisterNamedComponent(
         this.ParentEnvironment,
         (ConfigurableGameObject)this,
         this._a);
 }