Created
January 27, 2020 23:01
-
-
Save GarethOates/86c210c46fdda3a8e4542bccaaaeef2a to your computer and use it in GitHub Desktop.
Revisions
-
Gareth Oates created this gist
Jan 27, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ using System; namespace MagicTheProgramming { public class CreatureDecorator : ICreature { protected ICreature _creature; public CreatureDecorator(ICreature creature) { this._creature = creature; } public virtual string Name => _creature.Name; public virtual int Power => _creature.Power; public virtual int Toughness => _creature.Toughness; } }