Ejemplo n.º 1
0
        private void StartButton_Click(object sender, EventArgs e)
        {
            image = Image.FromFile(System.IO.Path.GetFullPath(@"..\..\..\Zadacha_4_5\Graphics\product.jpg"));             //("C:/Users/1/source/repos/Zadacha_4_5/Zadacha_4_5/Graphics/product.jpg");

            transporterManager                    = new TransporterManager();
            transporterManager.Progress          += Progress;
            transporterManager.Draw              += Draw;
            transporterManager.DrawNewProduct    += DrawNewProduct;
            transporterManager.AddToStoreProduct += AddToStoreProduct;

            transporterManager.InitTransporters(4);
            transporterManager.InitLoaders(2);
            transporterManager.InitRepairs(2);

            transporterManager.StartManager();
        }
Ejemplo n.º 2
0
 public Repairman(TransporterManager transporterManager, string name, int repairTime)
 {
     Name                    = "Repairman_" + name;
     RepairSpeed             = repairTime;
     this.transporterManager = transporterManager;
 }
Ejemplo n.º 3
0
 public RepairmanLazy(TransporterManager transporterManager, string name) : base(transporterManager, name + "_Lazy", 5000)
 {
 }
Ejemplo n.º 4
0
 public Loader(TransporterManager transporterManager, string name)
 {
     Name                    = "Loader_" + name;
     loadUpdateTime          = DateTime.MaxValue;
     this.transporterManager = transporterManager;
 }
Ejemplo n.º 5
0
 public Transporter(TransporterManager transporterManager, Vector2 pos, string name)
 {
     Pos  = pos;
     Name = "Transporter_" + name;
     this.transporterManager = transporterManager;
 }
Ejemplo n.º 6
0
 public RepairmanFast(TransporterManager transporterManager, string name) : base(transporterManager, name + "_Fast", 1000)
 {
 }