public MiniFigure(LegBase legs, HeadBase head, TorsoBase torso, string name) //constructs minifigure { _legs = legs; _head = head; _torso = torso; Name = name; }
public Minifigure(LegBase legs, HeadBase head, TorsoBase torso, string name) { Name = name; Legs = legs; Head = head; Torso = torso; }
/// <summary> /// コンストラクタ /// </summary> /// <param name="RLeg">右足</param> /// <param name="LLeg">左脚</param> public OperationBase(LegBase RLeg, LegBase LLeg, ArmBase Rarm, ArmBase LArm) { this.RLeg = RLeg; this.LLeg = LLeg; this.RArm = Rarm; this.LArm = LArm; ctrlStatus = Utilty.StatusEnum.off; }
public ReadyClass(LegBase Rleg, LegBase LLeg, ArmBase Rarm, ArmBase LArm) : base(Rleg, LLeg, Rarm, LArm) { this.RLeg = RLeg; this.LLeg = LLeg; this.RArm = Rarm; this.LArm = LArm; TargetListMiddleward = new string[] { "5", "10", "5" }; }
public ShutDown(LegBase Rleg, LegBase LLeg, ArmBase Rarm, ArmBase LArm) : base(Rleg, LLeg, Rarm, LArm) { this.RLeg = RLeg; this.LLeg = LLeg; this.RArm = Rarm; this.LArm = LArm; //TargetListMiddleward = new string[] { "5", "10", "5" }; //TargetListBackward = new string[] { "-0", "0", "-0" }; //TargetListMiddleward = new string[] { "0", "0", "0" }; }
public HaltClass(LegBase Rleg, LegBase LLeg, ArmBase Rarm, ArmBase LArm) : base(Rleg, LLeg, Rarm, LArm) { this.RLeg = RLeg; this.LLeg = LLeg; this.RArm = Rarm; this.LArm = LArm; TargetListForward = new string[] { "10", "10", "5" }; TargetListBackward = new string[] { "-0", "0", "-0" }; TargetListMiddleward = new string[] { "0", "0", "0" }; RArm.myMotor1.MyMotor.CustomData = "1,0,10"; RArm.myMotor2.MyMotor.CustomData = "1,0,10"; }
public RunClass(LegBase Rleg, LegBase LLeg, ArmBase Rarm, ArmBase LArm) : base(Rleg, LLeg, Rarm, LArm) { this.RLeg = RLeg; this.LLeg = LLeg; this.RArm = Rarm; this.LArm = LArm; TargetListForward = new string[] { "40", "30", "-10" }; TargetListBackward = new string[] { "-30", "10", "20" }; TargetListMiddleward = new string[] { "50", "60", "40" }; RArm.myMotor1.MyMotor.CustomData = "1,90,20"; RArm.myMotor2.MyMotor.CustomData = "1,0,20"; }
/// <summary> /// コンストラクタ /// </summary> public Program() { cockpit = GridTerminalSystem.GetBlockWithName("Azimuth Open Cockpit") as IMyCockpit; GridTerminalSystem.GetBlockGroupWithName("Gyros").GetBlocks(gyros); roterR1 = GridTerminalSystem.GetBlockWithName("Hinge R1") as IMyMotorStator; roterR2 = GridTerminalSystem.GetBlockWithName("Hinge R2") as IMyMotorStator; roterR3 = GridTerminalSystem.GetBlockWithName("Hinge R3") as IMyMotorStator; roterL1 = GridTerminalSystem.GetBlockWithName("Hinge L1") as IMyMotorStator; roterL2 = GridTerminalSystem.GetBlockWithName("Hinge L2") as IMyMotorStator; roterL3 = GridTerminalSystem.GetBlockWithName("Hinge L3") as IMyMotorStator; ArmR1 = GridTerminalSystem.GetBlockWithName("Rotor R") as IMyMotorStator; ArmR2 = GridTerminalSystem.GetBlockWithName("Small Conveyor Hinge R1") as IMyMotorStator; ArmL1 = GridTerminalSystem.GetBlockWithName("Rotor L") as IMyMotorStator; ArmL2 = GridTerminalSystem.GetBlockWithName("Small Conveyor Hinge L1") as IMyMotorStator; mySensor = GridTerminalSystem.GetBlockWithName("Sensor") as IMySensorBlock; text = GridTerminalSystem.GetBlockWithName("Text panel") as IMyTextPanel; befTime = DateTime.UtcNow; buff1 = new LegBase(roterR1, true, roterR2, false, roterR3, true); buff2 = new LegBase(roterL1, false, roterL2, false, roterL3, true); Arm1 = new ArmBase(ArmR1, true, ArmR2, false, ArmR2, false); Arm2 = new ArmBase(ArmL1, false, ArmL2, false, ArmL2, false); DriveEntity = new HaltClass(buff1, buff2, Arm1, Arm2); st = "Walk"; Me.CustomData = "Walk"; Runtime.UpdateFrequency = UpdateFrequency.Update1; nowTime = DateTime.UtcNow; befTime = DateTime.UtcNow; }
public Minifigure(Head head, Torso torso, LegBase legs) { _head = head; _torso = torso; _legs = legs; }