Created
January 27, 2020 23:01
-
-
Save GarethOates/86c210c46fdda3a8e4542bccaaaeef2a to your computer and use it in GitHub Desktop.
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 characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment