Exemple #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();
        }
Exemple #2
0
 public Repairman(TransporterManager transporterManager, string name, int repairTime)
 {
     Name                    = "Repairman_" + name;
     RepairSpeed             = repairTime;
     this.transporterManager = transporterManager;
 }
 public RepairmanLazy(TransporterManager transporterManager, string name) : base(transporterManager, name + "_Lazy", 5000)
 {
 }
Exemple #4
0
 public Loader(TransporterManager transporterManager, string name)
 {
     Name                    = "Loader_" + name;
     loadUpdateTime          = DateTime.MaxValue;
     this.transporterManager = transporterManager;
 }
Exemple #5
0
 public Transporter(TransporterManager transporterManager, Vector2 pos, string name)
 {
     Pos  = pos;
     Name = "Transporter_" + name;
     this.transporterManager = transporterManager;
 }
 public RepairmanFast(TransporterManager transporterManager, string name) : base(transporterManager, name + "_Fast", 1000)
 {
 }