public string description
get { return m_description; }
set { m_description = value; }
public void cardPlayed(int dmg)
Console.WriteLine("Card " + this.name + this.description + " played, with damage " + dmg.ToString());
public void cardPlayed() {
Console.WriteLine("Card " + this.name + " played!");
public Action<int> action;
private string m_name = string.Empty;
private string m_description = string.Empty;
public static void Main()
sheep.description = ",fluffy and cute,";
sheep.action = (int dmg) => {
int damageDone = dmg % 2;
Console.WriteLine("Damage done: " + damageDone.ToString());
puppy.description = ",super adorable,";
puppy.action = (int dmg) => {
int damageDone = dmg % 2;
Console.WriteLine("Damage done: " + damageDone.ToString());