protected Gem(int strength, int agility, int vitality, ClarityType clarity) { this.Strength = strength; this.Agility = agility; this.Vitality = vitality; this.Clarity = clarity; }
public Gem MineAGem(ClarityType clarityType, string gemName) { switch (gemName) { case "Amethyst": return(new Amethyst(clarityType)); case "Emerald": return(new Emerald(clarityType)); case "Ruby": return(new Ruby(clarityType)); default: return(null); } }
public Ruby(ClarityType clarity) : base(strength, agility, vitality, clarity) { }
public Emerald(ClarityType clarity) : base(strength, agility, vitality, clarity) { }
public Amethyst(ClarityType clarity) : base(strength, agility, vitality, clarity) { }