Last active
January 27, 2020 18:21
-
-
Save GarethOates/636e6230f1765aeba0ccdfd2c85d7bdf to your computer and use it in GitHub Desktop.
Magic the Programming: Decorator Pattern
This file contains 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 Creature : ICreature | |
{ | |
public int Power {get;} | |
public int Toughness {get;} | |
public string Name {get;} | |
public Creature(string _name, int _power, int _toughness) | |
{ | |
this.Power = _power; | |
this.Toughness = _toughness; | |
this.Name = _name; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment