Exemplo n.º 1
0
 private SubsystemCommandBasedIterativeRobot(
     IterativeRobotConfiguration iterativeRobotConfiguration,
     UserCode userCode,
     IDebugRenderContext debugRenderContext
     ) : base(iterativeRobotConfiguration, userCode, debugRenderContext)
 {
 }
Exemplo n.º 2
0
        public static IRobot Create(
            IterativeRobotConfiguration configuration,
            SCG.IReadOnlyDictionary <int, ISubsystem> subsystems,
            SCG.IReadOnlyList <ICommand> commands,
            IDebugRenderContext debugRenderContext
            )
        {
            var userCode = new UserCode(subsystems, commands);

            return(new SubsystemCommandBasedIterativeRobot(configuration, userCode, debugRenderContext));
        }
        public Simulation2D(SimulationRobotEntity robotEntity, IDebugRenderContext debugRenderContext)
        {
            this.robotEntity = robotEntity;
             this.debugRenderContext = debugRenderContext;

             Content.RootDirectory = "Assets";
             ConvertUnits.SetDisplayUnitToSimUnitRatio(50f);

             graphicsDeviceManager = new GraphicsDeviceManager(this) {
            PreferredBackBufferWidth = 1280,
            PreferredBackBufferHeight = 720
             };

             var gravity = Vector2.Zero;
             world = new World(gravity);
             robotEntity.Initialize(world);
        }
Exemplo n.º 4
0
        public Simulation2D(SimulationRobotEntity robotEntity, IDebugRenderContext debugRenderContext)
        {
            this.robotEntity        = robotEntity;
            this.debugRenderContext = debugRenderContext;

            Content.RootDirectory = "Assets";
            ConvertUnits.SetDisplayUnitToSimUnitRatio(50f);

            graphicsDeviceManager = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth  = 1280,
                PreferredBackBufferHeight = 720
            };

            var gravity = Vector2.Zero;

            world = new World(gravity);
            robotEntity.Initialize(world);
        }
Exemplo n.º 5
0
 public IterativeRobot(IterativeRobotConfiguration configuration, IterativeRobotUserCode userCode, IDebugRenderContext debugRenderContext)
 {
     this.configuration      = configuration;
     this.userCode           = userCode;
     this.debugRenderContext = debugRenderContext;
 }
 public IterativeRobot(IterativeRobotConfiguration configuration, IterativeRobotUserCode userCode, IDebugRenderContext debugRenderContext)
 {
     this.configuration = configuration;
      this.userCode = userCode;
      this.debugRenderContext = debugRenderContext;
 }
   private SubsystemCommandBasedIterativeRobot(
    IterativeRobotConfiguration iterativeRobotConfiguration, 
    UserCode userCode,
    IDebugRenderContext debugRenderContext
 )
       : base(iterativeRobotConfiguration, userCode, debugRenderContext)
   {
   }
   public static IRobot Create(
    IterativeRobotConfiguration configuration,
    SCG.IReadOnlyDictionary<int, ISubsystem> subsystems,
    SCG.IReadOnlyList<ICommand> commands,
    IDebugRenderContext debugRenderContext
 )
   {
       var userCode = new UserCode(subsystems, commands);
        return new SubsystemCommandBasedIterativeRobot(configuration, userCode, debugRenderContext);
   }