protected CookieDecorator(CookieComponent baseComponent) { _baseComponent = baseComponent; }
public static void PrintCookieInformation(CookieComponent cookie) { Console.WriteLine($"{cookie.GetName()}"); Console.WriteLine($"Delicious Level: {cookie.GetDeliciousness()}"); }
public OatmealDecorator(CookieComponent baseComponent) : base(baseComponent) { this.Name = "Oatmeal"; this.DeliciousIndex = -9999; }
public BaconDecorator(CookieComponent baseComponent) : base(baseComponent) { this.Name = "Bacon"; this.DeliciousIndex = 9999; }
public SugarDecorator(CookieComponent baseComponent) : base(baseComponent) { this.Name = "Sugar"; this.DeliciousIndex = 10; }