Exemple #1
0
 public Printer()
 {
     Ingredients                        = new Dictionary <System.Type, Consumable>();
     MaxIngredients                     = new Dictionary <System.Type, double>();
     Ingredients[typeof(Ink)]           = new Ink();
     Ingredients[typeof(Paper)]         = new Paper();
     Ingredients[typeof(Scanner)]       = new Scanner();
     Ingredients[typeof(Stapler)]       = new Stapler();
     Ingredients[typeof(Card)]          = new Card();
     Ingredients[typeof(ColoredInk)]    = new ColoredInk();
     MaxIngredients[typeof(Paper)]      = 30;
     MaxIngredients[typeof(Ink)]        = 5;
     MaxIngredients[typeof(Scanner)]    = 1;
     MaxIngredients[typeof(Stapler)]    = 100;
     MaxIngredients[typeof(Card)]       = 1;
     MaxIngredients[typeof(ColoredInk)] = 5;
 }
Exemple #2
0
 public Copy(Ink i, Paper p, Scanner sc, Stapler st, Card c, ColoredInk ci)
 {
     this.Copylayer = p.Copylayer;
 }