Exemple #1
0
 protected Gem(int strength, int agility, int vitality, ClarityType clarity)
 {
     this.Strength = strength;
     this.Agility  = agility;
     this.Vitality = vitality;
     this.Clarity  = clarity;
 }
Exemple #2
0
        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)
 {
 }
Exemple #4
0
 public Emerald(ClarityType clarity)
     : base(strength, agility, vitality, clarity)
 {
 }
Exemple #5
0
 public Amethyst(ClarityType clarity)
     : base(strength, agility, vitality, clarity)
 {
 }