Example #1
0
        //add Janitor
        public void AddJ()
        {
            Dptions("Janitor");

            Console.WriteLine("==========================================================================");
            Droid newJanitor = new Janitorial(materailSelect, "Janitor", colorSelect, toolBox, computerConnection, arm, trashCompactor, vacuum);

            droidCollection.Add(newJanitor);
            newJanitor.CalculateBaseCost();
            newJanitor.CalculateTotalCost();
            totalCost += newJanitor.totalCost;
            Console.WriteLine("COLLECTED: " + newJanitor);
            Console.WriteLine("==========================================================================");
            Console.WriteLine();
        }
        //*********************END ADD UTILITY METHOD*************************//
        //**********************ADD JANITOR METHOD****************************//
        public void AddJanitor()
        {
            DroidOptions("Janitor");

            Console.WriteLine();
            Droid newJanitor = new Janitorial(materailSelectionString, "Janitor", colorSelectionString, toolBox, computerConnection, arm, trashCompactor, vacuum);
            droidCollection.AddNewDroid(newJanitor);
            newJanitor.CalculateBaseCost();
            newJanitor.CalculateTotalCost();
            totalCost += newJanitor.totalCost;

            Console.WriteLine(newJanitor + " has been added to droid collection.\n");
        }