示例#1
0
 public bool Equals(Quality other)
 {
     return(_value == other._value);
 }
示例#2
0
 protected void Devaluate()
 {
     _quality = new Quality(0);
 }
示例#3
0
 protected void IncreaseQuality()
 {
     _quality = _quality.Increase();
 }
示例#4
0
 protected void DecreaseQuality()
 {
     _quality = _quality.Decrease();
 }
示例#5
0
 protected Item(string name, Days shelfLife, Quality quality)
 {
     _name      = name;
     _quality   = quality;
     _shelfLife = shelfLife;
 }