Пример #1
0
 public BuilderModule(ILogger Logger, ITaskModule TaskModule, IWorkerModule WorkerModule,
                      IBuildingModule BuildingModule, IBuildingTypeModule BuildingTypeModule,
                      IStackModule StackModule, IMaterialModule MaterialModule) : base(Logger, TaskModule, WorkerModule)
 {
     this.buildingModule     = BuildingModule;
     this.buildingTypeModule = BuildingTypeModule;
     this.stackModule        = StackModule; this.materialModule = MaterialModule;
 }
Пример #2
0
 public CHIP8(Func <bool[, ], Task> writeDisplay,
              IRegisterModule registerModule,
              IStackModule stackModule,
              MemoryModule memoryModule,
              IRandomModule randomModule)
 {
     updateDisplay       = writeDisplay;
     this.registerModule = registerModule;
     this.stackModule    = stackModule;
     this.ram            = memoryModule;
     this.random         = randomModule;
 }
Пример #3
0
        public PIOService(ILogger Logger,
                          IPhraseModule PhraseModule, IPlanetModule PlanetModule, ICellModule CellModule,
                          IBuildingModule BuildingModule,
                          IWorkerModule WorkerModule,
                          IStackModule StackModule, IResourceTypeModule ResourceTypeModule,
                          IBuildingTypeModule BuildingTypeModule,
                          ITaskTypeModule TaskTypeModule,
                          IMaterialModule MaterialModule,
                          IIngredientModule IngredientModule, IProductModule ProductModule,
                          ITaskModule TaskModule,

                          ISchedulerModule SchedulerModule,

                          IResourceCheckerModule ResourceCheckerModule, ILocationCheckerModule LocationCheckerModule,
                          IIdlerModule IdlerModule, IProducerModule ProducerModule, IHarvesterModule HarvesterModule,
                          IMoverModule MoverModule, ITakerModule TakerModule, IStorerModule StorerModule,
                          IBuilderModule BuilderModule
                          ) : base(Logger)
        {
            LogEnter();

            this.phraseModule = PhraseModule;

            this.planetModule = PlanetModule;
            this.cellModule   = CellModule;

            this.buildingModule = BuildingModule;

            this.workerModule          = WorkerModule;
            this.stackModule           = StackModule;
            this.locationCheckerModule = LocationCheckerModule;
            this.resourceTypeModule    = ResourceTypeModule;
            this.taskTypeModule        = TaskTypeModule;

            this.buildingTypeModule = BuildingTypeModule;

            this.taskTypeModule   = TaskTypeModule;
            this.materialModule   = MaterialModule;
            this.ingredientModule = IngredientModule;
            this.productModule    = ProductModule;
            this.taskModule       = TaskModule;


            this.resourceCheckerModule = ResourceCheckerModule;
            this.idlerModule           = IdlerModule;
            this.producerModule        = ProducerModule;
            this.harvesterModule       = HarvesterModule;
            this.moverModule           = MoverModule;
            this.takerModule           = TakerModule;
            this.storerModule          = StorerModule;

            this.builderModule = BuilderModule;
        }
Пример #4
0
 public static CHIP8 GetChip8(Func <bool[, ], Task> writeDisplay = null,
                              IRegisterModule registers          = null,
                              IStackModule stack   = null,
                              MemoryModule mem     = null,
                              IRandomModule random = null)
 {
     return(new CHIP8(writeDisplay ?? (x => Task.CompletedTask),
                      registers ?? new RegisterModule(),
                      stack ?? new StackModule(),
                      mem
                      ?? new MemoryModule(Enumerable.Repeat((byte)0x0,
                                                            4096)),
                      random ?? new RandomModule()));
 }
Пример #5
0
 public StorerModule(ILogger Logger, ITaskModule TaskModule, IWorkerModule WorkerModule, IBuildingModule BuildingModule, IStackModule StackModule) : base(Logger, TaskModule, WorkerModule)
 {
     this.buildingModule = BuildingModule; this.stackModule = StackModule;
 }
Пример #6
0
 public HarvesterModule(ILogger Logger, ITaskModule TaskModule, IWorkerModule WorkerModule, IBuildingModule BuildingModule, IBuildingTypeModule BuildingTypeModule, IStackModule StackModule, IProductModule ProductModule) : base(Logger, TaskModule, WorkerModule)
 {
     this.buildingModule = BuildingModule; this.buildingTypeModule = BuildingTypeModule; this.stackModule = StackModule; this.productModule = ProductModule;
 }
Пример #7
0
 public ResourceCheckerModule(ILogger Logger, IBuildingModule BuildingModule, IStackModule StackModule, IIngredientModule IngredientModule, IMaterialModule MaterialModule) : base(Logger)
 {
     this.buildingModule = BuildingModule; this.stackModule = StackModule; this.ingredientModule = IngredientModule; this.materialModule = MaterialModule;
 }
Пример #8
0
 public ProducerModule(ILogger Logger, ITaskModule TaskModule, IWorkerModule WorkerModule, IBuildingModule BuildingModule, IBuildingTypeModule BuildingTypeModule, IStackModule StackModule, IIngredientModule IngredientModule, IProductModule ProductModule) : base(Logger, TaskModule, WorkerModule)
 {
     this.buildingModule = BuildingModule; this.buildingTypeModule = BuildingTypeModule; this.stackModule = StackModule; this.ingredientModule = IngredientModule; this.productModule = ProductModule;
 }