Skip to content

Instantly share code, notes, and snippets.

@GarethOates
Created January 27, 2020 23:03
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/d874eb5e2a5b28acde849bb65433de20 to your computer and use it in GitHub Desktop.
Save GarethOates/d874eb5e2a5b28acde849bb65433de20 to your computer and use it in GitHub Desktop.
using System;
namespace MagicTheProgramming
{
public class Sword : CreatureDecorator, ICreature
{
public Sword(ICreature creature) : base(creature) {}
public override int Toughness => base.Toughness + 1;
public override int Power => base.Power + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment