Skip to content

Instantly share code, notes, and snippets.

@GarethOates
Created January 27, 2020 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarethOates/86c210c46fdda3a8e4542bccaaaeef2a to your computer and use it in GitHub Desktop.
Save GarethOates/86c210c46fdda3a8e4542bccaaaeef2a to your computer and use it in GitHub Desktop.
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