Skip to content

Instantly share code, notes, and snippets.

@GarethOates
Created January 27, 2020 23:21
Show Gist options
  • Save GarethOates/931cc45d0c70244bd39b55b7e899af46 to your computer and use it in GitHub Desktop.
Save GarethOates/931cc45d0c70244bd39b55b7e899af46 to your computer and use it in GitHub Desktop.
using System;
namespace MagicTheProgramming
{
public class Shield : CreatureDecorator, ICreature
{
public Shield(ICreature creature) : base(creature) {}
public override int Toughness => base.Toughness + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment